Bug#426165: apt: Could use a blocking fd to read from the pipe from dpkg

2025-02-25 Thread Julian Andres Klode
On Sun, Feb 23, 2025 at 03:20:42PM +0100, Kamil Ignacak wrote: > Hi! > > If I read the history correctly, then I see the following changes to code: > > In 2005 a loop reading child process' (dpkg) output was added, together with > a call to usleep(1000) that slows an idle loop down. This was made

Bug#426165: apt: Could use a blocking fd to read from the pipe from dpkg

2025-02-23 Thread Kamil Ignacak
Hi! If I read the history correctly, then I see the following changes to code: In 2005 a loop reading child process' (dpkg) output was added, together with a call to usleep(1000) that slows an idle loop down. This was made in https://salsa.debian.org/apt-team/apt/-/commit/75ef8f1417. In 2006

Bug#426165: apt: Could use a blocking fd to read from the pipe from dpkg

2007-05-26 Thread Mike Hommey
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