Dynamically sizing swap by memory size?

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

 



Hi,

Is there any way to dynamically resize swap space according to how much
memory is installed on a system?

I figure I could just do 'parted' after the system is up, but this seems
pretty hacky, and a pain since it would have to run during the %post
phase, which would require me to unmount the /mnt/sysimage to do the
work.

Basically, we would love to setup swap partitions according to some
simple rules, such as:

    2 x system RAM, minum of 256mb, max of 2gb.

Any clue would be great.

Thanks,
John






[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux