I have some problems in my current servers setup, hope someone can help.... 2 servers:
Server A: NFS server, for serving static HTML publishing (frequently changed, real-time, can't be rsync-ed)
Server B: Web server, for serving data stored in Server A, and send to client
in the future, we might add C, D, E, ... and mount to Server A (via. NFS)
One of the problem with this setup is Server B is having high system loading when traffic is high (but cpu usage is not that high), e.g.
================================================================================
top - 23:42:26 up 113 days, 21:37, 2 users, load average: 5.50, 7.15, 5.82
Tasks: 452 total, 3 running, 449 sleeping, 0 stopped, 0 zombie
Cpu(s): 9.2% us, 3.6% sy, 0.0% ni, 84.1% id, 3.1% wa, 0.0% hi, 0.0% si
Mem: 4149144k total, 4024796k used, 124348k free, 23424k buffers
Swap: 15358100k total, 516k used, 15357584k free, 1759136k cached
and iostat,
avg-cpu: %user %nice %sys %iowait %idle
9.17 0.00 3.62 3.07 84.14
Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn
sda 42.64 188.30 116.79 1844743172 1144159376
sda1 16.45 0.58 131.36 5720906 1286897928
sda2 0.00 0.35 0.00 3399990 560
sda3 24.38 155.18 53.21 1520305323 521331664
sda5 48.51 31.62 366.88 309817218 3594202728
sda6 0.00 0.00 0.01 24825 109104
sda7 0.48 0.56 3.73 5455430 36572328
================================================================================
for Server A (NFS server), CPU loading is:
23:45:11 up 448 days, 23:38, 1 user, load average: 3.81, 5.46, 5.50
155 processes: 152 sleeping, 2 running, 1 zombie, 0 stopped
CPU0 states: 13.3% user 5.2% system 0.0% nice 0.0% iowait 80.3% idle
CPU1 states: 9.0% user 1.2% system 0.0% nice 0.0% iowait 89.1% idle
CPU2 states: 13.2% user 3.2% system 0.0% nice 0.0% iowait 82.4% idle
CPU3 states: 11.3% user 2.2% system 0.0% nice 0.0% iowait 85.4% idle
Mem: 3355136k av, 2991820k used, 363316k free, 0k shrd, 111356k buff
884720k active, 659996k inactive
Swap: 8184188k av, 236320k used, 7947868k free 1288932k cached
and iostat,
avg-cpu: %user %nice %sys %idle
66.77 0.03 20.18 13.02
Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn
dev8-0 607.68 94.88 113.66 624284376 747916866
dev8-1 28.94 230.73 182.09 1518207266 1198153062
also, /proc/net/rpc/nfsd
================================================================================
any recommendation/comments can help in the above setup?
Thanks...