Bug#533830: uses most of CPU (still)

2009-11-29 Thread Mark Hindley
On Mon, Nov 30, 2009 at 12:07:18AM +1100, Ben Finney wrote: > On 29-Nov-2009, Mark Hindley wrote: > > On Sun, Nov 29, 2009 at 11:55:22AM +1100, Ben Finney wrote: > > > Barring any regression from this situation, I consider this bug > > > resolved by those specific patches. > > > > Does the maximum

Bug#533830: uses most of CPU (still)

2009-11-29 Thread Ben Finney
On 29-Nov-2009, Mark Hindley wrote: > On Sun, Nov 29, 2009 at 11:55:22AM +1100, Ben Finney wrote: > > Barring any regression from this situation, I consider this bug > > resolved by those specific patches. > > Does the maximum download speed still approximate to your bandwidth? Yes. If anything,

Bug#533830: uses most of CPU (still)

2009-11-29 Thread Mark Hindley
On Sun, Nov 29, 2009 at 11:55:22AM +1100, Ben Finney wrote: > On 28-Nov-2009, Mark Hindley wrote: > > Actually, I have had another thought. > > > > Try this: > > > > diff --git a/apt-cacher2 b/apt-cacher2 > > index ed53849..f04cadf 100755 > > --- a/apt-cacher2 > > +++ b/apt-cacher2 > > I can con

Bug#533830: uses most of CPU (still)

2009-11-28 Thread Ben Finney
On 28-Nov-2009, Mark Hindley wrote: > Actually, I have had another thought. > > Try this: > > diff --git a/apt-cacher2 b/apt-cacher2 > index ed53849..f04cadf 100755 > --- a/apt-cacher2 > +++ b/apt-cacher2 I can confirm that this improves the situation for me too. Specifically, I've built an ‘ap

Bug#533830: uses most of CPU (solved?)

2009-11-28 Thread Mark Hindley
On Sat, Nov 28, 2009 at 03:17:00PM -0800, Ross Boylan wrote: > On Sat, 2009-11-28 at 22:04 +, Mark Hindley wrote: > > Something like > > > > wget -O /dev/null > > http://localhost:3142/ftp.debian.org/debian/pool/main/e/eglibc/locales_2.10.2-2_all.deb > > > > ought to give you a realistic vi

Bug#533830: uses most of CPU (solved?)

2009-11-28 Thread Ross Boylan
On Sat, 2009-11-28 at 22:04 +, Mark Hindley wrote: > Something like > > wget -O /dev/null > http://localhost:3142/ftp.debian.org/debian/pool/main/e/eglibc/locales_2.10.2-2_all.deb > > ought to give you a realistic view of the throughput. > > Sorry to have taken so long to get to the bottom

Bug#533830: A good example of Debian's excellent attitude to bug reports (was: Bug#533830: uses most of CPU (solved?))

2009-11-28 Thread Ben Finney
[context: a bug, that has been hard to track down for a while, sees a flurry of activity and improvement in multiple installations; and then the developer sees fit to apologise. I disagree; praise is appropriate.] On 28-Nov-2009, Mark Hindley wrote: > Sorry to have taken so long to get to the bott

Bug#533830: uses most of CPU (solved?)

2009-11-28 Thread Mark Hindley
On Sat, Nov 28, 2009 at 12:06:14PM -0800, Ross Boylan wrote: > On Sat, 2009-11-28 at 11:34 +, Mark Hindley wrote: > > Does that help? > YES (that is, changing to 0.1). apt-cacher CPU use is basically > undetectable; 1% was the highest I saw. Finally! > > Does it hit your throughput? > T

Bug#533830: uses most of CPU (solved?)

