Gentoo Archives: gentoo-user

From: Adam Carter <adamcarter3@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] mysqld invoked oom-killer
Date: Fri, 22 Jul 2011 00:59:47
Message-Id: CAC=wYCFrTEQv=3wh=KwLgJTqp=QMsUgyCdS3wcyu1z3k+PRMdA@mail.gmail.com
In Reply to: Re: [gentoo-user] mysqld invoked oom-killer by Grant
1 > OK, how about I enable a 512MB swap file and keep an eye on it.  As
2 > long as I'm not using more than 200MB, I'm not suffering from disk
3 > swap slowdown, right?
4
5 Its more how much i/o rather than the size. If you have a bunch of
6 stuff swapped out, but it hardly ever needs to be swapped in, the
7 impact will be low.
8
9 Keep an eye on the use with vmstat;
10
11 adam@rix ~ $ vmstat 5
12 procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu----
13 r b swpd free buff cache si so bi bo in cs us sy id wa
14 0 0 56700 351244 79564 207848 0 0 3 3 11 7 1 0 99 0
15 0 0 56700 351244 79564 207848 0 0 0 8 52 27 0 0 100 0
16 0 0 56700 351244 79564 207848 0 0 0 0 45 14 0 0 100 0
17 0 0 56700 351244 79564 207848 0 0 0 0 47 17 0 0 100 0
18
19 from the man page;
20 Swap
21 si: Amount of memory swapped in from disk (/s).
22 so: Amount of memory swapped to disk (/s).

Replies

Subject Author
Re: [gentoo-user] mysqld invoked oom-killer Albert Hopkins <marduk@×××××××××××.org>