View previous topic :: View next topic |
Author |
Message |
dermot Tux's lil' helper


Joined: 28 Mar 2003 Posts: 108 Location: Dublin, Ireland
|
Posted: Mon Apr 07, 2003 1:45 pm Post subject: Swap Tip |
|
|
Mouse misbehaving? Random applications shutting down for no reason? Nautilus entering into a perpetual cycle of starting and then stopping for no apparent reason?
Make sure you've your damn swap on!!
Seriously, took me ages to figure out why these things were happening on my machine... _________________ Dermot
I bought some rock star ashes from the back of Rolling Stone
I don't think he would've minded - he couldn't sell his soul |
|
Back to top |
|
 |
bsolar Bodhisattva


Joined: 12 Jan 2003 Posts: 2764
|
Posted: Mon Apr 07, 2003 1:57 pm Post subject: Re: Swap Tip |
|
|
dermot wrote: | Mouse misbehaving? Random applications shutting down for no reason? Nautilus entering into a perpetual cycle of starting and then stopping for no apparent reason?
Make sure you've your damn swap on!!
Seriously, took me ages to figure out why these things were happening on my machine... |
And it happens... I noticed mine was off only after having gkrellm installed since there was no indicator... _________________ I may not agree with what you say, but I'll defend to the death your right to say it. |
|
Back to top |
|
 |
koala Tux's lil' helper

Joined: 15 Aug 2002 Posts: 91 Location: Barcelona, Spain
|
Posted: Mon Apr 07, 2003 7:26 pm Post subject: |
|
|
BTW, I hate it when memory gets swapped out where it could still be in RAM, but the space is taken by disk caches. I do the following when it happens:
Code: | swapoff -a
swapon -a |
Check 'free' before to know whether you can pull this off. It irks me when I'm away from the computer for hours and I'm back and about half my RAM is disk cache, and my interactive apps are swapped out. Instead of waiting to things to slowly come back to physical memory, I force the kernel to do it immediately.[/code] |
|
Back to top |
|
 |
jarealist Apprentice

Joined: 07 Oct 2002 Posts: 228
|
Posted: Mon Apr 07, 2003 10:08 pm Post subject: |
|
|
BTW thanks for the thread.
I've done some searching and read the man pages for swapon, but I can't find a "recommended priority setting" for swapon.
When if first checked swapon I got a (-1) priority. According to the swapon (2) man page this given when there is an error.
After I modified my fstab file, per man page swapon 8, as follows:
/dev/hdc2 none swap pri=0,sw 0 0
I got this when checking swapon:
************: pts/1: 10 files 259Kb -> /sbin/swapon -s
Filename Type Size Used Priority
/dev/ide/host0/bus1/target0/lun0/part2 partition 999800 0 0
Now that it appears to be working, what value should I set the priority? According to swapon 8 man page it should be a value from 0 to 32767. If someone can point me in the right direction to the answer I would appreciate it. Thanks in advance. |
|
Back to top |
|
 |
Lin_Matt Guru


Joined: 23 Jun 2002 Posts: 581 Location: TechWasteland (Mississippi)
|
Posted: Mon Apr 07, 2003 11:27 pm Post subject: |
|
|
The priority flag is only used if you have multiple swap files/partitions. It controls the order in which they are used.... |
|
Back to top |
|
 |
|