2009-11-28 Thread Ross Boylan
On Sat, 2009-11-28 at 11:34 +, Mark Hindley wrote: > Actually, I have had another thought. > > Try this: > > diff --git a/apt-cacher2 b/apt-cacher2 > index ed53849..f04cadf 100755 > --- a/apt-cacher2 > +++ b/apt-cacher2 > @@ -1211,7 +1211,7 @@ sub connect_curlm { >

Bug#533830: uses most of CPU (still)

2009-11-28 Thread Mark Hindley
On Sat, Nov 28, 2009 at 10:27:12AM -0800, Ross Boylan wrote: > Is this in addition to the previous patches, or in place of them? As well. Mark -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Bug#533830: uses most of CPU (still)

2009-11-28 Thread Ross Boylan
Just taking the easy questions for now: On Sat, 2009-11-28 at 11:08 +, Mark Hindley wrote: > On Fri, Nov 27, 2009 at 06:41:04PM -0800, Ross Boylan wrote: > > > With both these patches (8c7a9ed and c99bd95) applied, I'm now seeing > > > ???apt-cacher??? processes maintain a negligible CPU usage,

Bug#533830: uses most of CPU (still)

2009-11-28 Thread Ross Boylan
Is this in addition to the previous patches, or in place of them? Ross On Sat, 2009-11-28 at 11:34 +, Mark Hindley wrote: > > Actually, I have had another thought. > > Try this: > > diff --git a/apt-cacher2 b/apt-cacher2 > index ed53849..f04cadf 100755 > --- a/apt-cacher2 > +++ b/apt-cacher

Bug#533830: uses most of CPU (still)

2009-11-28 Thread Mark Hindley
On Fri, Nov 27, 2009 at 06:41:04PM -0800, Ross Boylan wrote: > On Fri, 2009-11-27 at 12:45 +1100, Ben Finney wrote: > > On 26-Nov-2009, Mark Hindley wrote: > > > On Thu, Nov 26, 2009 at 09:49:31AM +1100, Ben Finney wrote: > > > > It now has occasional stretches of full-CPU usage, often a few > > >

Bug#533830: uses most of CPU (still)

2009-11-28 Thread Mark Hindley
On Fri, Nov 27, 2009 at 06:41:04PM -0800, Ross Boylan wrote: > > With both these patches (8c7a9ed and c99bd95) applied, I'm now seeing > > ???apt-cacher??? processes maintain a negligible CPU usage, even when APT > > is fetching from them. > > > > This is highly imprecise (I'm just watching ???hto

Bug#533830: uses most of CPU (still)

2009-11-27 Thread Ross Boylan
On Fri, 2009-11-27 at 12:45 +1100, Ben Finney wrote: > On 26-Nov-2009, Mark Hindley wrote: > > On Thu, Nov 26, 2009 at 09:49:31AM +1100, Ben Finney wrote: > > > It now has occasional stretches of full-CPU usage, often a few > > > minutes long; but the usage does at least drop back to a > > > neglig

Bug#533830: uses most of CPU

2009-11-26 Thread Ben Finney
On 26-Nov-2009, Mark Hindley wrote: > On Thu, Nov 26, 2009 at 09:49:31AM +1100, Ben Finney wrote: > > It now has occasional stretches of full-CPU usage, often a few > > minutes long; but the usage does at least drop back to a > > negligible idle state after a while. > > Well that is progress at le

Bug#533830: uses most of CPU

2009-11-26 Thread Mark Hindley
On Thu, Nov 26, 2009 at 09:49:31AM +1100, Ben Finney wrote: > > diff --git a/apt-cacher2 b/apt-cacher2 > > index 8ac5b91..8c7a9ed 100755 > > --- a/apt-cacher2 > > +++ b/apt-cacher2 > [???] > > This applies cleanly to the source, and I have now built and installed > the resulting ???apt-cacher??? p

Bug#533830: [Fwd: Re: Bug#533830: uses most of CPU]

2009-11-25 Thread Ben Finney
> diff --git a/apt-cacher2 b/apt-cacher2 > index 8ac5b91..8c7a9ed 100755 > --- a/apt-cacher2 > +++ b/apt-cacher2 […] This applies cleanly to the source, and I have now built and installed the resulting ‘apt-cacher’ package. It now has occasional stretches of full-CPU usage, often a few minutes lo

Bug#533830: [Fwd: Re: Bug#533830: uses most of CPU]

2009-11-25 Thread Ben Finney
(Forwarding a message with an updated patch, presumably the bug report address was omitted by mistake; sorry, Mark, if that's not the case.) -- \ “You are welcome to visit the cemetery where famous Russian and | `\Soviet composers, artists, and writers are buried daily except | _o__)

Bug#533830: uses most of CPU

2009-11-25 Thread Ben Finney
On 25-Nov-2009, Mark Hindley wrote: > On Thu, Nov 26, 2009 at 09:02:24AM +1100, Ben Finney wrote: > > This patch (and the previous ones sent today) do not apply cleanly > > against ???apt-cacher??? 1.6.9; they are trying to patch a file > > (???{a,b}/apt-cacher???) that does not exist. Perhaps you'

Bug#533830: uses most of CPU

2009-11-25 Thread Mark Hindley
On Thu, Nov 26, 2009 at 09:02:24AM +1100, Ben Finney wrote: > On 25-Nov-2009, Mark Hindley wrote: > > Sorry, there was a missing block in the last patch. This one is > > correcyt (I hope!) > > This patch (and the previous ones sent today) do not apply cleanly > against ???apt-cacher??? 1.6.9; they

Bug#533830: uses most of CPU

2009-11-25 Thread Ben Finney
On 25-Nov-2009, Mark Hindley wrote: > Sorry, there was a missing block in the last patch. This one is > correcyt (I hope!) This patch (and the previous ones sent today) do not apply cleanly against ‘apt-cacher’ 1.6.9; they are trying to patch a file (‘{a,b}/apt-cacher’) that does not exist. Perhap

Bug#533830: uses most of CPU

2009-11-25 Thread Ross Boylan
All produced the expected output. I've been wondering if the problem is in Perl::IO in stable, or some other underlying library rather than apt-cacher code. I'll try the patch you sent. Ross On Wed, 2009-11-25 at 14:16 +, Mark Hindley wrote: > On Tue, Nov 24, 2009 at 10:21:30PM +1100, Ben Fi

Bug#533830: uses most of CPU

2009-11-25 Thread Mark Hindley
Sorry, there was a missing block in the last patch. This one is correcyt (I hope!) Mark diff --git a/apt-cacher b/apt-cacher index 8ac5b91..8c7a9ed 100755 --- a/apt-cacher +++ b/apt-cacher @@ -1153,22 +1153,10 @@ sub connect_curlm { my $active_handles = 0; my $idcounter=1;

Bug#533830: uses most of CPU

2009-11-25 Thread Mark Hindley
Hi, I have just come up with another approach that completely removes the alarm() calls and just uses select(). Could you try this. Mark commit 5154023053d20e610879cd0a1ee22a8916cd9747 Author: Mark Hindley Date: Wed Nov 25 15:00:40 2009 + Another approach: Don't use alarm() at all,

Bug#533830: uses most of CPU

2009-11-25 Thread Ben Finney
On 25-Nov-2009, Mark Hindley wrote: > Could you run these perl one-liners from a console and check my > expected results. I'm running these on the same machine where I'm experiencing this bug (a PowerPC64 box running Debian Squeeze). > perl -e'alarm 1;printf "Num: %d\tTime left: %f\n", select und

Bug#533830: uses most of CPU

2009-11-25 Thread Mark Hindley
On Tue, Nov 24, 2009 at 10:21:30PM +1100, Ben Finney wrote: > Thanks for the response. Could you run these perl one-liners from a console and check my expected results. perl -e'alarm 1;printf "Num: %d\tTime left: %f\n", select undef, undef, undef, 3.0' Expect: Alarm clock perl -e'alarm 5;prin

Bug#533830: uses most of CPU

2009-11-25 Thread Mark Hindley
On Tue, Nov 24, 2009 at 10:21:30PM +1100, Ben Finney wrote: > Thanks for the response. > > On 24-Nov-2009, Mark Hindley wrote: > > Can you try the patch at > > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=533830#15 > > > > I have had a report that it fixes this bug. > > The patch is already

Bug#533830: uses most of CPU

2009-11-24 Thread Ben Finney
Thanks for the response. On 24-Nov-2009, Mark Hindley wrote: > Can you try the patch at > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=533830#15 > > I have had a report that it fixes this bug. The patch is already applied AFAICT (my report to this bug specifies ‘apt-cacher’ version 1.6.9),

Bug#533830: uses most of CPU

2009-11-24 Thread Mark Hindley
On Tue, Nov 24, 2009 at 04:33:53PM +1100, Ben Finney wrote: > Package: apt-cacher > Version: 1.6.9 > Severity: normal > > I'm also seeing ???apt-cacher??? processes occupy the entire CPU on which > they run. When I attach ???strace??? to such a process, I see this output > repeated endlessly as fa

Bug#533830: uses most of CPU

2009-11-23 Thread Ben Finney
Package: apt-cacher Version: 1.6.9 Severity: normal I'm also seeing ‘apt-cacher’ processes occupy the entire CPU on which they run. When I attach ‘strace’ to such a process, I see this output repeated endlessly as fast as the console can write: = […] poll([{fd=6, events=POLLIN|POLLPRI}], 1, 0