On Jan 26, 10:12 am, Vito <vitofa...@...> wrote:
> I've a server dual core with 4 GB di RAM. This server is used only for host
> 2 zope instances with a plone site for each (and pound + varnish, with
> apache as frontend)
> This two plone sites have a standard configuration with few editors (20).
> Usually I've to reboot the serve cause the python processes burn all the
> swap without "touch" many RAM.
> Why? Can i solve this problem without a reboot every night?
Andreas is being his usual abrasive self, but also as usual, he _is_
right. Technically, it is not possible for your system to use swap
without using RAM. Swappers move data _from_ RAM to disk, to make
room for other tasks which need the RAM. If your swap is full, and
your physical memory is not being used, it simply means some process
with large memory requirements has started (causing other memory to be
swapped out) & stopped (thus freeing the physical memory it was
using), and nothing has needed to call the swapped data back into
However, even if there is zero space left in your swap file, if you
aren't using 4GB of RAM at the same time, there is no need to restart
your server - everything is working as intended. If your system has
_never_ used all of its physical memory, you have no problem. You
only have an issue if you run into situations where all of your
physical memory is used, all of your swap is used, and increasing the
size of your swap file doesn't improve performance.