Puppy Swap File Questions
I'm running Puppy 4.x. I tried to look for swp and sys using pfind to serach files and file content.Searches for file content seemed to run, but eventually hung (0% activity and blanked dialogs) without returning anything. I don't have any confidence in the lack of results. Pfind didn't find any files with the .swp extension
When I looked at running processes, it showed the process
grep -i -l pagefile.sys /proc/acpi/event
I ran md5 hashes on pagefile.sys at random intervals, and after shutting down and rebooting the computer. No change in hash file results whatsoever. So, it doesn't look like the pagefile.sys is being used.
The info provides some comfort that the pagefile.sys is not being tampered with, but without searching all the scripts for both .swp and .sys, I wouldn't call the evidence conclusive.
When I looked at running processes, it showed the process
grep -i -l pagefile.sys /proc/acpi/event
I ran md5 hashes on pagefile.sys at random intervals, and after shutting down and rebooting the computer. No change in hash file results whatsoever. So, it doesn't look like the pagefile.sys is being used.
The info provides some comfort that the pagefile.sys is not being tampered with, but without searching all the scripts for both .swp and .sys, I wouldn't call the evidence conclusive.
1) my experience is, it is more the exception than the rule that Puppy makes a pupswap.swp file. So much more the exception than the rule, I don't expect it to do it, as a rule.peb wrote:I'm running Puppy 4.x. I tried to look for swp and sys using pfind to serach files and file content.Searches for file content seemed to run, but eventually hung (0% activity and blanked dialogs) without returning anything. I don't have any confidence in the lack of results. Pfind didn't find any files with the .swp extension
Moreover, it may have been some versions that made this file and other versions not. Even at that, only in some circumstances. Example: maybe not on an NTFS, but yes on other file systems. On the other hand;
2) it is my experience that in an hdd install, Puppy will look for the file at the highest level and activate it if found. This is a fair behavior rule without many exceptions, I'm aware of. Although likely there are exceptions, considering the vast array of install types and Puppy versions.
The name it looks for is pupswap.swp, so if you make one with that name in the right location, I expect Puppy to activate it on its own.
3) if you make a file by another name or location, you will need to activate it, this is usually done by users in the file /etc/rc.d/rc.local with a command line this:
swapon /filelocation/file_name
I searched /etc/* and found these references to a swap file. Only one file /etc/rc.d/rc.sysint seemed to make any references to a swap file. Puppy 4.1.2 is the version I'm using. I'm running from a CDROM with a pupsave file on the harddisk.
FOUND
/etc/rc.d/rc.sysinit:155: swapon $ONESWAP
/etc/rc.d/rc.sysinit:157: [ $? -eq 0 ] && SWAPON="yes"
155-158 tries to find a linux swap partition and turn it on
================================================================
FOUND
/etc/rc.d/rc.sysinit:161:if [ "$SWAPON" != "yes" ];then
/etc/rc.d/rc.sysinit:166: swapon /initrd${PUP_HOME}${SWAPFILE}
/etc/rc.d/rc.sysinit:168: [ $? -eq 0 ] && SWAPON="yes"
/etc/rc.d/rc.sysinit:172: swapon $SWAPFILE
/etc/rc.d/rc.sysinit:174: [ $? -eq 0 ] && SWAPON="yes"
160-176 in rc.sysint:
#if no go, try for a swap file...
if [ "$SWAPON" != "yes" ];then
SWAPFILE="/pupswap.swp"
[ "$PSWAPFILE" ] && SWAPFILE="`echo -n "$PSWAPFILE" | cut -f 3 -d ','`" #/etc/rc.d/PUPSTATE
if [ -f /initrd${PUP_HOME}${SWAPFILE} ];then
echo -n "Loading swap file ${SWAPFILE}..." >/dev/console
swapon /initrd${PUP_HOME}${SWAPFILE}
status_func $?
[ $? -eq 0 ] && SWAPON="yes"
fi
if [ -f $SWAPFILE ];then
echo -n "Loading swap file ${SWAPFILE}..." >/dev/console
swapon $SWAPFILE
status_func $?
[ $? -eq 0 ] && SWAPON="yes"
fi
fi
From this it seems the only file it looks for is called pupsave.swp and the only place it looks is PUPHOME; and a swapfile is turned on if found, but not created.
On the other hand, there's this statement that is included in the above that I can't figure out. Why is it there or needed? Maybe someone can elaborate.
[ "$PSWAPFILE" ] && SWAPFILE="`echo -n "$PSWAPFILE" | cut -f 3 -d ','`"
So, my conclusion is that for 4.1.2 running from a CDROM or USB, Puppy does NOT create a swapfile automatically and does not look for use pagefile.sys or other Windows swapfile. (From my search, no files made reference to Windows swap files such as pagefile.sys.)
Correct conclusion?
FOUND
/etc/rc.d/rc.sysinit:155: swapon $ONESWAP
/etc/rc.d/rc.sysinit:157: [ $? -eq 0 ] && SWAPON="yes"
155-158 tries to find a linux swap partition and turn it on
================================================================
FOUND
/etc/rc.d/rc.sysinit:161:if [ "$SWAPON" != "yes" ];then
/etc/rc.d/rc.sysinit:166: swapon /initrd${PUP_HOME}${SWAPFILE}
/etc/rc.d/rc.sysinit:168: [ $? -eq 0 ] && SWAPON="yes"
/etc/rc.d/rc.sysinit:172: swapon $SWAPFILE
/etc/rc.d/rc.sysinit:174: [ $? -eq 0 ] && SWAPON="yes"
160-176 in rc.sysint:
#if no go, try for a swap file...
if [ "$SWAPON" != "yes" ];then
SWAPFILE="/pupswap.swp"
[ "$PSWAPFILE" ] && SWAPFILE="`echo -n "$PSWAPFILE" | cut -f 3 -d ','`" #/etc/rc.d/PUPSTATE
if [ -f /initrd${PUP_HOME}${SWAPFILE} ];then
echo -n "Loading swap file ${SWAPFILE}..." >/dev/console
swapon /initrd${PUP_HOME}${SWAPFILE}
status_func $?
[ $? -eq 0 ] && SWAPON="yes"
fi
if [ -f $SWAPFILE ];then
echo -n "Loading swap file ${SWAPFILE}..." >/dev/console
swapon $SWAPFILE
status_func $?
[ $? -eq 0 ] && SWAPON="yes"
fi
fi
From this it seems the only file it looks for is called pupsave.swp and the only place it looks is PUPHOME; and a swapfile is turned on if found, but not created.
On the other hand, there's this statement that is included in the above that I can't figure out. Why is it there or needed? Maybe someone can elaborate.
[ "$PSWAPFILE" ] && SWAPFILE="`echo -n "$PSWAPFILE" | cut -f 3 -d ','`"
So, my conclusion is that for 4.1.2 running from a CDROM or USB, Puppy does NOT create a swapfile automatically and does not look for use pagefile.sys or other Windows swapfile. (From my search, no files made reference to Windows swap files such as pagefile.sys.)
Correct conclusion?
This is interesting. I know that in previous versions (2.xx?) Puppy would automatically make a swap file. But I just checked in 4.00 and this feature is gone, as PaulBx1 stated above. Does anyone know when it first disappeared?
I suspect that BarryK's rationale for removing it goes like this:
Back when most users doing a coexist install were working with Win98 and FAT32, it was considered safe to make a swap file in the Windows partition. But as NTFS became the standard, there was concern about potential corruption when the swap file was created.
However, anyone installing Puppy into a separate partition must have already reworked their hard drive. So it would not be a problem for them to split off another partition for swap.
Was this another of those unilateral decisions made by the benevolent dictator? Still, swap files are handy and it might be nice to have an option in the Setup menu to create one.
I suspect that BarryK's rationale for removing it goes like this:
Back when most users doing a coexist install were working with Win98 and FAT32, it was considered safe to make a swap file in the Windows partition. But as NTFS became the standard, there was concern about potential corruption when the swap file was created.
However, anyone installing Puppy into a separate partition must have already reworked their hard drive. So it would not be a problem for them to split off another partition for swap.
Was this another of those unilateral decisions made by the benevolent dictator? Still, swap files are handy and it might be nice to have an option in the Setup menu to create one.
Last edited by rcrsn51 on Fri 26 Dec 2008, 18:03, edited 1 time in total.
I feel safe in saying it is correct, even to the extent that I don't think Puppy every used a Windows swap file.peb wrote: So, my conclusion is that for 4.1.2 running from a CDROM or USB, Puppy does NOT create a swapfile automatically and does not look for use pagefile.sys or other Windows swapfile. (From my search, no files made reference to Windows swap files such as pagefile.sys.)
Correct conclusion?
The exception being user hacking to get it to use it. My opinion on what I've read is somewhat like this:
Puppy requires a 'formatted' swap file. Maybe Windows doesn't and if not, the basis for an interchangeability, but entirely untested by me.
I don't think thoroughly tested by anyone I've read.
- ttuuxxx
- Posts: 11171
- Joined: Sat 05 May 2007, 10:00
- Location: Ontario Canada,Sydney Australia
- Contact:
In the past I've dedicated a 1 gig usb stick as a swap drip and it worked fineBligh wrote:Has anyone tried using a usb flash drive for a swap partition or file? Also why not just remove or delete the swap file?
Cheers
no issues or problems, kind of like my 15gig pup_save file, only do that one on a ext3 partition
ttuuxx
If any of you want to try it, you can download the increased size pupsave file utility but once again for ext3 only I haven't tested on any other partition type and do not use it on windows partitions, they aren't made for that.
http://www.murga-linux.com/puppy/viewto ... h&id=14644
ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)
Largely correct. I don't believe MS has ever properly documented NTFS, so support for it on other OSes has been a matter of reverse engineering.Bruce B wrote:Personally, I'm a bit paranoid writing anything of any kind to NTFS. Paranoia is a fear lacking in foundation and I'm not sure of my foundation.
The foundation I have is (1) there was a time we couldn't with Linux, (2) then FOSS development achieved a level where we could, (3) I don't think MS ever released the NTFS specs, did they? (4) lastly it is Microsoft partition and not much trust there on my part.
Works fine as long as NTFS is the same, but if MS chooses to make changes, you might have issues. (And MS does make changes. For instance, NTFS 5 supports hard links, though it doesn't expose the functionality in any easy to find way. I use a freeware third-party utility to do it under XP. Vista supports true symbolic links. I have no idea what changed, but it only works in Vista.)
It's a decent package, and a simpler alternative to installing the Cygwin environment. I grabbed it because it has a decent port of zsh among other things.
Another open source package I like on the Windoze side is Console. Console is a tabbed wrapper for console mode programs. It's designed for shells, but will happily run any console mode program. I've had it running with MS cmd.exe, JP Software's TCC-LE, Cygwin bash, unxutils zsh and several other things simultaneously. It works fine, and supports transparency.
See http://sourceforge.net/projects/console
______
Dennis
-
- Posts: 632
- Joined: Tue 02 Oct 2007, 07:39
Maybe this thread can help:
Fugitive blue screen when I use pagefile.sys for swap file
http://www.murga-linux.com/puppy/viewto ... 76&t=24578
Fugitive blue screen when I use pagefile.sys for swap file
http://www.murga-linux.com/puppy/viewto ... 76&t=24578
- potchan
- Posts: 109
- Joined: Sat 05 Apr 2008, 11:46
- Location: Pilots' Height Tel Aviv - Yaffo, Israel ×œ×™× ×•×§×¡_פותחן
- Contact:
Max and Moritz HORROR fly show
Hi Team,
As I read, the connections speed-up rapidly. In Japan it's already about a 100 Mbit (while I'm on 4). This fact leads me to think my Potchan future "victims" on the cloud should enjoy a swap from cloud as well.
My question relates to my future imaginary users Max and Moritz who use the remote swap on the same time. The swap area - apart from system area - will be writable.
Is there any chance the collision of their files on swap will cause a HORROR FLY EFFECT as on famous movie ? or is it safe since no way their file fractions merge each other ??
any thoughts ??
As I read, the connections speed-up rapidly. In Japan it's already about a 100 Mbit (while I'm on 4). This fact leads me to think my Potchan future "victims" on the cloud should enjoy a swap from cloud as well.
My question relates to my future imaginary users Max and Moritz who use the remote swap on the same time. The swap area - apart from system area - will be writable.
Is there any chance the collision of their files on swap will cause a HORROR FLY EFFECT as on famous movie ? or is it safe since no way their file fractions merge each other ??
any thoughts ??
Timmo', the potchan (=opener) team at - [url]http://potchan.org[/url]. Taste it, love it, code in it.
How to stop the swap
Hi,
For example, using Gparted to clean up the hard drive. The swap partition cannot be unmounted and deleted... or can it?
A "pfix=noswap" would be the ideal solution.
I did try the boot with "noswap"... as of version 4.2.1 these is still no noswap parameter... or is there?
For example, using Gparted to clean up the hard drive. The swap partition cannot be unmounted and deleted... or can it?
A "pfix=noswap" would be the ideal solution.
I did try the boot with "noswap"... as of version 4.2.1 these is still no noswap parameter... or is there?
Hakar
If you have reasonably large ram it may not get used unless you are doing something intensive, like compiling or video editing,
or maybe just conky not displaying it
I have 1 Gb ram and it's split between virtual puppy 214x9 and xp, I am on here, listening to CD, browsing with several tabs open, and it's still not using swap, as shown in Htop
Aitch
If you have reasonably large ram it may not get used unless you are doing something intensive, like compiling or video editing,
or maybe just conky not displaying it
I have 1 Gb ram and it's split between virtual puppy 214x9 and xp, I am on here, listening to CD, browsing with several tabs open, and it's still not using swap, as shown in Htop
Aitch
Puppy Swap File Questions
Does Puppy "automatically" look for and know to use a SWAP partition on disk when he's running from LiveCD?
Re: Puppy Swap File Questions
Yesgcmartin wrote:Does Puppy "automatically" look for and know to use a SWAP partition on disk when he's running from LiveCD?
Inspiron 700m, Pent.M 1.6Ghz, 1Gb ram.
Msi Wind U100, N270 1.6>2.0Ghz, 1.5Gb ram.
Eeepc 8g 701, 900Mhz, 1Gb ram.
Full installs