Re: Dynamically sizing swap by memory size?

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

 



>>>>> "JS" == John Stoffel <stoffel@xxxxxxxxxx> writes:

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

7.3 has the "--recommended" option for sizing swap partitions:

-----
swap

The partition will be used as swap space.

To determine the size of the swap partition automatically, use the
--recommended[1] option:

swap --recommended

The minimum size of the automatically-generated swap partition will be
no smaller than the amount of RAM in the system and no bigger than
twice the amount of RAM in the system.
-----

but this doesn't look quite like what you want.  It probably wouldn't
be too difficult for you to edit the logic a bit.

 - J<





[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