Varnish crash (SIGABRT) about every 10 mins

Gea-Suan Lin gslin at gslin.org
Thu Nov 8 22:46:58 CET 2007


On Thu, Nov 08, 2007 at 10:37:58PM +0100, Dag-Erling Sm鷨grav wrote:
> Gea-Suan Lin <gslin at gslin.org> writes:
> > gslin at testphp [/tmp] (5:23) svn export ~/svn/varnish/varnish-cache varnish-cache.clean
> > gslin at testphp [/tmp] (5:23) diff -ruN varnish-cache.clean varnish-cache > varnish-cache.diff
> 
> This is *really* not useful.  Please give me a simple 'svn diff', or
> at least drop the -N.

I didn't run autogen.sh & configure & make in working repository, but
"svn export varnish-cache /tmp/varnish-cache".

This is diff of bin/varnishd/cache_acceptor_kqueue.c:

gslin at testphp [/tmp/varnish-cache/bin/varnishd] (5:41) diff -ruN ~/svn/varnish/varnish-cache/bin/varnishd/cache_acceptor_kqueue.c cache_acceptor_kqueue.c
--- /net/account/admin/gslin/svn/varnish/varnish-cache/bin/varnishd/cache_acceptor_kqueue.c     Fri Nov  9 01:38:12 2007
+++ cache_acceptor_kqueue.c     Fri Nov  9 03:43:26 2007
@@ -66,8 +66,8 @@
        if (sp->fd < 0)
                return;
        EV_SET(&ki[nki], sp->fd, EVFILT_READ, arm, 0, 0, sp);
-       if (++nki == NKEV) {
-               assert(kevent(kq, ki, nki, NULL, 0, NULL) <= 0);
+       if (++nki == NKEV || arm == EV_DELETE) {
+               AZ(kevent(kq, ki, nki, NULL, 0, NULL));
                nki = 0;
        }
 }

An update of patched varnishd: I use gdb to attach it and it looks
fine now, this is varnishstat screenshot, now it can store >5GB.
I'll try to run without gdb later.

0+00:27:23
Hitrate ratio:       10      100     1000
Hitrate avg:     0.0933   0.2071   0.2500

       30831        13.42        18.77 Client connections accepted
       33441        14.38        20.35 Client requests received
        5005         0.96         3.05 Cache hits
           0         0.00         0.00 Cache hits for pass
       28405        14.38        17.29 Cache misses
       28436        14.38        17.31 Backend connections success
           0         0.00         0.00 Backend connections failures
           0         0.00         0.00 Backend connections reuses
           0         0.00         0.00 Backend connections recycles
           6        -0.96         0.00 Backend connections unused
          24          .            .   N struct srcaddr
           4          .            .   N active struct srcaddr
          23          .            .   N struct sess_mem
           5          .            .   N struct sess
       28415          .            .   N struct object
       28415          .            .   N struct objecthead
       56817          .            .   N struct smf
           0          .            .   N small free smf
           1          .            .   N large free smf
           0          .            .   N struct vbe_conn
          17          .            .   N worker threads
          17         0.00         0.01 N worker threads created
           0         0.00         0.00 N worker threads not created
           0         0.00         0.00 N worker threads limited
           0         0.00         0.00 N queued work requests
          17         0.00         0.01 N overflowed work requests
           0         0.00         0.00 N dropped work requests
           0          .            .   N expired objects
           0          .            .   N LRU nuked objects
           0          .            .   N LRU saved objects
           0          .            .   N objects on deathrow
           0         0.00         0.00 HTTP header overflows
           0         0.00         0.00 Objects sent with sendfile
       31598        14.38        19.23 Objects sent with write
       30829        13.42        18.76 Total Sessions
       33440        14.38        20.35 Total Requests
          31         0.00         0.02 Total pipe
           0         0.00         0.00 Total pass
       28404        13.42        17.29 Total fetch
     7942018      3464.68      4833.85 Total header bytes
  5805632005   1854165.04   3533555.69 Total body bytes
       30345        13.42        18.47 Session Closed
           0         0.00         0.00 Session Pipeline
           0         0.00         0.00 Session Read Ahead
        3109         0.96         1.89 Session herd
     2058773       926.09      1253.06 SHM records
      127012        56.56        77.30 SHM writes
          13         0.00         0.01 SHM MTX contention
       56816        26.84        34.58 allocator requests
       56816          .            .   outstanding allocations
  5530710016          .            .   bytes allocated
 28829028352          .            .   bytes free
       28404        14.38        17.29 Backend requests made

-- 
* Gea-Suan Lin  (public key: Using https://keyserver.pgp.com/ to search)
* If you cannot convince them, confuse them.           -- Harry S Truman



More information about the varnish-misc mailing list