Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 22 Oct 2014, 10:21
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » System
swapfile manager
Post new topic   Reply to topic View previous topic :: View next topic
Page 4 of 4 [57 Posts]   Goto page: Previous 1, 2, 3, 4
Author Message
PenguinPupLin

Joined: 23 Dec 2011
Posts: 126
Location: The Little Red Dot

PostPosted: Thu 05 Jan 2012, 12:53    Post subject: Winfonts failed to use winxp pagefile as swap space in 214X
Subject description: swap space enabled but no swap shown in console
 

OK,noted,I'll leave the swappiness=60 on.
I have a question for Shinobar,hoped he sees this. Running winfonts in Classic Pup 214X-TOP failed to use WinXP pagefile as swap space. Free in MRrxvt didn't show any swap available.
Back to top
View user's profile Send private message 
PenguinPupLin

Joined: 23 Dec 2011
Posts: 126
Location: The Little Red Dot

PostPosted: Sat 07 Jan 2012, 10:14    Post subject:  

Hi jpeps, thanks so much for your swapfilemanager pet. I've used it successfully. I've also tried winfonts pet to set swap space which in my case makes use of the pagefile.sys in my WinXP partition. Your swapfilemanager has this swappiness feature which winfonts doesn't(though I believe it can be done manually by adding a script somewhere). However,I'm not sure if my comparison is valid,after creating a swapfile with your pet,the bootup time for Puppy is about 1.5 to 2 minutes,whereas for winfonts it's faster,under 1 minute. Just my observation.
For those who do not wish to create a new partition in Windoze,either of these methods is useful,esp for those with less than 512MB RAM;in fact,even with 512 MB RAM,if you run modern browsers and play youtube videos online,it's barely enough,so having a swap file ,preferably equal in size to your RAM capacity,will markedly improve performance.

Last edited by PenguinPupLin on Mon 09 Jan 2012, 04:17; edited 1 time in total
Back to top
View user's profile Send private message 
jpeps

Joined: 31 May 2008
Posts: 3220

PostPosted: Sat 07 Jan 2012, 12:03    Post subject:  

PenguinPupLin wrote:
However,I'm not sure if my comparison is valid,after creating a swapfile with your pet,the bootup time for Puppy is about 1.5 to 2 minutes,whereas for winfonts is faster,under 1 minute. Just my observation.


I tried with Slacko. I turned swap off and rebooted in 44 seconds. I turned it on and rebooted in 42 seconds.

Edit: Uninstalled swapfile manager and rebooted: 44 seconds. Summary...no increase in boot time.
Back to top
View user's profile Send private message 
PenguinPupLin

Joined: 23 Dec 2011
Posts: 126
Location: The Little Red Dot

PostPosted: Mon 09 Jan 2012, 04:32    Post subject:  

jpeps wrote:
PenguinPupLin wrote:
However,I'm not sure if my comparison is valid,after creating a swapfile with your pet,the bootup time for Puppy is about 1.5 to 2 minutes,whereas for winfonts is faster,under 1 minute. Just my observation.


I tried with Slacko. I turned swap off and rebooted in 44 seconds. I turned it on and rebooted in 42 seconds.

Edit: Uninstalled swapfile manager and rebooted: 44 seconds. Summary...no increase in boot time.

Sorry,it could be due to something else then.
Another interesting observation I've made is that after creating pupswap.swp for use in Pup214X-TOP9 but couldn't get it to work - error:swapon - invalid argument - I then rebooted into another puppy(wary511 as well as 431),and the pupswap.swp was automatically recognised on bootup without me having done any swapon setting other than the previous winfonts-set-pagefile procedure;it actually combined the two,i.e pupswap(512MB) + pagefile(768MB) = 1.3 GB as swap ! For now,I've deleted pupswap.swp to save harddisk space until Shinobar or someone else could point me to a solution for Pup214X-TOP9 to use swap file.
Back to top
View user's profile Send private message 
PenguinPupLin

Joined: 23 Dec 2011
Posts: 126
Location: The Little Red Dot

PostPosted: Wed 11 Jan 2012, 05:26    Post subject:  

Hi jpeps,I tried swapfilemanager in Classic Pup 214X-TOP9 to create a swap file but it didn't work. First time I used the name pupswap.swp, swapon said invalid argument. Second time, used the default name swapfile,nothing happened. Free in console no swap available.
This very useful pet works well in my other puppies.eg Wary 511, Lighthouse ,puppy 431, but I haven't tried it in Legacy OS2, am quite sure it will run into the same problem as for Classic Pup as both are based on older kernels,k2.6.18.1 (puppy 2.14).
Hoped you'd look into it and come out with a solution as without swap space,Classic Pup 214X on my notebook runs slow and jerky. Thanks in advance.
Just curious: is your swap file in Linux (ext2/3/4?) partition or ntfs like in my case?
Back to top
View user's profile Send private message 
jpeps

