Hallo, Am Sam, 17 Jun 2006, Thomas Hertweck schrieb:
Andreas Winkelmann wrote:
[...] $ man swapon (von sus 9.3)
-p priority Specify priority for swapon. This option is only available if swapon was compiled under and is used under a 1.3.2 or later kernel. pri- ority is a value between 0 and 32767. Higher numbers indicate higher priority. See swapon(2) for a full description of swap priorities. Add pri=value to the option field of /etc/fstab for use with swapon -a.
Das ist auch bei SUSE 10.0 so im Manual. Aber in der Praxis wird die Swap-Partition (defaults in /etc/fstab) mit Prioritaet -1 eingebunden beim swapon Befehl...
Aus man 2 swapon:
The priority is encoded as:
(prio << SWAP_FLAG_PRIO_SHIFT) & SWAP_FLAG_PRIO_MASK
==== swptst.c ====
#include