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
> > > negligible idle state after a while.
> > 
> > Well that is progress at least.
> > 
> > Could you try this patch on top of the last and see if it helps any
> > more?
> 
> 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 ‘htop’) and I haven't put
> any significant stress onto it, but is a good sign. I would encourage
> anyone else experiencing the behaviour reported in this bug report to
> try these patches and report the results.
> 
The changes have no apparent effect for me. aptitude update goes
basically to 100% CPU; while downloading debs, CPU use was also high,
though possibly a bit lower than in the past (the download was too quick
to be sure).

The first patch applied cleanly; the 2nd did not, possibly because of
whitespace differences.  I manually revised the section that was
rejected, so I think I got everything.

emacs chose some odd formatting for the changelog, which looked like
this:
<quote>
apt-cacher (1.6.9rb01) unstable; urgency=low

  * Merge in 2 patches from Mark Hindley to address high CPU use.  They
        appear in Messages 91 and 99 of bug #533830, and are also known as
        apt-cacher.patch3[ab] in Ross's build directories.

 -- Ross Boylan <r...@betterworld.us>  Fri, 27 Nov 2009 18:18:10 -0800
</quote>

The build produced the following errors, include one ("dpkg-gencontrol:
warning: unknown substitution variable ${misc:Depends}") that wasn't
obviously related to the changelog.  After installation I verified that
the new apt-cacher was there.
<quote>
r...@corn:/usr/local/src/tools/apt/apt-cacher-1.6.9rb01$ date; time 
dpkg-buildpackage -b -uc -D
Fri Nov 27 18:21:07 PST 2009
dpkg-buildpackage: set CFLAGS to default value: -g -O2
dpkg-buildpackage: set CPPFLAGS to default value: 
dpkg-buildpackage: set LDFLAGS to default value: 
dpkg-buildpackage: set FFLAGS to default value: -g -O2
dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
parsechangelog/debian: warning:     debian/changelog(l4): unrecognised line
LINE:   appear in Messages 91 and 99 of bug #533830, and are also known as
parsechangelog/debian: warning:     debian/changelog(l5): unrecognised line
LINE:   apt-cacher.patch3[ab] in Ross's build directories.
dpkg-buildpackage: source package apt-cacher
dpkg-buildpackage: source version 1.6.9rb01
dpkg-buildpackage: source changed by Ross Boylan <r...@betterworld.us>
dpkg-buildpackage: host architecture i386
 fakeroot debian/rules clean
dh_testdir
dh_testroot
rm -f build-arch-stamp build-indep-stamp configure-stamp
dh_clean
 debian/rules build
dh_testdir
touch configure-stamp
dh_testdir
touch build-arch-stamp
dh_testdir
touch build-indep-stamp
 fakeroot debian/rules binary
parsechangelog/debian: warning:     debian/changelog(l4): unrecognised line
LINE:   appear in Messages 91 and 99 of bug #533830, and are also known as
parsechangelog/debian: warning:     debian/changelog(l5): unrecognised line
LINE:   apt-cacher.patch3[ab] in Ross's build directories.
dh_testdir
dh_testroot
dh_prep
dh_installdirs usr/sbin
install -m644 apt-cacher.conf debian/apt-cacher/etc/apt-cacher/apt-cacher.conf
install -m644 apache.conf debian/apt-cacher/etc/apt-cacher/apache.conf
install -m755 apt-cacher.pl debian/apt-cacher/usr/share/apt-cacher/apt-cacher.pl
install -m755 apt-cacher2 debian/apt-cacher/usr/share/apt-cacher/apt-cacher
install -m755 apt-proxy-to-apt-cacher debian/apt-cacher/usr/share/apt-cacher/
ln -sf   ../share/apt-cacher/apt-cacher debian/apt-cacher/usr/sbin/apt-cacher 
install -m755 apt-cacher-report.pl 
debian/apt-cacher/usr/share/apt-cacher/apt-cacher-report.pl
install -m755 apt-cacher-cleanup.pl 
debian/apt-cacher/usr/share/apt-cacher/apt-cacher-cleanup.pl
install -m755 apt-cacher-precache.pl 
debian/apt-cacher/usr/share/apt-cacher/apt-cacher-precache.pl
install -m755 apt-cacher-format-transition.pl 
debian/apt-cacher/usr/share/apt-cacher/apt-cacher-format-transition.pl
install -m755 apt-cacher-import.pl 
debian/apt-cacher/usr/share/apt-cacher/apt-cacher-import.pl
install -m755 apt-cacher-lib.pl 
debian/apt-cacher/usr/share/apt-cacher/apt-cacher-lib.pl
install -m755 apt-cacher-lib-cs.pl 
debian/apt-cacher/usr/share/apt-cacher/apt-cacher-lib-cs.pl
install -m755 apt-cacher.cron.daily debian/apt-cacher/etc/cron.daily/apt-cacher
install -m755 install.pl debian/apt-cacher/usr/share/apt-cacher/install.pl
install -m755 remove.pl debian/apt-cacher/usr/share/apt-cacher/remove.pl
install -m755 upgrade.pl debian/apt-cacher/usr/share/apt-cacher/upgrade.pl
perl -pe 's/^my \$version=.*/my \$version="'1.6.9rb01'";/' -i 
/usr/local/src/tools/apt/apt-cacher-1.6.9rb01/debian/apt-cacher/usr/share/apt-cacher/*
dh_testdir -i
dh_testroot -i
dh_installdocs -i
dh_installexamples -i
dh_installmenu -i
dh_installlogrotate -i
dh_installinit -i
dh_installcron -i
dh_installman -i debian/apt-cacher.1
dh_installinfo -i
dh_installchangelogs  -i
parsechangelog/debian: warning:     debian/changelog(l4): unrecognised line
LINE:   appear in Messages 91 and 99 of bug #533830, and are also known as
parsechangelog/debian: warning:     debian/changelog(l5): unrecognised line
LINE:   apt-cacher.patch3[ab] in Ross's build directories.
dh_link -i /usr/share/apt-cacher/apt-cacher.pl /usr/lib/cgi-bin/apt-cacher
dh_compress -i
dh_fixperms -i
dh_installdeb -i
dh_perl -i
dh_gencontrol -i
parsechangelog/debian: warning:     debian/changelog(l4): unrecognised line
LINE:   appear in Messages 91 and 99 of bug #533830, and are also known as
parsechangelog/debian: warning:     debian/changelog(l5): unrecognised line
LINE:   apt-cacher.patch3[ab] in Ross's build directories.
dpkg-gencontrol: warning: unknown information field 'Error' in input data in 
parsed version of changelog
dpkg-gencontrol: warning: unknown substitution variable ${misc:Depends}
dh_md5sums -i
dh_builddeb -i
dpkg-deb: building package `apt-cacher' in `../apt-cacher_1.6.9rb01_all.deb'.
 dpkg-genchanges -b >../apt-cacher_1.6.9rb01_i386.changes
parsechangelog/debian: warning:     debian/changelog(l4): unrecognised line
LINE:   appear in Messages 91 and 99 of bug #533830, and are also known as
parsechangelog/debian: warning:     debian/changelog(l5): unrecognised line
LINE:   apt-cacher.patch3[ab] in Ross's build directories.
parsechangelog/debian: warning:     debian/changelog(l4): unrecognised line
LINE:   appear in Messages 91 and 99 of bug #533830, and are also known as
parsechangelog/debian: warning:     debian/changelog(l5): unrecognised line
LINE:   apt-cacher.patch3[ab] in Ross's build directories.
dpkg-genchanges: warning: unknown information field 'Error' in input data in 
parsed version of changelog
dpkg-genchanges: binary-only upload - not including any source code
dpkg-buildpackage: binary only upload (no source included)
</quote>




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to