Re: cbdata

From: Andres Kroonmaa <andre@dont-contact.us>
Date: Thu, 30 Nov 2000 22:38:38 +0200

On 30 Nov 2000, at 13:12, Duane Wessels <wessels@squid-cache.org> wrote:

>
>
> On Tue, 28 Nov 2000, Andres Kroonmaa wrote:
>
> >
> > Does anyone else besides me have a feeling that we leak memory
> > (cbdata structs) inside squid 2.4?
> >
> > (modified cbdata_debug: age in secs, lastref in secs or 0 if never)
> >
> > 845f3b8 VALID 0 locks age: 157, lastref: 0, store_repl_heap.c:237
> > 845f398 VALID 0 locks age: 184, lastref: 0, store_repl_heap.c:237
> > 845f348 VALID 0 locks age: 213, lastref: 0, store_repl_heap.c:237
>
> are you using aufs?

 Yes.
 seems the patch is good. leak stopped.

> Index: store_dir_aufs.c
> ===================================================================
> RCS file: /server/cvs-server/squid/squid/src/fs/aufs/store_dir_aufs.c,v
> retrieving revision 1.18
> diff -u -r1.18 store_dir_aufs.c
> --- store_dir_aufs.c 2000/11/30 20:08:47 1.18
> +++ store_dir_aufs.c 2000/11/30 20:11:42
> @@ -1348,6 +1348,7 @@
> removed++;
> storeRelease(e);
> }
> + walker->Done(walker);
> debug(20, (removed ? 2 : 3)) ("storeUfsDirMaintain: %s removed %d/%d f=%.03f max_scan=%d\n",
> SD->path, removed, max_remove, f, max_scan);
> }

------------------------------------
 Andres Kroonmaa <andre@online.ee>
 Delfi Online
 Tel: 6501 731, Fax: 6501 708
 Pärnu mnt. 158, Tallinn,
 11317 Estonia
Received on Thu Nov 30 2000 - 13:42:16 MST

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