Search squid archive

Re: Is Squid can shutdown unused idle redirector's children?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I want to say:

A system with low consumpted memory will starts processes more quickly
against system with low free memory and overloaded cheduler and more
sleep processes in most cases.

So, IMHO better solution is possibility to shutdown idle children
after configured timeout and starts them up when required.

Also, OS cache also still exists..... and can hold rewriter ELF near
CPU.... did you remember? ;)

13.02.15 0:49, Amos Jeffries пишет:
> On 13/02/2015 7:01 a.m., Yuri Voinov wrote:
>> Hi gents,
> 
>> subj.
> 
>> And, of course - question. How to do that? I've don't seen this,
>> if it exists.
> 
>> For example, for this config stub:
> 
>> url_rewrite_program /usr/local/bin/squidGuard -c 
>> /usr/local/squidGuard/squidGuard.conf url_rewrite_children 100 
>> startup=0 idle=1 concurrency=0
> 
>> After daily activity, at midnight, still remain near 60
>> processes. Absolutely idle.
> 
>> So, why?
> 
> The idle=1 parameter "Sets a minimum ..."
> 
> It actually is quite expensive to start them. At least one client
> is being held in a pause waiting for it, and others are slowed down
> while the CPU spawns the process.
> 
> Chances are high that the next day, or even a few seconds later
> you will need to use them again anyway. So its a bit better to have
> them idle than to discard completely.
> 
> *Particularly* since you have no concurrency for the helper. A
> single client loading a page with many objects can initiate many
> parallel requests. Each of which will need to be processed by one
> of those helpers.
> 
> Amos _______________________________________________ squid-users
> mailing list squid-users@xxxxxxxxxxxxxxxxxxxxx 
> http://lists.squid-cache.org/listinfo/squid-users
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBAgAGBQJU3PlpAAoJENNXIZxhPexGiIcH/2rXn42yxPtwmnaxoqhIkyZd
U3Jj9AQBQeKMz+Ncbzs/rBTWYBmqTqDh70q9toMqDO+UVPyhEx/ltzM9A38ClbO9
XJS3x0SI25TegG1rkJuT6B98RUA15lcS3CsQg6hU8YNbT/ERMPCrX+oL8F9f6qAG
pHmQHM5EHVe+5YTWi8V2CaP+ybw6xoBg8eWQtyTca5JbzChgCckzS/LFHYiBmTRM
pC5KJy2buSTMxuDsBowbv3DkNUabzz5pbuGt0skIoO6rLh+qo6ZT+w+Q8BVK8nrr
mHHsXtl4MvFJpnljqhqti9MAqnksr+N1Yj5VLVWl0Q+PWD2eN49pgTt9hUpka3E=
=E/7E
-----END PGP SIGNATURE-----
_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users





[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux