From: Alan McKinnon <alan.mckinnon@gmail.com>
To: gentoo-user@lists.gentoo.org
Cc: "Stefan G. Weichinger" <lists@xunil.at>
Subject: Re: [gentoo-user] gentoo-box stopping services
Date: Thu, 22 Apr 2010 18:52:05 +0200 [thread overview]
Message-ID: <201004221852.05699.alan.mckinnon@gmail.com> (raw)
In-Reply-To: <4BD07828.7080106@xunil.at>
On Thursday 22 April 2010 18:24:08 Stefan G. Weichinger wrote:
> Am 22.04.2010 17:50, schrieb Alan McKinnon:
> >> Shouldn't the kernel *swap* then ?
> >
> > No, the OOM killer kicks in when the kernel has no more virtual memory,
> > including swap. Either way, more RAM is the answer. Or fidn the app with
> > the memory leak if you are unlucky enough to have one of those running
> > around.
>
> The added swapfile with one GB won't help here for a start?
It will certainly help. If your core problem is simply not enough RAM, then 1G
more might be all you need. You'd have to run checks and do some monitoring to
see if performance is affected.
I haven't followed the full thread so I don't know what you are running; and
some daemons perform really badly if they have to touch swap. Apache for
example, a busy MTA for another - disks are thousands of times slower than
RAM, so if a webserver has to swap memory back in from disk, it almost
instantly brings the server to a grinding halt.
On my web and mail servers I have no swap at all, they do have lots and lots
of RAM; my Sybase database servers have enormous amounts of swap. Each server
has been profiled so it is set up to be as close to ideal as I can determine.
--
alan dot mckinnon at gmail dot com
next prev parent reply other threads:[~2010-04-22 16:55 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4BCD97B0.3050305@xunil.at>
2010-04-20 12:35 ` [gentoo-user] gentoo-box stopping services Stefan G. Weichinger
2010-04-20 22:07 ` Stroller
2010-04-21 7:28 ` Stefan G. Weichinger
2010-04-21 9:09 ` Stroller
2010-04-22 15:31 ` Stefan G. Weichinger
2010-04-22 15:50 ` Alan McKinnon
2010-04-22 16:24 ` Stefan G. Weichinger
2010-04-22 16:52 ` Alan McKinnon [this message]
2010-04-22 21:16 ` [gentoo-user] " walt
2010-04-22 21:46 ` Alan McKinnon
2010-04-23 3:28 ` [gentoo-user] " Stroller
2010-04-23 8:17 ` Stefan G. Weichinger
2010-04-21 7:18 ` Mick
2010-04-21 20:50 ` Stefan G. Weichinger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201004221852.05699.alan.mckinnon@gmail.com \
--to=alan.mckinnon@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
--cc=lists@xunil.at \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox