Re: some linux tuning

From: Stephen R. van den Berg <srb@dont-contact.us>
Date: Thu, 1 Jul 1999 03:22:50 +0200

jlewis@lewis.org wrote:
>I reversed the first patch and applied the second patch this morning. It
>hasn't segfaulted again since then, but it is still leaking. When I start
>squid, after it stabilizes, it's got about a 20mb difference between total
>space in arena and total accounted. After 9 hours, the difference is
>42mb.

> 1048849 StoreEntries
> 3259 StoreEntries with MemObjects

I have here two caches, one small, no transparant proxying, one large (also doing
transparant proxying a bit), neither is doing ICP anymore, digests only.

The small one, no transparant proxy:
Uptime so far: 10.75 hours
        Number of HTTP requests received: 158292
        580543 StoreEntries
          3421 StoreEntries with MemObjects

        Total in use: 43467 KB 268%
        Total free: 6538 KB 40%
Memory accounted for:
        Total accounted: 34984 KB

The HPL_REPL code has an overhead of 580438*4/1024 = 2267 KB, so the total
unaccounted is: 43467-34984-2267 = 6216 KB (doesn't seem too much, and
it's stable, as far as I can tell).

The large one, also doing transparant proxy:
Uptime so far: 6 hours
        Number of HTTP requests received: 237838
        1528980 StoreEntries
          3344 StoreEntries with MemObjects

        Total in use: 70640 KB 352%
        Total free: 7885 KB 39%
Memory accounted for:
        Total accounted: 57140 KB

The HPL_REPL code has an overhead of 1528980*4/1024 = 5972 KB, so the total
unaccounted is: 70640-57140-5972 = 7528 KB (doesn't seem too much, and
it's stable as well, as far as I can tell).

So it seems that I don't experience the leaks. Besides the differences
in code, the only obvious difference seems to be me not using ICP (I did
that for a week, in the beginning, to reintegrate the old cache; but I
forgot to check for memory leaks).

What you might want to try is run my snapshot. I just posted version 3
of it; to ease the transition, a swaplogfile converter program has been
included (but the converter has not been tested extensively yet; so
don't throw away the backup of that file).

-- 
Sincerely,                                                          srb@cuci.nl
           Stephen R. van den Berg (AKA BuGless).
"My name is Smith, the P is not pronounced."
Received on Wed Jun 30 1999 - 19:06:58 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:47:04 MST