Joined: 31 May 2008
Posts: 3220

PostPosted: Wed 11 Jan 2012, 12:03    Post subject:  

PenguinPupLin wrote:
Hi jpeps,I tried swapfilemanager in Classic Pup 214X-TOP9 to create a swap file but it didn't work. First time I used the name pupswap.swp, swapon said invalid argument. Second time, used the default name swapfile,nothing happened. Free in console no swap available.
This very useful pet works well in my other puppies.eg Wary 511, Lighthouse ,puppy 431, but I haven't tried it in Legacy OS2, am quite sure it will run into the same problem as for Classic Pup as both are based on older kernels,k2.6.18.1 (puppy 2.14).
Hoped you'd look into it and come out with a solution as without swap space,Classic Pup 214X on my notebook runs slow and jerky. Thanks in advance.
Just curious: is your swap file in Linux (ext2/3/4?) partition or ntfs like in my case?


Looks like you're cross-posting the same issue in multiple threads. It was already addressed here:

http://murga-linux.com/puppy/viewtopic.php?p=595200&sid=76b9df2b5e2415f01849a38dee5a96dd

The problem appear to be your unique setup, since it works fine for others. I don't know about NTFS partitions for older distributions/kernels.
Back to top
View user's profile Send private message 
killapup


Joined: 25 Apr 2012
Posts: 73
Location: Warwick, Qld, Australia

PostPosted: Sat 02 Jun 2012, 03:43    Post subject:  

Thanks, jpeps, for this utility, being a newbie to Linux, I've struggled with creating a swapfile/partition. This has saved my hair and fingernails, great work. I've yet to test it out fully but at least my system didn't crash or freeze.

It installed without a hitch in Slacko 5 and 5.3.3 on a system with only 112 Mb of available ram, hopefully it will help with the more resource-intense apps.

Keep up the good work.
Back to top
View user's profile Send private message 
jpeps

Joined: 31 May 2008
Posts: 3220

PostPosted: Sun 03 Jun 2012, 04:07    Post subject:  

killapup wrote:


It installed without a hitch in Slacko 5 and 5.3.3 on a system with only 112 Mb of available ram, hopefully it will help with the more resource-intense apps.

wow...I thought Slacko required more ram...did you try Wary? Even with a gig of ram, my swap file kicks in during intense tasks like converting particularly dense files. I'm guessing that without out it, my computer would have frozen.
Back to top
View user's profile Send private message 
jpeps

Joined: 31 May 2008
Posts: 3220

PostPosted: Thu 03 Jan 2013, 07:13    Post subject:  

Update to Version 4.5: Saves settings to init.d/swapmanager instead of editing profile.local.
Back to top
View user's profile Send private message 
SFR


Joined: 26 Oct 2011
Posts: 1078

PostPosted: Tue 20 Aug 2013, 15:25    Post subject:  

Hey Jpeps

I just started to use this app (need more mem) and it's perfect solution for me, especially that I don't want to set up a separate partition for swap.

Just a minor glitch: I noticed every time I lauch the app, two files (named "0" & "4") are being created in /root.
Most likely lines 54 & 163:
Code:
[ ${b} >4 ] && SIZE="$((${SIZE} + 1))"
...
if [ "$VAR" >0 ]; then

It doesn't seem to affect the app's functionality, but anyways it's better to report. Wink

Thank you &
Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send private message 
jpeps

Joined: 31 May 2008
Posts: 3220

PostPosted: Tue 20 Aug 2013, 17:39    Post subject:  

SFR wrote:

It doesn't seem to affect the app's functionality, but anyways it's better to report. Wink

Thank you &
Greetings!


You won't believe this, but:

Code:

 [ "$b" \> "4" ]


ah....bash!

edit: unfortunately, that solution creates errors in some versions of bash and not others, so I'll leave it alone for now.

edit2: This seems to work in several versions of bash that I've tried:

Code:

[ "${b}>4" ]


Uploaded a fix. Thanks for checking. Also uploaded a gtimer version that works out of the box with lucid (needs a gtkdialog variable which checks for the correct version).
Back to top
View user's profile Send private message 
SFR


Joined: 26 Oct 2011
Posts: 1078

PostPosted: Wed 21 Aug 2013, 04:40    Post subject:  

Thanks for quick fix! Smile

Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 4 of 4 [57 Posts]   Goto page: Previous 1, 2, 3, 4
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » System
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0989s ][ Queries: 13 (0.0239s) ][ GZIP on ]