[squid-users] Is Squid can shutdown unused idle redirector's children?
Yuri Voinov
yvoinov at gmail.com
Mon Feb 16 19:10:44 UTC 2015
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I know. Now I see Squid source to determine helper's shutdown logic. I
see helper shutdown subroutine, but not find fire conditions yet.
Look:
root @ cthulhu / # ps -e
PID TTY TIME CMD
0 ? 1:21 sched
5 ? 6:10 zpool-rp
6 ? 0:07 kmem_tas
1 ? 2:38 init
2 ? 0:00 pageout
3 ? 14:36 fsflush
7 ? 0:00 vmtasks
6477 ? 0:00 ssl_crtd
11 ? 0:05 svc.star
13 ? 0:07 svc.conf
925 ? 0:06 sendmail
87 ? 9:51 zpool-da
89 ? 0:04 devfsadm
769 ? 0:00 sac
921 ? 1:00 unbound
358 ? 0:07 ipmon
1386 ? 11:15 clamd
498 ? 0:00 picld
207 ? 0:00 kcfd
148 ? 0:00 sysevent
918 ? 0:07 dnscrypt
705 ? 0:02 cron
756 ? 0:00 rpcbind
909 ? 0:17 c-icap
796 ? 0:01 privoxy
799 ? 0:00 inetd
800 ? 0:01 utmpd
924 ? 4:48 tor
807 ? 0:00 ttymon
808 ? 0:04 fmd
836 ? 0:01 syslogd
811 console 0:00 ttymon
939 ? 0:27 munin-no
917 ? 0:00 sshd
927 ? 11:54 freshcla
6486 ? 0:00 diskd
37146 ? 0:00 httpd.pr
37143 ? 0:00 httpd.pr
18321 ? 0:00 httpd.pr
1141 ? 0:30 xntpd
37151 pts/1 0:00 bash
6478 ? 0:00 ssl_crtd
6479 ? 0:00 ssl_crtd
6473 ? 0:00 squid
6483 ? 0:00 diskd
33784 ? 0:00 c-icap
6480 ? 0:00 ssl_crtd
19016 ? 0:00 c-icap
6476 ? 0:00 ssl_crtd
18319 ? 0:04 httpd.pr
6484 ? 0:00 diskd
14856 ? 0:00 sshd
6482 ? 0:00 unlinkd
14859 pts/2 0:00 bash
37144 ? 0:00 httpd.pr
6485 ? 0:00 diskd
6562 ? 0:00 squidGua
37145 ? 0:00 httpd.pr
37148 ? 0:00 sshd
38510 pts/1 0:00 ps
6475 ? 0:18 squid
6481 ? 0:00 log_file
17.02.15 1:08, Eliezer Croitoru пишет:
> Hey Yuri,
>
> You missed the whole point. I didn't wanted you to grep any
> output. I wanted to see the whole server process list as a whole to
> understand the issue you see. If you see the server only with grep
> you might missing something since I have yet to see your server do
> any swap what so ever until now.
>
> An idle process is fine by nature. Many systems has many idle
> processes at the background. It's in SLEEP mode while waiting for
> squid to send it's data\request. What have you seen wrong about it?
> I am happy to understand. From squid point of view idle is not
> about if the process is in SLEEP or IDLE mode and you will see the
> OS in SLEEP mode while from squid aspect it's IDLE.
>
> I have tried to understand what version of squid are you running
> but until now didn't got it.
>
> Some dozens? and what is the cachemgr url_rewrite helper
> statistics output at the time you see the issue?
>
> Eliezer
>
> On 16/02/2015 20:42, Yuri Voinov wrote:
>> root @ cthulhu / # ps -efl|grep squidGuard|grep -v grep|awk
>> {'print $2 " " $5'} S 6475
>>
>> Now you can see one squidGuard process. Squid was restarted hour
>> ago.
>>
>> Process is idle (no traffic now), but this is as desired by
>> config. As you can see, it state is "S", not 'I'. Feel the
>> difference.
>>
>> The same picture I've observed every night. With some dozens
>> redirector processes.
>
>
> _______________________________________________ squid-users mailing
> list squid-users at lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQEcBAEBAgAGBQJU4kC0AAoJENNXIZxhPexGiusH/i5Ehe5L3M0rKzKLtMjo6dP3
U5e0558XHltSEdQTnfgNSx7OfLOadll/fcg3pobFBKhGMjA5Yn6XMPGisOHJkIdt
y/k1tkVFrY6zsWSMgiED/gswcYK5nASe8VeWqvz4k1J66P0yv7bJ9gAER/bcfzEa
cJoSpOiO7TKNP4kE9IWMp15Cb9yVpd7K2fAjWmnbBF17v2SXqIxlyOA2rIX7yFUu
pAlEBT64Mm0jTInHBYT1iLCNGfg+38nPzXOU6wLH4qXQUD11tp1yNwzuzPlBjTND
UQOz4FCsklaimHFzCzXqMsm1pJRwVj9rQ+aI+i9jEJRyqHOsy8j3tusuZ+9Tf+g=
=JiJg
-----END PGP SIGNATURE-----
More information about the squid-users
mailing list