On Fri, Oct 14, 2016 at 1:50 AM, Alex Rousskov <rousskov@xxxxxxxxxxxxxxxxxxxxxxx> wrote: > On 10/13/2016 01:53 AM, Deniz Eren wrote: > >> I'm using squid's SMP functionality to distribute requests to many >> squid instances and distribute workload to multiple processors. >> However while running squid's workers after a while worker processes >> crash with the error below and coordinator does not start them again: >> ... >> FATAL: Ipc::Mem::Segment::open failed to >> shm_open(/squid-cf__metadata.shm): (2) No such file or directory >> Squid Cache (Version 3.5.20): Terminated abnormally. >> ... > > Are you saying that this fatal shm_open() error happens after all > workers have started serving/logging traffic? Yes, they are serving. > I would expect to see it > at startup (first few minutes at the most if you have IPC timeout > problems). Both happen. Sometimes it crashes after seconds, but most of the time it takes 5-10 minutes. > Does the error always point to squid-cf__metadata.shm? This error is solved but, below error still happens. 2016/10/17 11:22:37 kid1| assertion failed: ../../src/ipc/AtomicWord.h:71: "Enabled()" > > Are you sure that there are no other fatal errors, segmentation faults, > or similar deathly problems _before_ this error? > Are you sure your > startup script does not accidentally start multiple Squid instances that > compete with each other? You were right there was a problem with startup script. I'm now starting with "squid -f /conf/file/path/conffile.conf". However there is a new problem shown below. 2016/10/17 11:22:37 kid1| assertion failed: ../../src/ipc/AtomicWord.h:71: "Enabled()" Because of this error workers crash couple of times and after that coordinator gives up creating workers. > Check system error logs. > > FWIW, Segment::open errors without Segment::create errors are often a > side-effect of other problems that either prevent Squid from creating > segments or force Squid to remove created segments (both happen in the > master process). > > >> permissions are OK in /dev/shm > > Do you see any Squid segments there (with reasonable timestamps)? > > >> Also is my way of using SMP functionality correct, since I want to >> distribute all connections between workers and to listen only specific >> ports? > > Adding "workers N" and avoiding SMP-incompatible features is the right > way; I do not see any SMP-related problems in your configuration. > > Alex. > _______________________________________________ squid-users mailing list squid-users@xxxxxxxxxxxxxxxxxxxxx http://lists.squid-cache.org/listinfo/squid-users