<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Dear Alex,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
kindly note that i have adjusted the config , in addition to checking the provided links.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
First i have 3 disk with no RAID config, each rock cache_dir has it own disk to write to.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
then each disker and worker have it own process. In addition to this i have adjusted some value as per "<a href="https://wiki.squid-cache.org/Features/RockStore" id="LPlnk352027">https://wiki.squid-cache.org/Features/RockStore</a>" recomandation.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Below is the new config:</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span>workers 3<br>
</span>
<div>cpu_affinity_map process_numbers=1,2,3,4,5,6 cores=1,2,3,4,5,6<br>
</div>
<span></span><span>cache_dir rock /rock1 200000 max-size=32000 swap-timeout=300 max-swap-rate=100<br>
</span>
<div>cache_dir rock /rock2 200000 max-size=32000 max-swap-rate=100 swap-timeout=300<br>
</div>
<div>cache_dir rock /rock3 200000 max-size=32000 max-swap-rate=100 swap-timeout=300<br>
</div>
<span></span><span>cache_mem 17 GB<br>
</span>
<div>maximum_object_size_in_memory 25 MB<br>
</div>
<div>maximum_object_size 1 GB<br>
</div>
<div>cache_miss_revalidate off<br>
</div>
<div>quick_abort_pct 95<br>
</div>
<span></span><br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
This config is giving 4% of cache gain ratio, </div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
in addition as i already mentionned before if i take the same above config without worker and cach_dir with the same traffiic using aufs on one of the disks , i have automatically i har 60 % cache ratio. [ my lab i 250 Mb/s]</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Shoud rock give me the same performance as aufs ?</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
for a traffic of 1 Gb/s , is there a way to use aufs ?</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
thank u</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Alex Rousskov <rousskov@measurement-factory.com><br>
<b>Sent:</b> Thursday, July 2, 2020 4:24 PM<br>
<b>To:</b> patrick mkhael <patrick.mkhael@hotmail.com>; squid-users@lists.squid-cache.org <squid-users@lists.squid-cache.org><br>
<b>Subject:</b> Re: [squid-users] rock issue</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="PlainText">On 7/1/20 4:45 PM, patrick mkhael wrote:<br>
<br>
> ***Please note that you have 20 kids worth mapping (10 workers and 10<br>
> diskers), but you map only the first 10.{since i did not get the point<br>
> of the diskers ,as far as i understood , it should be like (simple<br>
> example)<br>
<br>
>> workers 2<br>
>> cpu_affinity_map process_numbers=1,2,3,4 cores=1,2,3,4<br>
>> cache_dir rock ...<br>
>> cache_dir rock ...<br>
<br>
The above looks OK. Each worker is a kid process. Each rock cache_dir is<br>
a kid process (we call them diskers). If you have physical CPU cores to<br>
spare, give each kid process its own physical core. Otherwise, give each<br>
worker process its own physical core (if you can). Diskers can share<br>
physical cores with less harm because they usually do not consume much<br>
CPU cycles. Squid wiki has more detailed information about that:<br>
<a href="https://wiki.squid-cache.org/Features/SmpScale#How_to_configure_SMP_Squid_for_top_performance.3F">https://wiki.squid-cache.org/Features/SmpScale#How_to_configure_SMP_Squid_for_top_performance.3F</a><br>
<br>
<br>
> ***Why do you have 10 rock caches of various sizes? [ to be honest , i<br>
> saw in many websites that it should be like this from the smallest to<br>
> the bigest with diff size, i tought it should serve from small size pool<br>
> to high ]<br>
<br>
IMHO, you should stop reading those web pages :-). There is no general<br>
need to segregate objects by sizes, especially when you are using the<br>
same slot size for all cache_dirs. Such segregation may be necessary in<br>
some special cases, but we have not yet established that your case is<br>
special.<br>
<br>
<br>
> *****How many independent disk spindles (or equivalent) do you have? [ i<br>
> have one raid 5 ssd disks , used by the 10 rock cache dir]<br>
<br>
Do not use RAID. If possible, use one rock cache_dir per SSD disk. The<br>
only reason this may not be possible, AFAICT, is if you want to cache<br>
more (per SSD disk) than a single Squid cache_dir can hold, but I would<br>
not worry about overcoming that limit at the beginning. If you want to<br>
know more about the limit, look for "33554431" in<br>
<a href="http://www.squid-cache.org/mail-archive/squid-users/201312/0034.html">http://www.squid-cache.org/mail-archive/squid-users/201312/0034.html</a><br>
<br>
<br>
> ***How did you select the swap rate limits and timeouts for<br>
> cache_dirs?[I took it also from online forum , can i leave it empty for<br>
> both]<br>
<br>
If you want a simple answer, then it is "yes". Unfortunately, there is<br>
no simple correct answer to that question. To understand what is going<br>
on and how to tune things, I recommend studying the Performance Tuning<br>
section of <a href="https://wiki.squid-cache.org/Features/RockStore">https://wiki.squid-cache.org/Features/RockStore</a><br>
<br>
<br>
> ****Do you see any ERRORs or WARNINGs in cache log?[NO error or warning<br>
> found in cache]<br>
<br>
Good. I assume you do see some regular messages in cache.log. Keep an<br>
eye for ERRORs and WARNINGs as you change settings.<br>
<br>
<br>
HTH,<br>
<br>
Alex.<br>
</div>
</span></font></div>
</div>
</body>
</html>