[squid-users] Performance issue /cache_dir / cache_mem / SMP workers

pacolo pacolopezvelasco at gmail.com
Fri Nov 23 14:21:22 UTC 2018


Hello again,

We have found an issue in backend.conf, as the Rock cache_dir is SMP aware.

Change this...
#cache_dir rock /cache${process_number} 2097152
to this...
cache_dir rock /cache1 2097152


... then the new errors are:
Nov 23 14:55:28 px06 squid[12559]: ERROR: /cache1/rock communication channel
establishment timeout
Nov 23 14:55:28 px06 squid[12559]: FATAL: Rock cache_dir at /cache1/rock
failed to open db file: (0) No error.

We have search for in the forum
(http://squid-web-proxy-cache.1019090.n4.nabble.com/RockStore-quot-Fatal-Error-quot-td4666691.html),
and tried what other people suggested without success.


/cache1
drwxr-xr-x 2 squid squid 16384 nov 21 13:05 lost+found
drwxr-xr-x 2 squid squid  4096 nov 23 12:38 rock

The permissions in /dev/shm are correct, too. Squid is writing some files.
ls_-l_dev_shm.txt
<http://squid-web-proxy-cache.1019090.n4.nabble.com/file/t377599/ls_-l_dev_shm.txt>  

In addition, it appears that Squid can write in the localstatedir...

--localstatedir=/var'
squid_-v.txt
<http://squid-web-proxy-cache.1019090.n4.nabble.com/file/t377599/squid_-v.txt>  

/var/run/squid
srwxr-x--- 1 squid squid 0 nov 23 14:55 squid-coordinator.ipc
srwxr-x--- 1 squid squid 0 nov 23 14:55 squid-kid-1.ipc
srwxr-x--- 1 squid squid 0 nov 23 14:55 squid-kid-2.ipc
srwxr-x--- 1 squid squid 0 nov 23 14:55 squid-kid-3.ipc
srwxr-x--- 1 squid squid 0 nov 23 13:00 squid-kid-4.ipc
srwxr-x--- 1 squid squid 0 nov 23 13:00 squid-kid-5.ipc


SELinux status:                 disabled

var_log_messages.txt
<http://squid-web-proxy-cache.1019090.n4.nabble.com/file/t377599/var_log_messages.txt>  

Any idea?

Best regards,
Paco.




--
Sent from: http://squid-web-proxy-cache.1019090.n4.nabble.com/Squid-Users-f1019091.html


More information about the squid-users mailing list