[squid-users] Why Squid on CentOS is faster than Debian ?

David Touzeau david at articatech.com
Tue Apr 2 07:23:16 UTC 2019


Le 01/04/2019 à 23:22, Alex Rousskov a écrit :
> On 4/1/19 3:17 AM, David Touzeau wrote:
>
>> On 30.03.19 10:22, David Touzeau wrote:
>>> * Debian 9 net install + Squid compiled
>>> * CentOS 7 minimal  + Squid compiled
>>>
>>> Same version, same compilation parameters, same Squid settings.
>>> It seems that Squid on CentOS is 10 times faster than squid on Debian
>
>> We have recompiled same squid version on 2 systems
>>
>> No march= using --disable-arch-native on both systems
>>
>> Debian config.log
>> https://github.com/dtouzeau/1.6.x/blob/Tempfiles/debian9-config.log?raw=true
>>
>> Centos config.log
>> https://github.com/dtouzeau/1.6.x/blob/Tempfiles/centos7-config.log?raw=true
>>
>> Result was CentOS 44% faster on TCP_MEM_HITS
> Just to clarify: Did changing ./configure options alone move you from
> 1000% to 44%? Or was the earlier "10 times" just a crude approximation
> that we should ignore now?
>
>
> Do your Squids use shared memory for the memory cache? See
> memory_cache_shared (even if you do not set it explicitly).
> http://www.squid-cache.org/Doc/config/memory_cache_shared/
>
> Any significant difference in mgr:info and mgr:counters output after a
> test that only has memory hits?
>
> Alex.

Hi Alex and comunity

The test did not use workers

Here it is a piece of logs between the 2 machines

