Hi,
I have a machine that's newly installed with 8.1-RELEASE-p2, AMD64 arch.
The machine has 8GM RAM and 8GB swap as well. It's running apache22 (prefork), php 5.2 and mysql 5.1.
Every other day I notice the machine is using almost all of its swap, while there is loads of RAM free. An example:
Anyone any ideas what can cause this? Surely if I restart Apache and MySQL, all is normal again. I know that it's not a bad practice to restart Apache at least once a day, but MySQL should be able to run for longer periods of time, at least, that's my experience.
There are some custom things on top of the GENERIC kernel, I'm not sure if they have any negative effect here. They are:
Any ideas?
I have a machine that's newly installed with 8.1-RELEASE-p2, AMD64 arch.
The machine has 8GM RAM and 8GB swap as well. It's running apache22 (prefork), php 5.2 and mysql 5.1.
Every other day I notice the machine is using almost all of its swap, while there is loads of RAM free. An example:
Code:
last pid: 83767; load averages: 0.81, 1.05, 0.76
93 processes: 1 running, 92 sleeping
CPU: % user, % nice, % system, % interrupt, % idle
Mem: 5873M Active, 518M Inact, 1301M Wired, 202M Cache, 827M Buf, 6332K Free
Swap: 8192M Total, 7276M Used, 916M Free, 88% Inuse
PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND
64890 mysql 21 44 0 3185M 94384K sbwait 0 15:05 8.69% mysqld
82755 www 1 47 0 2418M 1104M swread 7 1:19 5.37% httpd
83692 www 1 49 0 228M 70284K swread 11 0:01 5.37% httpd
82688 www 1 46 0 2422M 1287M swread 12 1:11 4.79% httpd
83695 www 1 48 0 228M 69492K sbwait 3 0:01 2.88% httpd
82754 www 1 45 0 2436M 1095M swread 4 1:28 0.59% httpd
1027 root 4 44 0 5764K 384K rpcsvc 4 11:22 0.00% nfsd
82675 www 1 44 0 2436M 807M swread 2 1:49 0.00% httpd
82715 www 1 44 0 2436M 1043M swread 6 1:25 0.00% httpd
82683 www 1 44 0 2436M 836M swread 0 1:05 0.00% httpd
82717 www 1 76 0 158M 0K accept 8 0:51 0.00% <httpd>
1376 root 1 44 0 12056K 1092K select 0 0:34 0.00% sendmail
1178 root 1 44 0 37128K 1452K select 13 0:24 0.00% perl
855 root 1 44 0 6984K 612K select 0 0:22 0.00% syslogd
1388 root 1 44 0 7912K 360K nanslp 8 0:07 0.00% cron
1370 root 1 44 0 26132K 680K select 4 0:05 0.00% sshd
Anyone any ideas what can cause this? Surely if I restart Apache and MySQL, all is normal again. I know that it's not a bad practice to restart Apache at least once a day, but MySQL should be able to run for longer periods of time, at least, that's my experience.
There are some custom things on top of the GENERIC kernel, I'm not sure if they have any negative effect here. They are:
Code:
options QUOTA
options SHMMAXPGS=4096
options SHMSEG=256
options SEMMSL=1536
options SEMMNI=256
options SEMMNS=512
options SEMMNU=512
options SEMMAP=512
options SEMOPM=2560
options SEMUME=256
options ACCEPT_FILTER_HTTP
options PMAP_SHPGPERPROC=1000
Any ideas?