<div dir="ltr">The workers are to use most of the CPU cores (and not only 1, which is not enough)<div>The hard drivers are to increase IO.</div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-02-09 18:28 GMT-03:00 Amos Jeffries <span dir="ltr"><<a href="mailto:squid3@treenet.co.nz" target="_blank">squid3@treenet.co.nz</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 10/02/2015 5:11 a.m., Alfredo Rezinovsky wrote:<br>
> I have one of these lines for each cache disc (sdb, sdc, etc)<br>
><br>
> cache_dir aufs /cache/sdb/${process_number} 230000 16 256 min-size=1<br>
> max-size=838860800<br>
><br>
> I'm using 4 or 5 discs to increase the cache I/O.<br>
><br>
> The caché size is a little less than disk_size/workers<br>
><br>
> There's a way to run a full store rebuild and exit. So I'm sure the stores<br>
> are clean after starting the real squid and enabling transparent proxy<br>
> iptables rules?<br>
<br>
</span>I already mentioned to you about disk I/O contention right?<br>
<br>
The rule-of-thumb about one cache_dir per physical disk spindle is not<br>
removed by multiple workers. A *single* Squid process can push any disk<br>
hardware to its bare-metal I/O write capacity. Sharing between workers<br>
just makes disks cap-out faster.<br>
<br>
<br>
During that startup all Squid is doing with those disks is reading the<br>
swap.state files from each AUFS cache_dir and scanning across the rock<br>
cache_dir slots in MB sized chunks. Provided you are right about the<br>
caches being clean (having a non-corrupt swap.state journal).<br>
<br>
 ... why do you think increasing the number of workers makes them slow<br>
down until one hits that 10 second timeout?<br>
<br>
And consider what would happen later when your full network bandwidth<br>
get thrown at the workers (hint approx. 4/5 of network I/O gets written<br>
to disk).<br>
<span class="HOEnZb"><font color="#888888"><br>
Amos<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
squid-users mailing list<br>
<a href="mailto:squid-users@lists.squid-cache.org">squid-users@lists.squid-cache.org</a><br>
<a href="http://lists.squid-cache.org/listinfo/squid-users" target="_blank">http://lists.squid-cache.org/listinfo/squid-users</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Alfrenovsky</div>
</div>