Mailinglist Archive: opensuse-de (2226 mails)

< Previous Next >
Re: SWAP bei SL 9.3
  • From: Andreas Winkelmann <ml@xxxxxxxxxxxxxx>
  • Date: Sat, 17 Jun 2006 15:00:15 +0200
  • Message-id: <200606171500.15243.ml@xxxxxxxxxxxxxx>
Am Saturday 17 June 2006 14:52 schrieb Thomas Hertweck:
> David Haller wrote:
> > [...] Wenn du kurzfristig mal mehr swap
> > brauchst kannst du immer noch eine swapdatei anlegen und verwenden,
> > z.B.:
> >
> > dd if=/dev/zero of=/swapdatei bs=1M count=1024
> > mkswap /swapdatei
> > swapon -p 1 /swapdatei
> >
> > Durch die niedrige Prioritaet wird das swapfile erst verwendet, wenn
> > der restliche swap (mit hoeherer Prioritaet) voll ist.
>
> Ich weiss nicht, wie es bei SUSE 9.3 war, aber bei aktuellen Linux
> Distributionen ist Prioritaet 1 AFAIK eine *hohe* Prioritaet. Dort

$ 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.


> wird die Default-Swap-Partition, sofern keine Prioritaet explizit
> angegeben ist in /etc/fstab, mit Prioritaet -1 eingebunden, jede
> weitere Swap-Partition oder Swap-File erhaelt eine um eins
> erniedrigte Prioritaet falls nicht explizit angegeben, z.B.
>
> $> cat /proc/swaps
> Filename Type Size Used Priority
> /dev/hda6 partition 1052216 3300 -1
> /swapdatei file 511992 0 -2
>
> Dein swapon-Kommando bewirkt also wohl genau das Umgekehrte von dem,
> was Du eigentlich moechtest.
>
> Cheers,
> Th.
>
> PS: Frueher wurde IIRC die Default-Swap-Partition des Systems mit
> Prioritaet 42 eingebunden.

Ist bei meiner suse 9.3 gerade auch so. Könnte aber auch ein SuSE-default
sein.

--
Andreas

--
Um die Liste abzubestellen, schicken Sie eine Mail an:
suse-linux-unsubscribe@xxxxxxxx
Um eine Liste aller verfuegbaren Kommandos zu bekommen, schicken
Sie eine Mail an: suse-linux-help@xxxxxxxx

< Previous Next >
Follow Ups