CentOS 7:
1554185117.132      1 172.16.1.228 50:46:5d:a0:3e:5a TCP_MEM_HIT/200 
10979 GET 
http://www.projetmontsaintmichel.com/upload/document/reduites/TR_BA_0611_2.jpg 
- HIER_NONE/- image/jpeg
1554185117.133      1 172.16.1.228 50:46:5d:a0:3e:5a TCP_MEM_HIT/200 
5531 GET 
http://www.projetmontsaintmichel.com/upload/document/reduites/TR_BA_0611_5.jpg 
- HIER_NONE/- image/jpeg
1554185117.134      0 172.16.1.228 50:46:5d:a0:3e:5a TCP_MEM_HIT/200 
3727 GET 
http://www.projetmontsaintmichel.com//upload/document/minis/capture_40.jpg 
- HIER_NONE/- image/jpeg
1554185117.137      0 172.16.1.228 50:46:5d:a0:3e:5a TCP_MEM_HIT/200 
1230 GET http://www.projetmontsaintmichel.com/web/images/ico_pdf.png - 
HIER_NONE/- image/png
1554185117.141      1 172.16.1.228 50:46:5d:a0:3e:5a TCP_MEM_HIT/200 
33600 GET 
http://www.projetmontsaintmichel.com/upload/document/reduites/TR_BA_0609_6.gif 
- HIER_NONE/- image/gif
1554185117.142      1 172.16.1.228 50:46:5d:a0:3e:5a TCP_MEM_HIT/200 
20200 GET 
http://www.projetmontsaintmichel.com/upload/document/reduites/TR_BA_0609_2.gif 
- HIER_NONE/- image/gif
1554185117.144      1 172.16.1.228 50:46:5d:a0:3e:5a TCP_MEM_HIT/200 
29375 GET 
http://www.projetmontsaintmichel.com/upload/document/reduites/TR_BA_0609_5.gif 
- HIER_NONE/- image/gif
1554185117.146      1 172.16.1.228 50:46:5d:a0:3e:5a TCP_MEM_HIT/200 
29835 GET 
http://www.projetmontsaintmichel.com/upload/document/reduites/TR_BA_0609_4.gif 
- HIER_NONE/- image/gif
1554185117.147      2 172.16.1.228 50:46:5d:a0:3e:5a TCP_MEM_HIT/200 
28683 GET 
http://www.projetmontsaintmichel.com/upload/document/reduites/TR_BA_0609_1.gif 
- HIER_NONE/- image/gif
1554185117.149      1 172.16.1.228 50:46:5d:a0:3e:5a TCP_MEM_HIT/200 
7715 GET 
http://www.projetmontsaintmichel.com/upload/document/reduites/TR_BA_0608_3.jpg 
- HIER_NONE/- image/jpeg
1554185117.151      0 172.16.1.228 50:46:5d:a0:3e:5a TCP_MEM_HIT/200 
8175 GET 
http://www.projetmontsaintmichel.com/upload/document/reduites/TR_BA_0608_2.jpg 
- HIER_NONE/- image/jpeg
1554185117.152      0 172.16.1.228 50:46:5d:a0:3e:5a TCP_MEM_HIT/200 
2519 GET 
http://www.projetmontsaintmichel.com/web/images/bloc_infoschantier2.gif 
- HIER_NONE/- image/gif
1554185117.153      0 172.16.1.228 50:46:5d:a0:3e:5a TCP_MEM_HIT/200 
3870 GET 
http://www.projetmontsaintmichel.com/web/images/bloc_espacepro2.gif - 
HIER_NONE/- image/gif
1554185117.157      0 172.16.1.228 50:46:5d:a0:3e:5a TCP_MEM_HIT/200 
9349 GET 
http://www.projetmontsaintmichel.com/upload/document/reduites/TR_BA_0608_1.jpg 
- HIER_NONE/- image/jpeg
1554185117.162      0 172.16.1.228 50:46:5d:a0:3e:5a TCP_MEM_HIT/200 
3622 GET 
http://www.projetmontsaintmichel.com//upload/document/minis/capture_29.jpg 
- HIER_NONE/- image/jpeg
1554185117.162      1 172.16.1.228 50:46:5d:a0:3e:5a TCP_MEM_HIT/200 409 
GET 
http://www.projetmontsaintmichel.com/web/images/puce_carre_visite.gif - 
HIER_NONE/- image/gif
1554185117.162      1 172.16.1.228 50:46:5d:a0:3e:5a TCP_MEM_HIT/200 409 
GET http://www.projetmontsaintmichel.com/web/images/puce_carre_gris.gif 
- HIER_NONE/- image/gif
1554185117.175      1 172.16.1.228 50:46:5d:a0:3e:5a TCP_MEM_HIT/200 
23219 GET 
http://www.projetmontsaintmichel.com/web/images/fond_footer.jpg - 
HIER_NONE/- image/jpeg
1554185117.187      0 172.16.1.228 50:46:5d:a0:3e:5a TCP_MEM_HIT/200 540 
GET http://www.projetmontsaintmichel.com/web/galerie/images/overlay.png 
- HIER_NONE/- image/png
1554185117.389      2 172.16.1.228 50:46:5d:a0:3e:5a TCP_MEM_HIT/200 858 
GET http://www.projetmontsaintmichel.com/favicon.ico - HIER_NONE/- 
image/x-icon

