Mailing List Archive

Question about Cache Size
Hey everyone,

In trying to diagnose why the varnish child dies at seemingly random
times, I started varnish with -d -d and waited for a crash. This is what
I got in the output:

Child said (2, 16094): <<Assert error in STV_alloc(), stevedore.c line 70:
Condition((st) != NULL) not true.
errno = 107 (Transport endpoint is not connected)
>>
Cache child died pid=16094 status=0x6
Clean child
Child cleaned
start child pid 18886
Child said (2, 18886): <<Child starts
managed to mmap 565284864 bytes of 565284864
Ready
CLI ready
>>


Any idea what this might be an indication of? Also, when starting
varnish from the command line (and not an init.d script), I noticed this
output which I haven't noticed before:

[root at www ~]# /usr/local/sbin/varnishd -a <ipaddr>:8000 -T <ipaddr>:8080
-s file,/var/cache/varnish/,10G -p group=nobody -p thread_pool_max=1500
-p thread_pools=5 -p listen_depth=512 -p client_http11=on -p
backend_http11=on -p default_ttl=36000 -P /var/run/varnishd.pid -f
/etc/varnish.conf
WARNING: storage file size reduced to 1342177280 due to system limitations
WARNING: storage file size reduced to 599837900 (80% of available disk
space)
file /var/cache/varnish//varnish.z8brik (unlinked) size 599834624 bytes
(146444 fs-blocks, 146444 pages)
Using old SHMFILE


However, 80% of my available disk space is not 599834624 bytes ( 572
Mbytes ).

Filesystem Size Used Avail Use% Mounted on
/dev/sda3 131G 16G 109G 13% /
/dev/sda1 99M 15M 79M 16% /boot
tmpfs 1.8G 0 1.8G 0% /dev/shm

Any idea if these things are related? Currently running varnishd-1.2

Thanks!

-- james
Question about Cache Size [ In reply to ]
james wrote:
> Hey everyone,
>
> In trying to diagnose why the varnish child dies at seemingly random
> times, I started varnish with -d -d and waited for a crash. This is what
> I got in the output:
>
> Child said (2, 16094): <<Assert error in STV_alloc(), stevedore.c line 70:
> Condition((st) != NULL) not true.
> errno = 107 (Transport endpoint is not connected)
> >>
> Cache child died pid=16094 status=0x6
> Clean child
> Child cleaned
> start child pid 18886
> Child said (2, 18886): <<Child starts
> managed to mmap 565284864 bytes of 565284864
> Ready
> CLI ready
> >>
>

This issue is not effecting me anymore after moving to a 64bit system.

Alas, I am experiencing another issue using varnish-1.2. After purging
from the cache (using url.purge *.css), the child will die and the
management process goes to 100% cpu. From running in debug mode:

storage_file: filename: /var/cache/varnishd//varnish.BIT37f (unlinked)
size 10240 MegaBytes.
Using old SHMFILE
rolling(1)...
rolling(2)...
start
start child pid 20178
200 0

Child said (2, 20178): <<Child starts
managed to mmap 10737418240 bytes of 10737418240
Ready
CLI ready
>>
Cache child died pid=20178 status=0xb
Clean child
Child cleaned
start child pid 20199
Child said (2, 20199): <<Child starts
managed to mmap 10737418240 bytes of 10737418240
Ready
CLI ready
>>

Is there anything else I should to to help track down the issue? Is it
advisable to go to 1.1.2?

-- james