Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Swap Tip
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
dermot
Tux's lil' helper
Tux's lil' helper


Joined: 28 Mar 2003
Posts: 108
Location: Dublin, Ireland

PostPosted: Mon Apr 07, 2003 1:45 pm    Post subject: Swap Tip Reply with quote

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
View user's profile Send private message
bsolar
Bodhisattva
Bodhisattva


Joined: 12 Jan 2003
Posts: 2764

PostPosted: Mon Apr 07, 2003 1:57 pm    Post subject: Re: Swap Tip Reply with quote

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
View user's profile Send private message
koala
Tux's lil' helper
Tux's lil' helper


Joined: 15 Aug 2002
Posts: 91
Location: Barcelona, Spain

PostPosted: Mon Apr 07, 2003 7:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
jarealist
Apprentice
Apprentice


Joined: 07 Oct 2002
Posts: 227

PostPosted: Mon Apr 07, 2003 10:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
Lin_Matt
Guru
Guru


Joined: 23 Jun 2002
Posts: 581
Location: TechWasteland (Mississippi)

PostPosted: Mon Apr 07, 2003 11:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
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