Debian 9:
1554185129.651      1 172.16.1.228 50:46:5d:a0:3e:5a TCP_MEM_HIT/200 
8887 GET 
http://www.projetmontsaintmichel.com/upload/document/reduites/TR_BA_0611_1.jpg 
- HIER_NONE/- image/jpeg
1554185129.660      5 172.16.1.228 50:46:5d:a0:3e:5a TCP_MEM_HIT/200 
8733 GET 
http://www.projetmontsaintmichel.com/upload/document/reduites/TR_BA_0611_4.jpg 
- HIER_NONE/- image/jpeg
1554185129.664      1 172.16.1.228 50:46:5d:a0:3e:5a TCP_MEM_HIT/200 
5565 GET 
http://www.projetmontsaintmichel.com/upload/document/reduites/TR_BA_0611_5.jpg 
- HIER_NONE/- image/jpeg
1554185129.664      1 172.16.1.228 50:46:5d:a0:3e:5a TCP_MEM_HIT/200 
11013 GET 
http://www.projetmontsaintmichel.com/upload/document/reduites/TR_BA_0611_2.jpg 
- HIER_NONE/- image/jpeg
1554185129.665      2 172.16.1.228 50:46:5d:a0:3e:5a TCP_MEM_HIT/200 
3761 GET 
http://www.projetmontsaintmichel.com//upload/document/minis/capture_40.jpg 
- HIER_NONE/- image/jpeg
1554185129.665      1 172.16.1.228 50:46:5d:a0:3e:5a TCP_MEM_HIT/200 
1264 GET http://www.projetmontsaintmichel.com/web/images/ico_pdf.png - 
HIER_NONE/- image/png
1554185129.677     12 172.16.1.228 50:46:5d:a0:3e:5a TCP_MEM_HIT/200 
33634 GET 
http://www.projetmontsaintmichel.com/upload/document/reduites/TR_BA_0609_6.gif 
- HIER_NONE/- image/gif
1554185129.677      2 172.16.1.228 50:46:5d:a0:3e:5a TCP_MEM_HIT/200 
7749 GET 
http://www.projetmontsaintmichel.com/upload/document/reduites/TR_BA_0608_3.jpg 
- HIER_NONE/- image/jpeg
1554185129.677      4 172.16.1.228 50:46:5d:a0:3e:5a TCP_MEM_HIT/200 
20234 GET 
http://www.projetmontsaintmichel.com/upload/document/reduites/TR_BA_0609_2.gif 
- HIER_NONE/- image/gif
1554185129.678      4 172.16.1.228 50:46:5d:a0:3e:5a TCP_MEM_HIT/200 
28717 GET 
http://www.projetmontsaintmichel.com/upload/document/reduites/TR_BA_0609_1.gif 
- HIER_NONE/- image/gif
1554185129.678      4 172.16.1.228 50:46:5d:a0:3e:5a TCP_MEM_HIT/200 
29869 GET 
http://www.projetmontsaintmichel.com/upload/document/reduites/TR_BA_0609_4.gif 
- HIER_NONE/- image/gif
1554185129.678      4 172.16.1.228 50:46:5d:a0:3e:5a TCP_MEM_HIT/200 
29409 GET 
http://www.projetmontsaintmichel.com/upload/document/reduites/TR_BA_0609_5.gif 
- HIER_NONE/- image/gif
1554185129.688      3 172.16.1.228 50:46:5d:a0:3e:5a TCP_MEM_HIT/200 
8209 GET 
http://www.projetmontsaintmichel.com/upload/document/reduites/TR_BA_0608_2.jpg 
- HIER_NONE/- image/jpeg
1554185129.691      2 172.16.1.228 50:46:5d:a0:3e:5a TCP_MEM_HIT/200 
9383 GET 
http://www.projetmontsaintmichel.com/upload/document/reduites/TR_BA_0608_1.jpg 
- HIER_NONE/- image/jpeg
1554185129.692      1 172.16.1.228 50:46:5d:a0:3e:5a TCP_MEM_HIT/200 
3656 GET 
http://www.projetmontsaintmichel.com//upload/document/minis/capture_29.jpg 
- HIER_NONE/- image/jpeg
1554185129.694      1 172.16.1.228 50:46:5d:a0:3e:5a TCP_MEM_HIT/200 443 
GET 
http://www.projetmontsaintmichel.com/web/images/puce_carre_visite.gif - 
HIER_NONE/- image/gif
1554185129.694      1 172.16.1.228 50:46:5d:a0:3e:5a TCP_MEM_HIT/200 443 
GET http://www.projetmontsaintmichel.com/web/images/puce_carre_gris.gif 
- HIER_NONE/- image/gif
1554185129.700      3 172.16.1.228 50:46:5d:a0:3e:5a TCP_MEM_HIT/200 574 
GET http://www.projetmontsaintmichel.com/web/galerie/images/overlay.png 
- HIER_NONE/- image/png
1554185129.701      3 172.16.1.228 50:46:5d:a0:3e:5a TCP_MEM_HIT/200 
23253 GET 
http://www.projetmontsaintmichel.com/web/images/fond_footer.jpg - 
HIER_NONE/- image/jpeg
1554185129.857      1 172.16.1.228 50:46:5d:a0:3e:5a TCP_MEM_HIT/200 892 
GET http://www.projetmontsaintmichel.com/favicon.ico - HIER_NONE/- 
image/x-icon


CentOS :
     total: 14msec
     average: 0.7msec

Debian :
     total: 56msec
     average: 2.8msec

CentOS vs Debian: 400% faster with CentOS

Do you know why CentOS objects are 34 bytes smaller than Debian ?





> _______________________________________________
> squid-users mailing list
> squid-users at lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users


More information about the squid-users mailing list