15 Feb
2005
15 Feb
'05
17:27
If you really want to know about the algorithm, take a look at: /usr/share/YaST2/modules/Partitions.ycp and search for the function: SwapSizeMb Anas Campbell, Fraser wrote:
Anas Nashif wrote:
What values do you get with 'auto' set?
On a machine with 3GB of RAM, "auto" sets swap to 1GB. Do you know the algorithm used for calculating the size of an auto partition?
For now I'm setting swap up to my desired size with a post script like this:
lvcreate -n swap -L `grep ^MemTotal /proc/meminfo | awk '{print $2}'`K vg00 mkswap /dev/vg00/swap swapon /dev/vg00/swap echo "/dev/vg00/swap swap swap pri=42 0 0" >> /etc/fstab
Thanks,
Fraser