Re: 'mkswap' and 'swapon' 'swapoff' SOLVED!



So anyway, it was like, 12:02 CEST Apr 05 2006, you know? Oh, and, yeah,
iforone was all like, "Dude,

I still have about 17MB 'physical' RAM free

No, you have just over 120MB free physical memory. Some of that is
being used for disk cache, since you're not using it for anything
else. If it's needed, it'll be made available before swap is used.

See the line just above the swap info below, it's a summary with disk
cache discounted.

~$ free
total used free shared buffers cached
Mem: 192264 175208 17056 0 11324 98872
-/+ buffers/cache: 65012 127252
Swap: 131064 0 131064

I guess the 'priority' option is ONLY useful if using the 'swapon
-a' or similar command in an /etc/rc script;

The priority is only used for ranking different swap partitions and/or
files. The one(s) with the lowest priority will be used first. Like
the manpage says, see 'man 2 swapon' if you want to know more.

Since you only have a single swap file, you can set the priority to
anything you like and it won't really make a difference.

hth.

--
Time flies like an arrow, fruit flies like a banana. Perth ---> *
12:40:07 up 1 day, 23:34, 1 user, load average: 0.00, 0.01, 0.00
Linux 2.6.16.1 x86_64 GNU/Linux Registered Linux user #261729
.



Relevant Pages

  • Re: Giving more CPU time to a swapping process?
    ... COW is only relevent when a process forks and the OS can make decisions ... The process is so memory-hungry that it starts swap after the physical RAM ... using swap) and its priority has dropped to -20; ... nice is the correct command to allocate more CPU attention to the process. ...
    (freebsd-questions)
  • Re: [kde] kde Digest, Vol 115, Issue 5
    ... Filename Type Size Used Priority ... with additional swap devices added as ever lower ... kernel some scheduling flexibility so it route storage access to a device ... Hibernate could only use one ...
    (KDE)
  • Re: Giving more CPU time to a swapping process?
    ... The process is so memory-hungry that it starts swap after the physical RAM ... I dare you to lower the per-process limitation on ... using swap) and its priority has dropped to -20; ... nice is the correct command to allocate more CPU attention to the process.. ...
    (freebsd-questions)
  • Re: Giving more CPU time to a swapping process?
    ... The process is so memory-hungry that it starts swap after the physical RAM ... using swap) and its priority has dropped to -20; ... nice is the correct command to allocate more CPU attention to the process. ...
    (freebsd-questions)
  • Re: How to disable a Ram Swap permanently
    ... If you have only one swap partition/file, the priority ... The swap filesystem isn't the same as other filesystems. ... Specify priority for swapon. ...
    (Ubuntu)