2011/1/12 Amos Jeffries <squid3@xxxxxxxxxxxxx>: > On 12/01/11 20:12, Drunkard Zhang wrote: >> >> I'm testing squid-2.7STABLE9 + COSS + ext4 + SSD now. >> >> When enlarge the coss, eg: from 10240 to 20480, I can see success in >> cache.log, but the coss file on disk did not change, after 3 times of >> "squid -k reconfigure" the coss file size changed. > > How long did you wait? it could be that Squid was doing a long resize in the > background. This is a guess supported by the change actually happening. > >> But some times later, the squid process exited, with nothing left in >> cache.log. Just once in cache.log I found: >> >> 2011/01/12 11:10:04| assertion failed: coss/store_io_coss.c:215: >> "cs->curstripe< Â(cs->numstripes - 1)" >> >> So, I wondering if resize of coss online is supported perfectly, that >> we can use it without anxiety. >> BTW, is shrink of coss filesystem is supported? If it is, do I have to >> do it online, or offline? By online, I means operates without restart >> squid process, and the offline means opposite. > > I think you need to try offline change. Via a stop, squid -z and restart > sequence. Thanks, maybe I'm too hurry. >> With squid-2.7STABLE9 + COSS + btrfs + SSD, reload can cause process >> to stuck, with 100% CPU usage per squid process. I caught these info >> in cache.log once: >> >> 2011/01/09 14:56:44| Killing RunCache, pid 59502 >> 2011/01/09 14:56:44| kill 59502: (1) Operation not permitted >> >> And kill of the process will make the process into a zombie. The >> defunct process still using 100% CPU, which wasn't show in ps. >> >> squid75 ~ # ps -eo pid,%cpu,cmd --sort=c >> 59343 Â2.7 [squid]<defunct> >> 59505 Â2.8 [squid]<defunct> >> 59380 Â2.9 [squid]<defunct> >> 59474 Â2.9 [squid]<defunct> >> 42558 Â3.4 [btrfs-endio-1] >> 43717 Â3.7 (squid) -YC -D -f squid73.conf >> 43925 Â4.0 (squid) -YC -D -f squid74.conf >> 42520 Â4.3 (squid) -YC -D -f squid75.conf >> 51532 Â4.4 (squid) -YC -D -f squid77.conf >> 18014 Â5.9 (squid) -YC -D -f squid72.conf > > FWIW; > ÂI think you will very much want to play with the squid-3.2 "RockStore" code > being written by The Measurement Factory guys. Contact Alex for ways to get > a current working version. > We did a test on squid-3.2, but using of 3.2 make no difference to what we are doing now. SMP acts very similar to our multi-instance mode... but still looking forward.