[Varnish] #934: Memory leak in varnish_32e40a6ececf4a2ea65830e723c770d1ce261898

Varnish varnish-bugs at varnish-cache.org
Tue Jun 7 16:59:20 CEST 2011


#934: Memory leak in varnish_32e40a6ececf4a2ea65830e723c770d1ce261898
--------------------+-------------------------------------------------------
 Reporter:  kdajka  |        Type:  defect  
   Status:  new     |    Priority:  normal  
Milestone:          |   Component:  varnishd
  Version:  trunk   |    Severity:  normal  
 Keywords:          |  
--------------------+-------------------------------------------------------

Comment(by kdajka):

 @kb Could you enlighten me how to calculate stack space? I reduced
 thread_pool_stack to 256KB with
 varnish_edd0d11803810d30566c883a9b6d1fcbdc12b69f, without any success

 I think that there could be problem in memory allocation in trunk. While
 using 2.1.5 with -s malloc,9G I'm having 174799 objects, with trunk -s
 malloc,1G I had 315918.

 Here is varnishstats for another instance running varnish 2.1.5
 {{{
 74+03:36:50
 foo.bar_varnishis06
 Hitrate ratio:        4        4        4
 Hitrate avg:     0.9465   0.9465   0.9465

    538232179       106.00        84.01 Client connections accepted
   1114797510       188.00       174.01 Client requests received
    793644749       122.00       123.88 Cache hits
     63018054        10.00         9.84 Cache misses
    320780448        64.00        50.07 Backend conn. success
         1755         0.00         0.00 Backend conn. failures
       723142         1.00         0.11 Fetch head
    207716493        40.00        32.42 Fetch with Length
    107544864        25.00        16.79 Fetch chunked
      4748592         0.00         0.74 Fetch wanted close
         6451          .            .   N struct sess_mem
         4800          .            .   N struct sess
       174799          .            .   N struct object
       175340          .            .   N struct objectcore
       168412          .            .   N struct objecthead
            6          .            .   N struct vbe_conn
          800          .            .   N worker threads
          800         0.00         0.00 N worker threads created
         1054         0.00         0.00 N overflowed work requests
            4          .            .   N backends
      1095240          .            .   N expired objects
     60986108          .            .   N LRU nuked objects
    556985450          .            .   N LRU moved objects
          423         0.00         0.00 HTTP header overflows
    846522080       160.00       132.13 Objects sent with write
    538232150        98.00        84.01 Total Sessions
   1114797510       188.00       174.01 Total Requests
    257961885        56.00        40.26 Total pass
    320772085        66.00        50.07 Total fetch
 394613512589     68681.08     61594.75 Total header bytes
 18397971826970   3207204.82   2871717.15 Total body bytes
     68888160        15.00        10.75 Session Closed
      5643000         6.00         0.88 Session Pipeline
      3441334         0.00         0.54 Session Read Ahead
   1064588356       179.00       166.17 Session Linger
    977736112       168.00       152.61 Session herd
  62541672735     11194.01      9762.05 SHM records
   4362898502       812.00       681.00 SHM writes
      7902888         1.00         1.23 SHM MTX contention
        26774         0.00         0.00 SHM cycles through buffer
    448824662        79.00        70.06 SMA allocator requests
       366074          .            .   SMA outstanding allocations
   9663510529          .            .   SMA outstanding bytes
 16615975252318          .            .   SMA bytes allocated
 16606311741789          .            .   SMA bytes free
       384052         0.00         0.06 SMS allocator requests
    243664829          .            .   SMS bytes allocated
    243664829          .            .   SMS bytes freed
    320774869        64.00        50.07 Backend requests made
            4         0.00         0.00 N vcl total
            4         0.00         0.00 N vcl available
            5          .            .   N total active purges
         9433         0.00         0.00 N new purges added
         9428         0.00         0.00 N old purges deleted
     64630941         5.00        10.09 N objects tested
    629033817        14.00        98.19 N regexps tested against
           61         0.00         0.00 N duplicate purges removed
      6406610         1.00         1.00 Client uptime
        38994         0.00         0.01 Fetch no body (304)
 }}}

-- 
Ticket URL: <http://www.varnish-cache.org/trac/ticket/934#comment:2>
Varnish <http://varnish-cache.org/>
The Varnish HTTP Accelerator




More information about the varnish-bugs mailing list