Re: [squid-users] Squid LOAD

From: Luis Daniel Lucio Quiroz <luis.daniel.lucio_at_gmail.com>
Date: Fri, 29 Oct 2010 15:30:34 -0500

Le vendredi 29 octobre 2010 15:24:48, vous avez écrit :
> top - 00:20:05 up 17 days, 22:56, 1 user, load average: 5.88, 5.39, 4.73
> Tasks: 114 total, 1 running, 113 sleeping, 0 stopped, 0 zombie
> Cpu(s): 0.9%us, 0.6%sy, 0.0%ni, 94.8%id, 2.5%wa, 0.1%hi, 1.1%si,
> 0.0%st Mem: 33016556k total, 32842888k used, 173668k free, 5042132k
> buffers Swap: 143372052k total, 1076k used, 143370976k free, 16208196k
> cached
>
>
>
> procs -----------memory---------- ---swap-- -----io---- -system--
> ----cpu---- r b swpd free buff cache si so bi bo in
> cs us sy id wa 0 2 1076 163500 5043704 16216108 0 0 13 89
> 2 3 0 1 94 5
>
>
>
> Linux 2.6.26-2-amd64 (pr0xySRV) 10/30/2010 _x86_64_
>
> avg-cpu: %user %nice %system %iowait %steal %idle
> 0.41 0.00 0.75 4.51 0.00 94.33
>
> Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn
> sda 1.59 12.23 105.24 18979154 163269650
> sda1 0.34 2.63 8.53 4082530 13235240
> sda2 0.42 7.64 6.31 11851802 9784440
> sda3 0.82 1.96 90.40 3044342 140249970
> sdb 0.10 3.40 0.13 5269806 197808
> sdb1 0.10 3.40 0.13 5267206 197800
> sdc 14.43 50.89 275.74 78956864 427790376
> sdc1 14.43 50.89 275.74 78956392 427790376
> sdd 3.21 28.47 40.78 44164136 63272352
> sdd1 3.21 28.47 40.78 44163664 63272352
> sde 10.10 40.10 282.07 62214208 437606904
> sde1 10.10 40.10 282.07 62213736 437606904
> sdf 25.66 80.83 745.55 125399392 1156655456
> sdf1 25.66 80.83 745.55 125398920 1156655456
> sdg 0.00 0.00 0.00 3160 168
> sdg1 0.00 0.00 0.00 2688 168
> sdh 0.00 0.00 0.00 4678 0
> sdh1 0.00 0.00 0.00 1870 0
> sdi 0.00 0.00 0.00 4646 0
> sdi1 0.00 0.00 0.00 1870 0
> sdj 0.00 0.00 0.00 4646 0
> sdj1 0.00 0.00 0.00 1870 0
> sdk 0.00 0.00 0.00 4646 0
> sdk1 0.00 0.00 0.00 1870 0
> sdl 0.00 0.00 0.00 4646 0
> sdl1 0.00 0.00 0.00 1870 0
> sdm 0.00 0.00 0.00 4646 0
> sdm1 0.00 0.00 0.00 1870 0
> sdn 0.00 0.00 0.00 4646 0
> sdn1 0.00 0.00 0.00 1870 0
>
>
>
>
> USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
> root 2 0.0 0.0 0 0 ? S< Oct12 0:00 [kthreadd]
> root 3 0.0 0.0 0 0 ? S< Oct12 0:00 \_
> [migration/0]
> root 4 0.0 0.0 0 0 ? S< Oct12 0:06 \_
> [ksoftirqd/0]
> root 5 0.0 0.0 0 0 ? S< Oct12 0:00 \_
> [watchdog/0]
> root 6 0.0 0.0 0 0 ? S< Oct12 0:00 \_
> [migration/1]
> root 7 0.0 0.0 0 0 ? S< Oct12 0:02 \_
> [ksoftirqd/1]
> root 8 0.0 0.0 0 0 ? S< Oct12 0:00 \_
> [watchdog/1]
> root 9 0.0 0.0 0 0 ? S< Oct12 0:00 \_
> [migration/2]
> root 10 0.0 0.0 0 0 ? S< Oct12 0:02 \_
> [ksoftirqd/2]
> root 11 0.0 0.0 0 0 ? S< Oct12 0:00 \_
> [watchdog/2]
> root 12 0.0 0.0 0 0 ? S< Oct12 0:00 \_
> [migration/3]
> root 13 0.0 0.0 0 0 ? S< Oct12 0:02 \_
> [ksoftirqd/3]
> root 14 0.0 0.0 0 0 ? S< Oct12 0:00 \_
> [watchdog/3]
> root 15 0.0 0.0 0 0 ? S< Oct12 0:00 \_
> [migration/4]
> root 16 0.0 0.0 0 0 ? S< Oct12 0:02 \_
> [ksoftirqd/4]
> root 17 0.0 0.0 0 0 ? S< Oct12 0:00 \_
> [watchdog/4]
> root 18 0.0 0.0 0 0 ? S< Oct12 0:00 \_
> [migration/5]
> root 19 0.0 0.0 0 0 ? S< Oct12 0:02 \_
> [ksoftirqd/5]
> root 20 0.0 0.0 0 0 ? S< Oct12 0:00 \_
> [watchdog/5]
> root 21 0.0 0.0 0 0 ? S< Oct12 0:00 \_
> [migration/6]
> root 22 0.0 0.0 0 0 ? S< Oct12 0:02 \_
> [ksoftirqd/6]
> root 23 0.0 0.0 0 0 ? S< Oct12 0:00 \_
> [watchdog/6]
> root 24 0.0 0.0 0 0 ? S< Oct12 0:00 \_
> [migration/7]
> root 25 0.0 0.0 0 0 ? S< Oct12 0:02 \_
> [ksoftirqd/7]
> root 26 0.0 0.0 0 0 ? S< Oct12 0:00 \_
> [watchdog/7]
> root 27 0.0 0.0 0 0 ? S< Oct12 1:00 \_
> [events/0] root 28 0.0 0.0 0 0 ? S< Oct12
> 0:28 \_ [events/1] root 29 0.0 0.0 0 0 ? S<
> Oct12 3:44 \_ [events/2] root 30 0.0 0.0 0 0 ?
> S< Oct12 4:10 \_ [events/3] root 31 0.0 0.0 0 0 ?
> S< Oct12 1:42 \_ [events/4] root 32 0.0 0.0 0
> 0 ? S< Oct12 1:10 \_ [events/5] root 33 0.0 0.0
> 0 0 ? S< Oct12 0:50 \_ [events/6] root 34 0.0 0.0
> 0 0 ? S< Oct12 2:22 \_ [events/7] root 35 0.0
> 0.0 0 0 ? S< Oct12 0:00 \_ [khelper] root 76
> 0.0 0.0 0 0 ? S< Oct12 0:04 \_ [kblockd/0] root
> 77 0.0 0.0 0 0 ? S< Oct12 0:00 \_ [kblockd/1]
> root 78 0.0 0.0 0 0 ? S< Oct12 0:00 \_
> [kblockd/2] root 79 0.0 0.0 0 0 ? S< Oct12
> 0:00 \_ [kblockd/3] root 80 0.0 0.0 0 0 ? S<
> Oct12 0:00 \_ [kblockd/4] root 81 0.0 0.0 0 0 ?
> S< Oct12 0:00 \_ [kblockd/5] root 82 0.0 0.0 0 0 ?
> S< Oct12 0:00 \_ [kblockd/6] root 83 0.0 0.0 0
> 0 ? S< Oct12 0:00 \_ [kblockd/7] root 85 0.0 0.0
> 0 0 ? S< Oct12 0:00 \_ [kacpid] root 86 0.0 0.0
> 0 0 ? S< Oct12 0:00 \_ [kacpi_notify]
> root 201 0.0 0.0 0 0 ? S< Oct12 0:00 \_
> [ksuspend_usbd]
> root 207 0.0 0.0 0 0 ? S< Oct12 0:00 \_
> [khubd] root 210 0.0 0.0 0 0 ? S< Oct12 0:00
> \_ [kseriod] root 288 0.0 0.0 0 0 ? S< Oct12
> 3:16 \_ [kswapd0]
>
> root 289 0.0 0.0 0 0 ? S< Oct12 0:00 \_
> [aio/0] root 290 0.0 0.0 0 0 ? S< Oct12 0:00
> \_ [aio/1] root 291 0.0 0.0 0 0 ? S< Oct12
> 0:00 \_ [aio/2] root 292 0.0 0.0 0 0 ? S< Oct12
> 0:00 \_ [aio/3] root 293 0.0 0.0 0 0 ? S<
> Oct12 0:00 \_ [aio/4] root 294 0.0 0.0 0 0 ? S<
> Oct12 0:00 \_ [aio/5] root 295 0.0 0.0 0 0 ?
> S< Oct12 0:00 \_ [aio/6] root 296 0.0 0.0 0 0 ?
> S< Oct12 0:00 \_ [aio/7] root 1112 0.0 0.0 0 0 ?
> S< Oct12 0:00 \_ [ata/0] root 1115 0.0 0.0 0 0 ?
> S< Oct12 0:00 \_ [ata/1] root 1116 0.0 0.0 0 0
> ? S< Oct12 0:00 \_ [ata/2] root 1117 0.0 0.0 0
> 0 ? S< Oct12 0:00 \_ [ata/3] root 1118 0.0 0.0 0
> 0 ? S< Oct12 0:00 \_ [ata/4] root 1119 0.0 0.0 0
> 0 ? S< Oct12 0:00 \_ [ata/5] root 1120 0.0 0.0
> 0 0 ? S< Oct12 0:00 \_ [ata/6] root 1121 0.0 0.0
> 0 0 ? S< Oct12 0:00 \_ [ata/7] root 1122 0.0 0.0
> 0 0 ? S< Oct12 0:00 \_ [ata_aux] root 1175 0.0
> 0.0 0 0 ? S< Oct12 0:00 \_ [scsi_eh_0] root 1176
> 0.0 0.0 0 0 ? S< Oct12 0:00 \_ [scsi_eh_1] root
> 1177 0.0 0.0 0 0 ? S< Oct12 0:00 \_ [scsi_eh_2]
> root 1178 0.0 0.0 0 0 ? S< Oct12 0:00 \_
> [scsi_eh_3] root 1179 0.0 0.0 0 0 ? S< Oct12
> 0:00 \_ [scsi_eh_4] root 1180 0.0 0.0 0 0 ? S<
> Oct12 0:00 \_ [scsi_eh_5] root 1181 0.0 0.0 0 0 ?
> S< Oct12 0:00 \_ [scsi_eh_6] root 1182 0.0 0.0 0 0 ?
> S< Oct12 0:00 \_ [scsi_eh_7] root 1667 0.0 0.0 0
> 0 ? S< Oct12 0:05 \_ [kjournald] root 2541 0.0 0.0
> 0 0 ? S< Oct12 0:17 \_ [edac-poller]
> root 2607 0.0 0.0 0 0 ? S< Oct12 0:00 \_
> [kpsmoused] root 3180 0.2 0.0 0 0 ? SN Oct12
> 63:56 \_ [kipmi0] root 3591 0.0 0.0 0 0 ? S<
> Oct12 0:28 \_ [kjournald] root 3603 0.0 0.0 0 0 ?
> S< Oct12 0:07 \_ [reiserfs/0]
> root 3604 0.0 0.0 0 0 ? S< Oct12 0:06 \_
> [reiserfs/1]
> root 3605 0.0 0.0 0 0 ? S< Oct12 0:06 \_
> [reiserfs/2]
> root 3606 0.0 0.0 0 0 ? S< Oct12 0:06 \_
> [reiserfs/3]
> root 3607 0.0 0.0 0 0 ? S< Oct12 0:05 \_
> [reiserfs/4]
> root 3608 0.0 0.0 0 0 ? S< Oct12 0:05 \_
> [reiserfs/5]
> root 3609 0.0 0.0 0 0 ? S< Oct12 0:05 \_
> [reiserfs/6]
> root 3610 0.0 0.0 0 0 ? S< Oct12 0:05 \_
> [reiserfs/7]
> root 27966 0.0 0.0 0 0 ? S Oct19 7:36 \_
> [pdflush] root 30067 0.0 0.0 0 0 ? S Oct19 0:00
> \_ [pdflush] root 1 0.0 0.0 10316 704 ? Ss Oct12
> 0:09 init [2] root 1743 0.0 0.0 16932 1104 ? S<s Oct12
> 0:00 udevd --daemon root 4028 0.0 0.0 122372 2384 ? Sl
> Oct12 0:02
> /usr/sbin/rsyslogd -c3
> root 4039 0.0 0.0 3800 572 ? Ss Oct12 0:00
> /usr/sbin/acpid 103 4049 0.0 0.0 21092 556 ? Ss Oct12
> 0:00
> /usr/bin/dbus-daemon --system
> bind 4065 0.0 0.2 283672 66536 ? Ssl Oct12 18:25
> /usr/sbin/named -u bind
> root 4182 0.0 0.0 19836 1028 ? Ss Oct12 0:00
> /usr/sbin/cron root 4197 0.0 0.0 120204 3372 ? Ss Oct12
> 0:36
> /usr/sbin/apache2 -k start
> www-data 23433 0.0 0.0 120204 2324 ? S Oct24 0:00 \_
> /usr/sbin/apache2 -k start
> www-data 23487 0.0 0.0 409444 4048 ? Sl Oct24 0:00 \_
> /usr/sbin/apache2 -k start
> www-data 23488 0.0 0.0 409608 4308 ? Sl Oct24 0:00 \_
> /usr/sbin/apache2 -k start
> root 4287 0.0 0.0 75028 15000 ? Ss Oct12 1:56
> /usr/bin/perl /usr/share/webmin/miniserv.pl /etc/webmin/miniserv.conf
> root 4289 0.0 0.0 3800 576 tty1 Ss+ Oct12 0:00
> /sbin/getty 38400 tty1
> root 4291 0.0 0.0 3800 572 tty2 Ss+ Oct12 0:00
> /sbin/getty 38400 tty2
> root 4293 0.0 0.0 3800 572 tty3 Ss+ Oct12 0:00
> /sbin/getty 38400 tty3
> root 4294 0.0 0.0 3800 576 tty4 Ss+ Oct12 0:00
> /sbin/getty 38400 tty4
> root 4295 0.0 0.0 3800 572 tty5 Ss+ Oct12 0:00
> /sbin/getty 38400 tty5
> root 4296 0.0 0.0 3800 576 tty6 Ss+ Oct12 0:00
> /sbin/getty 38400 tty6
> root 25586 0.0 0.0 23476 752 ? Ss Oct26 0:00 squid
> squid 25589 1.8 24.3 8055640 8024348 ? Sl Oct26 84:41 \_
> (squid) squid 25591 0.0 0.0 3644 384 ? S Oct26 0:00
> \_ (unlinkd)
> arpalert 2096 0.0 0.0 19588 3912 ? S Oct28 0:02
> /usr/sbin/arpalert -d -f /etc/arpalert/arpalert.conf
> root 25915 0.0 0.0 48868 1164 ? Ss Oct29 0:00
> /usr/sbin/sshd root 26063 0.0 0.0 66076 3112 ? Ss 00:07
> 0:00 \_ sshd: bill_at_pts/0
> root 26065 0.0 0.0 18800 1936 pts/0 Ss 00:07 0:00 \_
> -bash root 26231 0.0 0.0 15984 1100 pts/0 R+ 00:21 0:00
> \_ ps -auxf

I dont like your 2.5% IO waiting, this may be reason but need to guess what
process.

try this:
disable your arpalert when much servers connect arp daemon has much more work
to do.
i guess you are using squid27, so change your logging, use syslog instead
writting directly to disk (syslog has cache) or even better if you dont mind
turn off logging and try
Received on Fri Oct 29 2010 - 20:30:14 MDT

This archive was generated by hypermail 2.2.0 : Sat Oct 30 2010 - 12:00:03 MDT