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

Re: Large swap partitions



On Fri, 2006-03-24 at 15:12 +0100, Erik Bussink wrote:
> Follow-up to msg from 9/30/05, Arjan van de Ven <arjan infradead org>
> wrote:
> > 2) put a roughly equal sized swap on all the other disks and give
> them 
> > equal priority in the fstab
> 
> When I check my swapon status I see the follow:
> 
> [root sager9750 ~]# swapon -s
> Filename                                Type            Size    Used
> Priority
> /dev/sdb3                               partition       1534196 284
> -1 
> /dev/sda3                               partition       1534196 0
> -2
> 
> [root sager9750 ~]# cat /etc/fstab | grep swap
> LABEL=SWAP-sdb3         swap                    swap    defaults
> 0 0
> LABEL=SWAP-sda3         swap                    swap    defaults
> 0 0 
> 
> By default my swap space if configured with a priority of -1 and -2
> for the second one.
> The swapon man pages only talk about priorities between 1 and 32768.
> How come
> I see negative numbers ?

normally you set positive ones, the kernel sets the negative "by
default" ones.

> 
> I've added the pri=1 to the /etc/fstab now, but I'm a bit puzzeled by
> my default settings.

I would suggest that you give both partitions the same priority, that
allows the kernel to load balance between your two disks...




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