Something I'm a little confused about. Here is the output of
Note that 11GB (35%) of swap is used.
One thing that confuses me: if 11GB of data is swapped out..... where did that data come from? The most hungry process, by far, is mysqld, but that appears to have almost all of its allocation resident.
The other 30 processes (not shown) have a total of about 409MB allocated. The server pretty much just does one thing, so the large majority of resources are used by mysqld.
With all user processes apparently using a total allocation of around 13.5GB, with 12GB+ of that being resident, how can 11GB be swapped out? Am I misunderstanding the meaning of resident?
top -osize:
Code:
32 processes: 1 running, 31 sleeping
CPU: 3.5% user, 0.0% nice, 1.6% system, 0.0% interrupt, 94.8% idle
Mem: 2701M Active, 1405M Inact, 8454M Laundry, 109G Wired, 24K Buf, 3452M Free
ARC: 99G Total, 80G MFU, 15G MRU, 4123M Anon, 148M Header, 558M Other
92G Compressed, 243G Uncompressed, 2.66:1 Ratio
Swap: 32G Total, 11G Used, 21G Free, 35% Inuse
PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND
3181 mysql 108 20 0 13G 12G select 7 3398.1 101.62% mysqld
25255 rowan 1 20 0 130M 1572K ttyin 10 0:06 0.00% mysql
Note that 11GB (35%) of swap is used.
One thing that confuses me: if 11GB of data is swapped out..... where did that data come from? The most hungry process, by far, is mysqld, but that appears to have almost all of its allocation resident.
The other 30 processes (not shown) have a total of about 409MB allocated. The server pretty much just does one thing, so the large majority of resources are used by mysqld.
With all user processes apparently using a total allocation of around 13.5GB, with 12GB+ of that being resident, how can 11GB be swapped out? Am I misunderstanding the meaning of resident?