Re: [PATCH] rm, du, chmod, chown, chgrp: use much less memory for large directories

2011-08-19 Thread Erik Auerswald
Hi, there is a typo in the NEWS entry: On Fri, Aug 19, 2011 at 06:24:46PM +0200, Jim Meyering wrote: > [...] > + fts-using tools (rm, du, chmod, chgrp, chown, chcon) no longer use memory > + proportional to the number of entries in each directory they process. > + Before, rm -rf 4-million-entr

[PATCH] rm, du, chmod, chown, chgrp: use much less memory for large directories

2011-08-19 Thread Jim Meyering
[Cc'ing bug-findutils, since it needs the same treatment] Applied to a directory containing too many entries, tools like rm, du, chmod, chown, chgrp and chcon would exhaust virtual memory. At ~1GiB per 4 million entries, you can calculate how many entries it would take to cause trouble in your env