Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] Apache MPM performance



On 10/03/2008, Sigurd Urdahl <sigurdur@example.com> wrote:

>  I would also be interesting to know what
>  happens on the server during the tests. Memory pressure, CPU load,
>  context switches, that kind of things.

Which one can monitor (as I'm sure Sig and Nguyen know, but in case
some list members hadn't heard of it) with vmstat:

: jglover@example.com; vmstat 1
procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa
 0  0      0 468560  29720 263364    0    0   486    59 1169  751 10  3 71 17
 1  0      0 468560  29728 263364    0    0     0    20 1104  546  1  0 98  1
 1  0      0 468560  29728 263364    0    0     0     0 1128  582  0  0 100  0
[...]
 0  0      0 468496  29728 263368    0    0     0     0 1149  819 10  1 89  0
 0  0      0 468496  29728 263368    0    0     0     0 1145  853  1  0 99  0
 0  2      0 461584  31168 263368    0    0  1432    36 1416 1681  2 15 23 60
 1  1      0 459152  33016 263368    0    0  1848     0 1544 2463  2 12  0 86
 1  0      0 457104  34424 263368    0    0  1408     0 1477 1584  1  7  0 92
 1  1      0 455056  35956 263368    0    0  1532     0 1531 1738  4  7  0 89
 1  1      0 453328  37424 263368    0    0  1468     0 1503 1640  1  7  0 92
[...]
 0  1      0 402056  81748 263372    0    0  1468     0 1484 1663  1  7  0 92
 1  0      0 399816  83652 263372    0    0  1904     0 1587 2046  2  9  0 89
 0  1      0 397456  85456 263372    0    0  1804     0 1561 2003  1 10  0 89
 0  0      0 395552  86596 263372    0    0  1140     0 1341 1529  3  6 26 65
 0  0      0 395616  86604 263372    0    0     0    32 1069  555  1  0 98  1
 0  0      0 395616  86604 263372    0    0     0     0 1050  524  1  0 99  0

This is my system's VM activity, polled once per second. It is doing
nothing at first (well, running X.org, Openbox, Firefox, Thunderbird,
Psi, and four Gnome terminals), then I kick off a "find / -type f
-name foo", which causes Blocks In (bi) to jump.

"man vmstat" for further fun.

-- 
Cheers,
Josh


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links