Re: [squid-users] Unbalaned Cpu cores with squid 3.4.3 with centos 6.4 64 bit

From: Pavel Kazlenka <pavel.kazlenka_at_measurement-factory.com>
Date: Wed, 12 Feb 2014 17:37:27 +0300

Hi,

Feel free to use 24 workers. There should not be deficiency in squid
performance.
For better performance, use cpu_affinity_map configuration directive to
bind each squid worker to dedicated cpu core explicitly.

Best wishes,
Pavel

On 02/12/2014 05:29 PM, Dr.x wrote:
> hi all ,
>
> ive tried cenots6.4 64 bit with32 G ram with squid 3.4.3 with tptoxy ,
>
> but
>
> the cpu cores are not balanced !!!
> this machine is delr720 it has 24 cores ,
>
> before i go to try on this machine, i tried it on quad core machine with
> same config squid file and it gave me equal sharing among 8 cores of cpu .
>
> but when i tried the same config and same kernel and same squid and same os
> on delr720 which has 24 cores cpu ,
> i found that process of squid are only distributed on about 5 cores from
> total of 25 core !!!!!
>
> my question is ,
> does squid depend on hardware core cpu ? does that mean squid SMP
> compatibale with some hardware and not with others ???
>
> ======================================
> ive pumped about 1000 ips to squid
> and here is a snapshot with cores which are un balanced !
> those are cores of delr720
> <http://squid-web-proxy-cache.1019090.n4.nabble.com/file/n4664748/829718907.png>
>
> i have only 4 workers and dont wanto to increase them , because i think if i
> increased them i will have low bw utilization .
>
> ===================================================
> here is last of dmesg file log :
>
>> EXT4-fs (sda1): re-mounted. Opts: (null)
>> iTCO_wdt: initialized. heartbeat=30 sec (nowayout=0)
>> iTCO_wdt: Found a Patsburg TCO device (Version=2, TCOBASE=0x0860)
>> iTCO_wdt: Intel TCO WatchDog Timer Driver v1.10
>> iTCO_vendor_support: vendor-support=0
>> dcdbas dcdbas: Dell Systems Management Base Driver (version 5.6.0-3.2)
>> perf_event_intel: PEBS enabled due to microcode update
>> microcode: CPU23 updated to revision 0x710, date = 2013-06-17
>> microcode: CPU22 updated to revision 0x710, date = 2013-06-17
>> microcode: CPU21 updated to revision 0x710, date = 2013-06-17
>> microcode: CPU20 updated to revision 0x710, date = 2013-06-17
>> microcode: CPU19 updated to revision 0x710, date = 2013-06-17
>> microcode: CPU18 updated to revision 0x710, date = 2013-06-17
>> microcode: CPU17 updated to revision 0x710, date = 2013-06-17
>> microcode: CPU16 updated to revision 0x710, date = 2013-06-17
>> microcode: CPU15 updated to revision 0x710, date = 2013-06-17
>> microcode: CPU14 updated to revision 0x710, date = 2013-06-17
>> microcode: CPU13 updated to revision 0x710, date = 2013-06-17
>> microcode: CPU12 updated to revision 0x710, date = 2013-06-17
>> microcode: CPU11 updated to revision 0x710, date = 2013-06-17
>> microcode: CPU10 updated to revision 0x710, date = 2013-06-17
>> microcode: CPU9 updated to revision 0x710, date = 2013-06-17
>> microcode: CPU8 updated to revision 0x710, date = 2013-06-17
>> microcode: CPU7 updated to revision 0x710, date = 2013-06-17
>> microcode: CPU6 updated to revision 0x710, date = 2013-06-17
>> microcode: CPU5 updated to revision 0x710, date = 2013-06-17
>> microcode: CPU4 updated to revision 0x710, date = 2013-06-17
>> microcode: CPU3 updated to revision 0x710, date = 2013-06-17
>> microcode: CPU2 updated to revision 0x710, date = 2013-06-17
>> microcode: CPU1 updated to revision 0x710, date = 2013-06-17
>> microcode: CPU0 updated to revision 0x710, date = 2013-06-17
>> microcode: Microcode Update Driver: v2.00
>> &lt;
>> tigran_at_aivazian.fsnet.co.uk
>> &gt;
>> , Peter Oruba
>> microcode: CPU23 sig=0x206d7, pf=0x1, revision=0x70b
>> microcode: CPU22 sig=0x206d7, pf=0x1, revision=0x70b
>> microcode: CPU21 sig=0x206d7, pf=0x1, revision=0x70b
>> microcode: CPU20 sig=0x206d7, pf=0x1, revision=0x70b
>> microcode: CPU19 sig=0x206d7, pf=0x1, revision=0x70b
>> microcode: CPU18 sig=0x206d7, pf=0x1, revision=0x70b
>> microcode: CPU17 sig=0x206d7, pf=0x1, revision=0x70b
>> microcode: CPU16 sig=0x206d7, pf=0x1, revision=0x70b
>> microcode: CPU15 sig=0x206d7, pf=0x1, revision=0x70b
>> microcode: CPU14 sig=0x206d7, pf=0x1, revision=0x70b
>> microcode: CPU13 sig=0x206d7, pf=0x1, revision=0x70b
>> microcode: CPU12 sig=0x206d7, pf=0x1, revision=0x70b
>> microcode: CPU11 sig=0x206d7, pf=0x1, revision=0x70b
> ========================================
> [root_at_squid ~]# cat /etc/redhat-release
> CentOS release 6.5 (Final)
> [root_at_squid ~]# uname -a
> Linux squid.ps 3.7.5 #1 SMP Tue Feb 11 21:31:21 EET 2014 x86_64 x86_64
> x86_64 GNU/Linux
> [root_at_squid ~]#
> ==================================================================
> [root_at_squid ~]# cat /etc/squid/squid.conf
>
>> #################################################################
>> # Example rule allowing access from your local networks.
>> # Adapt to list your (internal) IP networks from where browsing
>> # should be allowed
>> acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
>> acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
>> acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
>> acl localnet src fc00::/7 # RFC 4193 local private network range
>> acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged)
>> machines
>> acl mysubnet src xxxxxxxxxxxxxxxxxxxxxxxxxxxx
>> acl eliezer src xxxxxxxxxxxxxxxxxxxx
>> acl localip src xxxxxxxxx
>> acl SSL_ports port 443
>> acl Safe_ports port 80 # http
>> acl Safe_ports port 21 # ftp
>> acl Safe_ports port 443 # https
>> acl Safe_ports port 70 # gopher
>> acl Safe_ports port 210 # wais
>> acl Safe_ports port 1025-65535 # unregistered ports
>> acl Safe_ports port 280 # http-mgmt
>> acl Safe_ports port 488 # gss-http
>> acl Safe_ports port 591 # filemaker
>> acl Safe_ports port 777 # multiling http
>> acl CONNECT method CONNECT
>> ######################################################
>> # Recommended minimum Access Permission configuration:
>> # Deny requests to certain unsafe ports
>> ##########################################################
>> ##############################################################
>> http_access deny !Safe_ports
>> http_access allow localnet
>> # Deny CONNECT to other than secure SSL ports
>> http_access deny CONNECT !SSL_ports
>> #######################################################
>> ###########SMP oPTIONS#####################
>> dns_v4_first on
>> workers 4
>> ########################################################
>> #cpu_affinity_map process_numbers=1,2,3,4 cores=2,4,6,8
>> #http_port 127.0.0.1:400${process_number}
>> #http_port ::1:66000
>> #########################################
>> visible_hostname xxxxxxxxxxxxxxxx
>> ####################################################
>> ####Filterring##############
>> acl blockkeywords dstdomain "/etc/squid/xxxxxxxxxxx"
>> http_access deny blockkeywords
>> #################################################
>> cache_log /var/log/squid/cache.log
>> access_log /var/log/squid/access.log
>> ###############################################
>> http_port ffffff:xxxx
>> http_port dddddd:eeeeeeeeeee tproxy
>> ############################################################################
>> http_access allow mysubnet
>> ############################################################################################
>> cache_mgr xxxxxxxxxxxxxxxxxxxxx
>> cachemgr_passwd xxxxxxxxxxxxxxxxxxxx all
>> #######################################################
>> # add user authentication and similar options here
>> http_access allow manager localhost
>> http_access allow manager localip
>> http_access allow manager mysubnet
>> http_access allow mysubnet manager
>> http_access deny manager
>> #######################################################################
>> cache_mem 3000 MB
>> maximum_object_size_in_memory 10 MB
>> #########################################################
>> quick_abort_pct 95
>> fqdncache_size 65535
>> ipcache_size 65535
>> ###########################################################
>> ipcache_low 98
>> ipcache_high 99
>> #####################################################
>> ########### WCCP2 Config#############
>> wccp2_router x.x.x.x
>> wccp_version 1
>> wccp2_forwarding_method 2
>> wccp2_return_method 2
>> wccp2_assignment_method 2
>> wccp2_service dynamic 60
>> wccp2_service_info 60 protocol=tcp flags=src_ip_hash priority=250 ports=80
>> wccp2_service dynamic 70
>> wccp2_service_info 70 protocol=tcp flags=dst_ip_hash,ports_source
>> priority=250 ports=80
>> ######################################################
>> cache_effective_user squid
>> cache_effective_group squid
>> #######################################################
>> memory_replacement_policy heap GDSF
>> cache_replacement_policy heap LFUDA
>> #####################################################
>> dns_nameservers x.x.x.x 8.8.8.8
>> #######################################################
>> http_access deny all
>> ##############################
>> refresh_pattern ^ftp: 1440 20% 10080
>> refresh_pattern ^gopher: 1440 0% 1440
>> refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
>> refresh_pattern . 0 20% 4320
>> ####################################################
>> memory_pools off
>> pconn_timeout 2 minutes
>> persistent_request_timeout 1 minute
>> #####################
>> max_filedesc 131072
>
> *any help ????
> any suggestion ????*
>
>
>
>
>
>
> -----
> Dr.x
> --
> View this message in context:http://squid-web-proxy-cache.1019090.n4.nabble.com/Unbalaned-Cpu-cores-with-squid-3-4-3-with-centos-6-4-64-bit-tp4664748.html
> Sent from the Squid - Users mailing list archive at Nabble.com.
Received on Wed Feb 12 2014 - 14:39:52 MST

This archive was generated by hypermail 2.2.0 : Wed Feb 12 2014 - 12:00:04 MST