C2 General > -----Ursprüngliche Nachricht----- > Von: Joe Orton <[email protected]> > Gesendet: Dienstag, 25. Juni 2019 10:45 > An: [email protected] > Betreff: Re: svn commit: r1841225 - > /httpd/httpd/trunk/modules/dav/main/props.c > > On Tue, Jun 25, 2019 at 08:49:08AM +0100, Joe Orton wrote: > > Unless I am missing something the apr_dir_open/apr_dir_read API design > > is always going to have memory use proportional to directory size > > because apr_dir_read() duplicates the filename into the directory's > > pool. We need an apr_dir_pread() or whatever which takes a pool > > argument. :( > > OK, yes, this plus an iterpool in dav_fs_walker() fixes it. Only the iterpool in dav_fs_walker or plus the changes in APR (apr_dir_pread)? > > I've been using the python "psrecord" (from pip) to check this rather > than my traditional method of "eyeballing top", here are the charts for > running 10x a PROPFIND with ~100K files, for Great plots. Thanks for pointing to the tool. > > a) trunk - steep gradient, ~20mb consumed > b) trunk plus the patch from my previous post, ~5mb? > c) (b) plus iterpool in dav_fs_walker - flat > > so I think (b) is fine to commit but with the recursion in dav_fs_walker > I am not at all sure this stuff is safe yet, will need some more > testing. The recursion stuff could be tricky. Probably a separate (sub-)pool for apr_dir_open on each recursion level and separate iterpools on each recursion level? Regards Rüdiger
AW: svn commit: r1841225 - /httpd/httpd/trunk/modules/dav/main/props.c
Plüm , Rüdiger , Vodafone Group Tue, 25 Jun 2019 02:09:03 -0700
- Re: svn commit... Greg Stein
- Re: svn commit... Joe Orton
- Re: svn commit... Ruediger Pluem
- Re: svn commit... Joe Orton
- Re: svn commit... Ruediger Pluem
- Re: svn commit... Ruediger Pluem
- Re: svn commit... Joe Orton
- AW: svn commit... Plüm , Rüdiger , Vodafone Group
- Re: svn commit... Joe Orton
- Re: svn commit... Stefan Eissing
- AW: svn commit... Plüm , Rüdiger , Vodafone Group
- Re: svn commit... Joe Orton
- AW: svn commit... Plüm , Rüdiger , Vodafone Group
- Re: svn commit: r1841225 - /httpd/httpd/... Joe Orton
- AW: svn commit: r1841225 - /httpd/h... Plüm , Rüdiger , Vodafone Group
- Re: svn commit: r1841225 - /htt... Joe Orton
- AW: svn commit: r1841225 - ... Plüm , Rüdiger , Vodafone Group
