[buildd-tools-devel] Bug#606162: Bug#606162: [PATCH] 15killprocs: Don’t run /bin/readlink for every process

Roger Leigh rleigh at codelibre.net
Tue Dec 7 13:05:51 UTC 2010


tags 606162 + fixed-upstream pending
thanks

On Mon, Dec 06, 2010 at 05:39:24PM -0500, Anders Kaseorg wrote:
> /etc/schroot/setup.d/15killprocs has a loop that runs ‘readlink 
> /proc/"$pid"/root’ for every process in the system.  I have a system with 
> thousands of processes, and this loop makes schroot take about a minute to 
> close a chroot.  I changed it to use the builtin -ef operator; now it 
> takes about a second.

Thanks, I've applied the patch and it should be in the next release.


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20101207/2402a744/attachment.pgp>


More information about the Buildd-tools-devel mailing list