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

Re: Dynamically sizing swap by memory size?



>>>>> "JS" == John Stoffel <stoffel lucent com> 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<





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