[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: Memory consumption w/ large directories

From: Sander Striker <striker_at_apache.org>
Date: 2002-02-08 19:55:04 CET

> From: Kirby C. Bohling [mailto:kbohling@birddog.com]
> Sent: 08 February 2002 18:15

> >> Some of the apr stuff Sander liked and I believe considering
> >>re-implementing into APR (walking the pool tree), and some stuff that
> >>
> >
> > Yes, that is biting me at the moment. I have breakage in testthread.
> >
> Okay, if there is anything I can do let me know. If you're using the
> ordering I did, I am not sure that can be threaded and not deadlock.

I factored out some logic in there. We now have an apr_pool_walk_tree
(internal to apr_pools.c). Locking was simplified aswell. The thing
_is_ threadsafe now. And working :)

> >>allowed me tag specific pools I am "interested" in tracing (I didn't get
> >>a feel for Sander's opinion after he read the code, he seemed interested
> >>before seeing the implementation *grin*).
> >>
> >
> > I liked the concept and I liked the hack. It is a very usefull tool.
> > I just need a bit of time to see how much we can integrate into APR.
> > I want to try to keep it as portable as possible, but this tool is so
> > usefull, we might want to drop it in if it even only works on one
> > platform...
> >
> > I am currently spending my time on a bit of cleanup in the pools code.
> > Refactoring out stuff in the debug section, etc. I'll get to your code
> > next... (/me remembers he has to setup an ssl server...)
> >
> No big hurry on any of it, just wasn't sure what the status was on all
> of it. To be honest I had to I can implement most of it in under 20
> minutes again on a new check out :-)

Cool. I think you'll like the current revision better ;)
> > Instead of outputting, you save the last X allocations so you can spit those
> > out on demand, right?
> >
> Nope, I "mark" the pool as I am interested and output all of those pools
> everytime I am interested. Normally when I am debugging I do know
> exactly which pools I am interested in (well so far) from output that
> walks the tree and prints it clues me in. Anything that seems excessive
> I am interested in, between the tags/file_line and/or a breakpoint it is
> easy to "mark" it.

> >
> >>I interested in a when a new pool gets created from this pool.
> >>
> >>For bonus points I am interested in pools whose tag match this regex.
> >>
> >>I'll provide the implementation if your interested.
> >>
> >
> > Yes :) We need to get on the same wavelength to reduce wasted effort
> > (in the form of code dup or otherwise).
> >
> Sounds good to me. Tell you want, I will code a first pass up sometime
> this weekend and push it your way for comment that has some set of
> features I find interesting. I won't mind if I duplicate your work this
> is *fun*.

Thanks. Looking forward to it.

> > Thanks for your feedback. Drop in on #svn (irc.openprojects.net) someday so
> > we can talk a bit more interactively.
> >
> Uhhh, do you have a recommended IRC client, I've never used IRC in my
> life (I am so sheltered...).

On which platform? On *nix I see a lot of BitchX. Everyone has their
own personal preference I think.

> Kirby


To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:37:05 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.