Gentoo Archives: gentoo-user

From: Albert Hopkins <marduk@×××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] mysqld invoked oom-killer
Date: Fri, 22 Jul 2011 01:19:30
Message-Id: 1311297505.5379.29.camel@localhost.localdomain
In Reply to: Re: [gentoo-user] mysqld invoked oom-killer by Adam Carter
1 On Friday, July 22 at 10:56 (+1000), Adam Carter said:
2
3 > Its more how much i/o rather than the size. If you have a bunch of
4 > stuff swapped out, but it hardly ever needs to be swapped in, the
5 > impact will be low.
6 >
7 > Keep an eye on the use with vmstat;
8 >
9 > adam@rix ~ $ vmstat 5
10 > procs -----------memory---------- ---swap-- -----io---- -system--
11 > ----cpu----
12 > r b swpd free buff cache si so bi bo in cs us
13 > sy id wa
14 > 0 0 56700 351244 79564 207848 0 0 3 3 11 7 1
15 > 0 99 0
16 > 0 0 56700 351244 79564 207848 0 0 0 8 52 27 0
17 > 0 100 0
18 > 0 0 56700 351244 79564 207848 0 0 0 0 45 14 0
19 > 0 100 0
20 > 0 0 56700 351244 79564 207848 0 0 0 0 47 17 0
21 > 0 100 0
22 >
23 > from the man page;
24 > Swap
25 > si: Amount of memory swapped in from disk (/s).
26 > so: Amount of memory swapped to disk (/s).
27 >
28 >
29 Exactly! My system is the same way.
30
31 Right now I've got a 4GB system that's using 708MB swap. But vmstat
32 isn't showing any swap activity. Why? Because some processes that I'm
33 not aware about because I'm obviously not using, got swapped out a long
34 time ago, and Linux is using that reclaimed RAM to compile chromium ;)
35
36 If/when I need part of that 708MB becomes active, Linux will swap it
37 back in in one short burst that I doubt that I'll even notice.

Replies

Subject Author
Re: [gentoo-user] mysqld invoked oom-killer Grant <emailgrant@×××××.com>