Re: can swap space be resized ?

From: Davide Bianchi (davideyeahsure_at_onlyforfun.net)
Date: 08/22/03


Date: 22 Aug 2003 15:41:54 GMT

Aishwarya <aisinghal@sapient.com> wrote:
> i need to increase swap space on one of our UNIX boxes. is it possible
> to do it?

Turn off the swap, create a new swap partition, prepare it, turn
on the swap.

> does it require a restart of the server ?

It shouldn't.

> also, is there a guideline on what the ideal size of swap space should
> be (percentage of total available disk space) ?

It depends on how much memory you have and how heavy the machine
is used. As a guideline, when you start using a lot of swap, it's
time to buy more memory or a bigger machine.

> space partitions (/tmp)

/tmp isn't the swap partition. Usually the swap partition isn't showed
with df.

Davide



Relevant Pages

  • Re: Swap partition size (future proofing)
    ... Swap partition size ... > the memory later if I want to. ... How much more memory do you need than the amount of physical memory ...
    (Fedora)
  • Re: Panic caused by bad memory?
    ... Bad memory seems unlikely to cause an I/O error trying to write the ... swap space could also account for the original crash. ... activates the swap partition. ...
    (freebsd-hackers)
  • Re: No Desktop
    ... Ubuntu hibernates to the swap partition. ... I have the Ubuntu system installed on an 80 gb drive connected to a USB ... Total Physical Memory 1,536.00 MB ...
    (Ubuntu)
  • Re: Best method to create large 16GB swap partition
    ... > We have a system that is both very memory and processor intensive. ... > process working it's way into a 16GB swap partition, ... > swap partition. ... But setup a swap file instead, ...
    (comp.unix.solaris)
  • SUMMARY Swap Configuration for New V440
    ... I would not allocate more that 4Gb of swap unless your applications have ... usually no need for the old 1 to 1 ratio of physical memory to swap space. ... we have 12gb of ram and setup a 12gb swap partition. ... Kevin Buterbaugh has this to add: ...
    (SunManagers)