Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: swapoff/swapon issues, how/when to use swapoff< Next Oldest | Next Newest >
vees Offline





Group: Members
Posts: 81
Joined: Nov. 2005
Posted: June 08 2006,21:52 QUOTE

Hi,

I tried using the 'swapoff -a' command to prevent my HD to be accessed on my laptop (I had stopped my HD with the 'hdparm -S' command already).  My aim is to use the least amout of power and to maximise battery life.

All worked perfectly (I had used to live-CD of DSL with the 'toram' cheat code) until I tried browsing the net with Firefox  which ended up crashing until I turned the swap back on with the 'swapon' command.

The weird thing is that my 192 RAM memory was used at only 37 percent when this happened.  Could it be that Firefox is coded to *require* swapping regardless of how much RAM is actually used?!

Generally - am I facing potential problems if I keep my swap off?

Many thanks for any help!

VS


--------------
Motto: chown -R linux:GNU world
Back to top
Profile PM 
kerry Offline





Group: Members
Posts: 706
Joined: April 2006
Posted: June 08 2006,22:10 QUOTE

Your system will only use 60% of ram the rest is reserverd. I'm not sure exactly how that works but if you want to know more google is your friend. Try dillo it dosen't have that overhead FF has. If your getting your 37% # from torsmo, it does not show whats buffered and the programs that have been opened and closed but still remain in ram. i have 256 of ram on my laptop and still need a swap. I run in ram using a usb key formatted to swap, i have no hd.
Back to top
Profile PM 
Zucca Offline





Group: Members
Posts: 524
Joined: Feb. 2006
Posted: June 09 2006,02:52 QUOTE

I have same problems. Especially when starting a java applet within FireFox.

My trick is to log out and log back in and then I do swapoff -a. This may not be possible when you have used too much of your ram to store temp and other files. This might help:
Code Sample
sudo rm -fr /tmp/*


But when I want to use large programs I turn swap back on.
Anyway DSL uses swap rarely, so I usually leave swap settings alone.


--------------
Do you have it? - http://dy.fi/mak
Back to top
Profile PM WEB ICQ MSN 
cbagger01 Offline





Group: Members
Posts: 4264
Joined: Oct. 2003
Posted: June 11 2006,04:11 QUOTE

Why not just boot with:

dsl noswap

at the boot prompt?

If you let the swap get turned on at boot time and then turn it of later on, you risk running out of free application RAM.

The best choice is to use a boot time cheatcode "noswap" to avoid the use of the swap in the first place.
Back to top
Profile PM 
meo Offline





Group: Members
Posts: 552
Joined: April 2004
Posted: June 11 2006,15:24 QUOTE

Hi guys!

I have tried to stop my hd (it's old and noisy) with 'hdparm -S' but something has to be added to this command. I'd appreciate any help in this regard. Thanks for the tip to boot with noswap!

Have fun out there,
meo


--------------
"Live and let live"   Treat others the way you want to be treated because that's what you should expect from them.

"All that is very well," answered Candide, "but let us cultivate our garden." - Francois-Marie Arouet Voltaire
Back to top
Profile PM 
4 replies since June 08 2006,21:52 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: swapoff/swapon issues

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code