[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Taille du swap



Sebastien Delcroix wrote:
> 
> Salut,
> 
> Stéphane Reboullet wrote:
> >
> [...]
> >
> > Donc, est-ce que Linux peut utiliser plus de 128 Mo sur UNE partition de
> > swap, malgré ce qui est dit dans ce document ? Ou faut-il utiliser
> 
> oui tu peux faire un partition de la taille que tu veux

« man mkswap » sur une patate (« mkswap from util-linux-2.10f » ):

«[...]
       -v0    Create an old style swap area.

       -v1    Create a new style swap area.

       If no -v option is given, mkswap will default to old style
       if  the  size of the swap area does not exceed the maximum
       size of an old style swap area, and also  if  the  current
       kernel  is  older  than  2.1.117 (and also if PAGE_SIZE is
       less than 2048).  The new style header does not touch  the
       first  block,  so may be preferable (also if the swap area
       is small), in case you have a boot loader  or  disk  label
       there.
[...]»

Donc la réponse correcte est : les partitions de swap peuvent être
plus grandes que 128 Mo si elles sont en version 1. Or lors d'une
installation, mkswap est lancé sans paramètre -v, donc en version
zéro.

Pour utiliser réellement des partitions swap de plus de 128 Mo, il
faut les créer soi-même avec -v1.

Précision nécessaire, je pense.
-- 
   __     ________________________________________________     __   
  |oo|   | Sylvain Sauvage, doctorant [IAD & SMA]         |   |oo|  
  <_)|   |     GREYC -- CNRS UMR 6072, Université de Caen |   <_)|  
 //  \\  |                                                |  //  \\ 
(_|  |_) |      http://www.info.unicaen.fr/~sauvage       | (_|  |_)
|_\==/_| |_______ mailto:sauvage@info.unicaen.fr _________| |_\==/_|



Reply to: