Your message dated Sat, 8 Mar 2025 20:18:46 +0100 with message-id <5584a299-81d8-4738-bb7d-06627e005bc0@wp.pl> and subject line Re: Bug#426165: apt: Could use a blocking fd to read from the pipe from dpkg has caused the Debian Bug report #426165, regarding apt: Could use a blocking fd to read from the pipe from dpkg to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org immediately.) -- 426165: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=426165 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: apt: Could use a blocking fd to read from the pipe from dpkg
- From: Mike Hommey <mh+reportbug@glandium.org>
- Date: Sat, 26 May 2007 23:15:42 +0200
- Message-id: <20070526211542.27532.79784.reportbug@namakemono.glandium.org>
Package: apt Version: 0.6.46.4-0.1 Severity: wishlist Playing around with powertop, I noticed a huge amount of wake-ups while doing some massive apt-get install. Almost 1000 wake-ups reported by powertop. These are due to usleep(1000) in apt-pkg/deb/dpkgpm.cc. The thing is that apt sets the pipe from dpkg as non-blocking, and doesn't wait on read()s, thus running into the loop and through the usleep(). This is useless and adds extra CPU wake-ups where there is no need for it. Simply commenting the fcntl(_dpkgin, F_SETFL, O_NONBLOCK); line makes things cleaner, and it even seems that the install goes faster, and the number of i/o interrupts during install gets higher than when the pipe was non blocking, which would indicate a better throughput, too. While this comment is enough to keep the code working while improving things, the waitpid loop could obviously be improved a bit considering the fd is blocking. I can't seem to find a reason why the dpkg process would go zombie in such case, so I think this should be safe, but you can still prove me wrong. Cheers, Mike
--- End Message ---
--- Begin Message ---
- To: 426165-done@bugs.debian.org
- Subject: Re: Bug#426165: apt: Could use a blocking fd to read from the pipe from dpkg
- From: Kamil Ignacak <acerion@wp.pl>
- Date: Sat, 8 Mar 2025 20:18:46 +0100
- Message-id: <5584a299-81d8-4738-bb7d-06627e005bc0@wp.pl>
- In-reply-to: <20250225175145.GA3514487@debian.org>
- References: <20070526211542.27532.79784.reportbug@namakemono.glandium.org> <20070526211542.27532.79784.reportbug@namakemono.glandium.org> <29e76cd9-ab40-4053-9fdb-6171a129e1ae@wp.pl> <20250225175145.GA3514487@debian.org>
Actually closing, based on messages #10 and #15. Kamil
--- End Message ---