<div dir="ltr">Hello,<div><br></div><div>Amos, Alex, thanks for the information!</div><div><br></div><div>> What is your Squid version? </div><div><br></div><div>The first one:</div><div><font face="monospace">squid -v<br>Squid Cache: Version 6.13<br>Service Name: squid<br><br>This binary uses OpenSSL 1.1.1k FIPS 25 Mar 2021. For legal restrictions on distribution see <a href="https://www.openssl.org/source/license.html">https://www.openssl.org/source/license.html</a><br><br>configure options: '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--exec_prefix=/usr' '--libexecdir=/usr/lib64/squid' '--localstatedir=/var' '--datadir=/usr/share/squid' '--sysconfdir=/etc/squid' '--with-logdir=/var/log/squid' '--with-pidfile=/var/run/squid.pid' '--disable-dependency-tracking' '--enable-follow-x-forwarded-for' '--enable-auth' '--enable-auth-basic=DB,LDAP,NCSA,PAM,POP3,RADIUS,SASL,SMB,getpwnam,fake' '--enable-auth-ntlm=fake' '--enable-auth-digest=file,LDAP,eDirectory' '--enable-auth-negotiate=kerberos,wrapper' '--enable-external-acl-helpers=wbinfo_group,kerberos_ldap_group,LDAP_group,delayer,file_userip,SQL_session,unix_group,session,time_quota' '--enable-cache-digests' '--enable-cachemgr-hostname=localhost' '--enable-delay-pools' '--enable-epoll' '--enable-icap-client' '--enable-ident-lookups' '--enable-linux-netfilter' '--enable-removal-policies=heap,lru' '--enable-snmp' '--enable-storeio=aufs,diskd,ufs,rock' '--enable-wccpv2' '--enable-esi' '--enable-security-cert-generators' '--enable-security-cert-validators' '--enable-icmp' '--with-aio' '--with-default-user=squid' '--with-filedescriptors=16384' '--with-dl' '--with-openssl' '--enable-ssl-crtd' '--with-pthreads' '--with-included-ltdl' '--disable-arch-native' '--without-nettle' 'build_alias=x86_64-redhat-linux-gnu' 'host_alias=x86_64-redhat-linux-gnu' 'CFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' 'LDFLAGS=-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' 'CXXFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC' 'PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig' --enable-ltdl-convenience</font></div><div><br></div><div>The second one:</div><div><font face="monospace">squid.user -v<br>Squid Cache: Version 6.10<br>Service Name: squid<br><br>This binary uses OpenSSL 1.1.1k FIPS 25 Mar 2021. For legal restrictions on distribution see <a href="https://www.openssl.org/source/license.html">https://www.openssl.org/source/license.html</a><br><br>configure options: '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--prefix=/data/squid.user' '--exec-prefix=/data/squid.user' '--datadir=/data/squid.user/share' '--sbindir=/data/squid.user/usr/sbin' '--sysconfdir=/etc/squid.user' '--libexecdir=/data/squid.user/usr/lib/squid' '--localstatedir=/data/squid.user/var' '--with-logdir=/data/squid.user/var/log/squid' '--with-pidfile=/data/squid.user/var/run/squid.pid' '--mandir=/data/squid.user/share/man' '--bindir=/data/squid.user/usr/bin' '--disable-arch-native' '--disable-dependency-tracking' '--disable-maintainer-mode' '--disable-option-checking' '--disable-silent-rules' '--disable-translation' '--disable-strict-error-checking' '--enable-arp-acl' '--enable-async-io=8' '--enable-auth' '--enable-auth-basic=DB,fake,getpwnam,LDAP,NCSA,PAM,POP3,RADIUS,SASL,SMB,SMB_LM' '--enable-auth-digest=file,LDAP' '--enable-auth-negotiate=kerberos,wrapper' '--enable-auth-ntlm=SMB_LM,fake' '--enable-cache-digests' '--enable-cachemgr-hostname=localhost' '--enable-carp' '--enable-delay-pools' '--enable-ecap' '--enable-epoll' '--enable-esi' '--enable-eui' '--enable-external-acl-helpers=file_userip,kerberos_ldap_group,LDAP_group,SQL_session,unix_group,wbinfo_group' '--enable-follow-x-forwarded-for' '--enable-htcp' '--enable-icap-client' '--enable-icmp' '--enable-ident-lookups' '--enable-inline' '--enable-linux-netfilter' '--enable-removal-policies=lru,heap' '--enable-security-cert-validators=fake' '--enable-storeid-rewrite-helpers=file' '--enable-storeio=ufs,aufs,diskd,rock' '--enable-url-rewrite-helpers=fake' '--enable-zph-qos' '--enable-referer-log' '--enable-removal-policies=heap,lru' '--enable-security-cert-generators' '--enable-security-cert-validators' '--enable-snmp' '--enable-ssl-crtd' '--enable-storeio=aufs,diskd,ufs,rock' '--enable-truncate' '--enable-useragent-log' '--enable-wccpv2' '--with-aio' '--with-build-environment=default' '--with-default-user=squid' '--with-large-files' '--disable-ipv6' '--with-openssl' 'build_alias=x86_64-redhat-linux-gnu' 'host_alias=x86_64-redhat-linux-gnu' 'CFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' 'LDFLAGS=-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' 'CXXFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' 'PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig'</font></div><div><br></div><div><br></div><div><br></div><div>> Can you tell how your Squids name their<br>> shared memory segment "files"? For example, on some Linux OSes, </div><div>> those segments could be in /var/run/shm/ </div><div>> with names like squid-tr_map_anchors.shm and squid-tr_spaces.shm.</div><div><br></div><div>Alex, I can not find these files.</div><div>There is no the <font face="monospace">/var/run/shm/ directory </font>in my host. </div><div>I tried running the "<span style="font-family:monospace">locate .shm" </span>command, but it did not find anything.</div><div><br></div><div>Moreover, I do not see any squid's shared memory segments when I run the "<span style="font-family:monospace">ipcs -m" </span>command.</div><div><br></div><div>There are some files in <font face="monospace">/dev/shm</font>, which I found using <font face="monospace">lsof </font>the main squid's pid:</div><div><font face="monospace"># the first instance</font></div><div><font face="monospace">lsof -p 1318 | grep shm<br>squid 1318 root DEL REG 0,23 30205 /dev/shm/squid-cf__queues.shm<br>squid 1318 root DEL REG 0,23 30206 /dev/shm/squid-cf__readers.shm<br>squid 1318 root DEL REG 0,23 30204 /dev/shm/squid-cf__metadata.shm<br>squid 1318 root 8u REG 0,23 8 30204 /dev/shm/squid-cf__metadata.shm (deleted)<br>squid 1318 root 9u REG 0,23 525572 30205 /dev/shm/squid-cf__queues.shm (deleted)<br>squid 1318 root 10u REG 0,23 136 30206 /dev/shm/squid-cf__readers.shm (deleted)<br></font></div><div><br></div><div><font face="monospace"># the second instance</font></div><div><font face="monospace">lsof -p 1514 | grep shm<br>squid.use 1514 root mem REG 0,23 2093368 31497 /dev/shm/squid-tls_session_cache.shm<br>squid.use 1514 root mem REG 0,23 525572 31495 /dev/shm/squid-cf__queues.shm<br>squid.use 1514 root mem REG 0,23 136 31496 /dev/shm/squid-cf__readers.shm<br>squid.use 1514 root mem REG 0,23 8 31494 /dev/shm/squid-cf__metadata.shm<br>squid.use 1514 root 6u REG 0,23 8 31494 /dev/shm/squid-cf__metadata.shm<br>squid.use 1514 root 7u REG 0,23 525572 31495 /dev/shm/squid-cf__queues.shm<br>squid.use 1514 root 8u REG 0,23 136 31496 /dev/shm/squid-cf__readers.shm<br>squid.use 1514 root 9u REG 0,23 2093368 31497 /dev/shm/squid-tls_session_cache.shm<br></font></div><div><br></div><div><span class="gmail-EzKURWReUAB5oZgtQNkl" style="white-space-collapse: preserve;">Maybe</span><span style="white-space-collapse: preserve;"> </span><span class="gmail-EzKURWReUAB5oZgtQNkl" style="white-space-collapse: preserve;">I</span><span style="white-space-collapse: preserve;">'m </span><span class="gmail-EzKURWReUAB5oZgtQNkl" style="white-space-collapse: preserve;">not</span><span style="white-space-collapse: preserve;"> </span><span class="gmail-EzKURWReUAB5oZgtQNkl" style="white-space-collapse: preserve;">experiencing</span><span style="white-space-collapse: preserve;"> </span><span class="gmail-EzKURWReUAB5oZgtQNkl" style="white-space-collapse: preserve;">any</span><span style="white-space-collapse: preserve;"> </span><span class="gmail-EzKURWReUAB5oZgtQNkl" style="white-space-collapse: preserve;">difficulties</span><span style="white-space-collapse: preserve;"> </span><span class="gmail-EzKURWReUAB5oZgtQNkl" style="white-space-collapse: preserve;">because</span><span style="white-space-collapse: preserve;"> </span><span class="gmail-EzKURWReUAB5oZgtQNkl" style="white-space-collapse: preserve;">I</span><span style="white-space-collapse: preserve;"> have </span><span class="gmail-EzKURWReUAB5oZgtQNkl" style="white-space-collapse: preserve;">caching</span><span style="white-space-collapse: preserve;"> turned </span><span class="gmail-EzKURWReUAB5oZgtQNkl" style="white-space-collapse: preserve;">off on both instances</span><span class="gmail-EzKURWReUAB5oZgtQNkl" style="white-space-collapse: preserve;">?</span></div><div><br></div><div>Kind regards,</div><div> Ankor.</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">чт, 6 мар. 2025 г. в 17:11, Alex Rousskov <<a href="mailto:rousskov@measurement-factory.com">rousskov@measurement-factory.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 2025-03-06 08:59, Amos Jeffries wrote:<br>
> On 6/03/25 19:17, Andrey K wrote:<br>
>> Hello,<br>
>><br>
>> I have a similar configuration: two SMP squids running on the same OEL <br>
>> host.<br>
>><br>
>> They were built with different configurations: with different <br>
>> installation path prefixes and different names of binary files: squid <br>
>> and squid.user and they listen to different ports.<br>
>> They are launched from two different services:squid.service and <br>
>> squid.user.service with the service Type=forking:<br>
>><br>
>> ExecStart=/usr/sbin/squid -sYC<br>
>> ExecStart=/sbin/squid.user -f /etc/squid.user/squid.conf<br>
>><br>
>> I have not experienced any troubles with this configuration yet.<br>
>><br>
>> /> Please be aware that "squid -n ..." is a REQUIREMENT for running/<br>
>> /multiple Squid instances on the same machine regardless of what features<br>
>> are used./<br>
>><br>
>> Could you please tell me if I should use the -n option in the <br>
>> ExecStart strings?<br>
>> The arguments of the options should be the service names?<br>
>><br>
>> ExecStart=/usr/sbin/squid -sYC -n squid.service<br>
>> ExecStart=/sbin/squid.user -f /etc/squid.user/squid.conf -n<br>
>> squid.user.service<br>
>><br>
> Yes you should. The different ./configure options has helped you avoid <br>
> major issues, but some may still appear.<br>
<br>
I agree. Moreover, I do not understand how your two SMP Squids could <br>
work correctly without distinct service names because (on OEL) I would <br>
expect them to share the same shared memory segments (which they must <br>
not do to remain distinct instances).<br>
<br>
What is your Squid version? Can you tell how your Squids name their <br>
shared memory segment "files"? For example, on some Linux OSes, those <br>
segments could be in /var/run/shm/ with names like <br>
squid-tr_map_anchors.shm and squid-tr_spaces.shm.<br>
<br>
<br>
Thank you,<br>
<br>
Alex.<br>
<br>
_______________________________________________<br>
squid-users mailing list<br>
<a href="mailto:squid-users@lists.squid-cache.org" target="_blank">squid-users@lists.squid-cache.org</a><br>
<a href="https://lists.squid-cache.org/listinfo/squid-users" rel="noreferrer" target="_blank">https://lists.squid-cache.org/listinfo/squid-users</a><br>
</blockquote></div>