swapfile manager
Isn't is just semantics? Don't they create the same kind of file?jemimah wrote:I think it's because I'm not sure why I need a scratch file, but the purpose of a swap file is more obvious.
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]
Aha.. that must be it. Very succinct.jemimah wrote:A swap file adds virtual memory. A scratch file is like an additional save file, yes?
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]
- RetroTechGuy
- Posts: 2947
- Joined: Tue 15 Dec 2009, 17:20
- Location: USA
The one thing I didn't like about the tool was that it, by default, did not name the file pupswap.swp (IIRC that's the default pup swap filename).jemimah wrote:A swap file adds virtual memory. A scratch file is like an additional save file, yes?
Also, I think the default size was a little strange (did I miss read it, or was it 10 MB?) -- and it would probably be better if it used MB as the size measurement (I doubt anyone wants to fine-tune the swap size to kilobytes, or bytes...).
I'm guessing that if someone is adding a swap file, they probably want 256MB or 512 MB, so I would be inclined to make one of those sizes the "default" choice (the user can still change the size manually).
Otherwise, the tool seemed to work fine (a couple weeks back, I converted another Windows user to Puppy -- too little RAM for Windows to run properly, but Puppy did just fine, with a swap file )
You can name it a anything you want toRetroTechGuy wrote:
The one thing I didn't like about the tool was that it, by default, did not name the file pupswap.swp (IIRC that's the default pup swap filename).
edit: .swp is used by vim, so probably not a good idea. Also, you don't want to leave it in "/", so it's not really "default".
It's set at 100M, which was the recommended desired size noted in posts on several of the Puppy threads. KB appears to be the standard way of setting size, although it reads the rounded MB size after setting it (see posted pic).Also, I think the default size was a little strange (did I miss read it, or was it 10 MB?) -- and it would probably be better if it used MB as the size measurement (I doubt anyone wants to fine-tune the swap size to kilobytes, or bytes...).
I'm guessing that if someone is adding a swap file, they probably want 256MB or 512 MB, so I would be inclined to make one of those sizes the "default" choice (the user can still change the size manually).
- RetroTechGuy
- Posts: 2947
- Joined: Tue 15 Dec 2009, 17:20
- Location: USA
Well, it is "default", just not a good one.jpeps wrote:You can name it a anything you want toRetroTechGuy wrote:
The one thing I didn't like about the tool was that it, by default, did not name the file pupswap.swp (IIRC that's the default pup swap filename).
edit: .swp is used by vim, so probably not a good idea. Also, you don't want to leave it in "/", so it's not really "default".
(no, not negative criticism, this is a useful tool -- I'd just like to make it more newbie friendly).
A better default location choice would be /mnt/home/ (which would dump it onto the boot media, which is the user's most probably desired location)
KB is certainly the standard (OLD) way of setting sizes. This may be why all of the tools now include "-h" for "human readable", since few intuitively think in KB any more. And Puppy and memory now operate on the MB scale, so that might be more "newbie friendly" choice (let us further note that the experts probably don't need this sort of tool).It's set at 100M, which was the recommended desired size noted in posts on several of the Puppy threads. KB appears to be the standard way of setting size, although it reads the rounded MB size after setting it (see posted pic).Also, I think the default size was a little strange (did I miss read it, or was it 10 MB?) -- and it would probably be better if it used MB as the size measurement (I doubt anyone wants to fine-tune the swap size to kilobytes, or bytes...).
I'm guessing that if someone is adding a swap file, they probably want 256MB or 512 MB, so I would be inclined to make one of those sizes the "default" choice (the user can still change the size manually).
For a pupswap, I generally suggest the user get approximately 512MB of space. If they have 256MB RAM, then they need another 256MB swap. Some people have odd-ball sizes. Perhaps the tool could look at physical RAM available, and recommend a swap size based on that value... Hmmm... Now that would be a rather cool, newbie friendly tool.
OK guys, what are your recommendations? When you set up a machine with insufficient RAM, what memory level do you shoot for? Or, similarly, how much RAM to swap? (I have historically used the 2x rule for swap -- the swap should be twice the RAM)
Doesn't work for me, because I don't have sufficient space in /mnt/homeRetroTechGuy wrote: Well, it is "default", just not a good one.
(no, not negative criticism, this is a useful tool -- I'd just like to make it more newbie friendly).
A better default location choice would be /mnt/home/ (which would dump it onto the boot media, which is the user's most probably desired location)
However, I uploaded one to your specs if it works better for others. I didn't add .swp, because anyone who uses vim probably batch removes them on a regular basis.
Ver 2.0 defaults at 512, with input for M, if that makes it more friendly. The optimal size is probably debatable, but easily altered. Hope this works. I also included a rounding function, something bash isn't very good at (the 99M thingy was getting to me)I'm guessing that if someone is adding a swap file, they probably want 256MB or 512 MB, so I would be inclined to make one of those sizes the "default" choice (the user can still change the size manually).
Deleting existing swap file
The method posted on the first page of this thread to get swapoff to function failed when I tried it. After typing swapoff -a /mnt/sda4 the lock was still there. {just happed to have swapfile on save partition}
Swapoff {and swapon} are in sbin so I open a terminal ,cd to sbin and typed swapoff -a . In Gparted it still showed the lock and still gave the error message but then it disappeared and I was able to delete it.
Weird. but at least its gone.
Thanks for the program!
Swapoff {and swapon} are in sbin so I open a terminal ,cd to sbin and typed swapoff -a . In Gparted it still showed the lock and still gave the error message but then it disappeared and I was able to delete it.
Weird. but at least its gone.
Thanks for the program!
Thanks for the reply, I've added the wizard to the Wiki
http://puppylinux.org/wikka/SwapFileManager
Puppy 5.2.5 seems to automatically a swap file is you have low memory, do you know what version this started at?
http://puppylinux.org/wikka/SwapFileManager
Puppy 5.2.5 seems to automatically a swap file is you have low memory, do you know what version this started at?
-
- Posts: 130
- Joined: Fri 23 Dec 2011, 09:21
- Location: The Little Red Dot
swapfile error
In urxvt,I get swapfile error:Malformed setting :"vm.swappiness=".
What I did was:
1) In WinXP, fsutil file createnew c"\Wary-511\pup,swp 528244000;then reboot
2) in Wary511,urxvt,
a) mkswap /mnt/home/Wary-511/pup.swp,
b) swapon /mnt/home/Wary-511/pup.swp;
3) use Geany,open roo/.etc/rc.d/rc.local and appended "swapon /mnt/home/Wary511/pup.swp" (without quotes) and saved it to make swapon automatic.
Then I came across the swapfile manager.4.2.pet and installed it,run the program and just set the swappiness at 10 without creating another swapfile as I already have one. Now I get this error message every time I open rxvt.
What should I do ? Any help greatly appreciated.
Another question, I intend to use swapfilemanager in Classic Pup214X-TOP9 to add a swapfile in the same partition where Wary-511 subfolder is located but this time in root where the 214X pupsave resides. Any problem if I do this? Kindly advise(still a noob in Linux).
Edited: Latest development - I deleted the created puppy.swp and use swapfilemanager to created a new swapfile. The swappiness problem is resolved but now I get "..,swapon failed: Device or resource busy" . Need help on this, thank you.
What I did was:
1) In WinXP, fsutil file createnew c"\Wary-511\pup,swp 528244000;then reboot
2) in Wary511,urxvt,
a) mkswap /mnt/home/Wary-511/pup.swp,
b) swapon /mnt/home/Wary-511/pup.swp;
3) use Geany,open roo/.etc/rc.d/rc.local and appended "swapon /mnt/home/Wary511/pup.swp" (without quotes) and saved it to make swapon automatic.
Then I came across the swapfile manager.4.2.pet and installed it,run the program and just set the swappiness at 10 without creating another swapfile as I already have one. Now I get this error message every time I open rxvt.
What should I do ? Any help greatly appreciated.
Another question, I intend to use swapfilemanager in Classic Pup214X-TOP9 to add a swapfile in the same partition where Wary-511 subfolder is located but this time in root where the 214X pupsave resides. Any problem if I do this? Kindly advise(still a noob in Linux).
Edited: Latest development - I deleted the created puppy.swp and use swapfilemanager to created a new swapfile. The swappiness problem is resolved but now I get "..,swapon failed: Device or resource busy" . Need help on this, thank you.
-
- Posts: 130
- Joined: Fri 23 Dec 2011, 09:21
- Location: The Little Red Dot
swapon -s showed only one i.e initrd/mnt/dev_save/swapfile and priority -1
Will swapon -p auto prioritize it as there is only one swapfile?
Having created it in Wary511, how do I add the same swapfile ,without creating another one, in Lighthouse Puppy 5.0.3 after installing the swapfilemanager.pet? Saw yr instruction above,but my apology,being a noob,still not clear how to do it. Appreciate yr help.
Will swapon -p auto prioritize it as there is only one swapfile?
Having created it in Wary511, how do I add the same swapfile ,without creating another one, in Lighthouse Puppy 5.0.3 after installing the swapfilemanager.pet? Saw yr instruction above,but my apology,being a noob,still not clear how to do it. Appreciate yr help.