Your message dated Sun, 22 Nov 2009 12:26:49 +0100
with message-id <[email protected]>
and subject line Re: Bug#529744: Seems to be leaking file descriptors, leads to 
100% CPU usage
has caused the Debian Bug report #529744,
regarding Seems to be leaking file descriptors, leads to 100% CPU usage
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 [email protected]
immediately.)


-- 
529744: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=529744
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: apt-cacher-ng
Version: 0.3.11-1
Severity: normal

Hi,

I noticed that apt-cacher-ng's CPU usage goes to 100% and stays there after
a few days of running. stracing it revealed the following:

select(7, [6], [], NULL, NULL)          = 1 (in [6])
accept(6, 0x7fff3bdad5a0, [171252509438902400]) = -1 EMFILE (Too many open 
files)
select(7, [6], [], NULL, NULL)          = 1 (in [6])
accept(6, 0x7fff3bdad5a0, [171252509438902400]) = -1 EMFILE (Too many open 
files)
select(7, [6], [], NULL, NULL)          = 1 (in [6])
accept(6, 0x7fff3bdad5a0, [171252509438902400]) = -1 EMFILE (Too many open 
files)
select(7, [6], [], NULL, NULL)          = 1 (in [6])
accept(6, 0x7fff3bdad5a0, [171252509438902400]) = -1 EMFILE (Too many open 
files)

... and so on.

It had 1024 files open, 676 of which were pipes, 343 were sockets, and the
rest was this:

lr-x------ 1 apt-cacher-ng apt-cacher-ng 64 May 21 11:06 0 -> /dev/null
l-wx------ 1 apt-cacher-ng apt-cacher-ng 64 May 21 11:06 123 -> 
/var/cache/apt-cacher-ng/debrep/dists/sid/main/source/Sources.diff/_actmp/tmp 
(deleted)
lr-x------ 1 apt-cacher-ng apt-cacher-ng 64 May 21 11:06 3 -> 
/var/lib/vservers/aptproxy-bud
l-wx------ 1 apt-cacher-ng apt-cacher-ng 64 May 21 11:06 4 -> 
/var/log/apt-cacher-ng/apt-cacher.err
l-wx------ 1 apt-cacher-ng apt-cacher-ng 64 May 21 11:06 5 -> 
/var/log/apt-cacher-ng/apt-cacher.log

The last lines of the errorlog were:

Tue May 19 17:16:48 2009|Not creating Unix Domain Socket, fifo_path not 
specified
Tue May 19 17:18:25 2009|Not creating Unix Domain Socket, fifo_path not 
specified
Wed May 20 10:15:03 
2009|/var/cache/apt-cacher-ng/debrep/dists/unstable/Release.gpg storage error 
[503 Inconsistent file state]: File exists
Wed May 20 11:24:34 2009|Error creating pipe file descriptors
Wed May 20 11:25:34 2009|Error creating pipe file descriptors
Wed May 20 11:26:34 2009|Error creating pipe file descriptors
Wed May 20 11:27:34 2009|Error creating pipe file descriptors
Wed May 20 11:28:34 2009|Error creating pipe file descriptors

I'm running acng under runit, launching it with the following command line:

exec chpst -u apt-cacher-ng apt-cacher-ng -c /etc/apt-cacher-ng ForeGround=1

My acng.conf reads as follows:

CacheDir: /var/cache/apt-cacher-ng
LogDir: /var/log/apt-cacher-ng
Port:4128
Remap-debrep: file:deb_mirror*.gz /debian ; http://ftp.hu.debian.org/debian/ 
http://ftp.at.debian.org/debian/ http://ftp.kfki.hu/linux/debian/ 
http://ftp.externet.hu/debian/
Remap-uburep: file:ubuntu_mirrors /ubuntu ; 
http://hu.archive.ubuntu.com/ubuntu/ http://at.archive.ubuntu.com/ubuntu/ 
http://ftp.kfki.hu/linux/ubuntu/
Remap-debsec: /security.debian.org/debian-security /debian-security ; 
http://ftp2.de.debian.org/debian-security/ 
http://security.debian.org/debian-security/ 
Remap-debbackports: /backports.org/debian/ /debian-backports ; 
http://backports.org/debian/
Remap-debpeople: /people.debian.org/ /debian-people ; http://people.debian.org/
Remap-debmultimedia: /debian-multimedia file:marillat_mirrors ; 
file:marillat_mirrors
Remap-skype: /download.skype.com/linux/repos/debian /skype ; 
http://download.skype.com/linux/repos/debian/
Remap-opera: /deb.opera.com/opera /opera ; http://deb.opera.com/opera/
Remap-volatile: /volatile.debian.org/debian-volatile/ 
/ftp2.de.debian.org/debian-volatile/ /debian-volatile ; 
http://volatile.debian.org/debian-volatile/ 
http://ftp2.de.debian.org/debian-volatile/
Remap-debsnap: /snapshot.debian.net /debian-snapshot ; 
http://snapshot.debian.net/
Remap-canonical: /archive.canonical.com/ubuntu /canonical ; 
http://archive.canonical.com/ubuntu/
Remap-grml: http://deb.grml.org/ /grml ; http://deb.grml.org/
Remap-igraph: http://cneurocvs.rmki.kfki.hu/ /igraph ; 
http://cneurocvs.rmki.kfki.hu/
Remap-inno: http://inno.bme.hu/debian/ /inno ; http://inno.bme.hu/debian/
Remap-debunofficial: http://ftp.debian-unofficial.org/debian/ 
/debian-unofficial ; http://ftp.debian-unofficial.org/debian/
Remap-backports: http://www.backports.org/debian /backports ; 
http://www.backports.org/debian/
Remap-gosa: http://oss.gonicus.de/debian /gosa ; http://oss.gonicus.de/debian/
Remap-virtualbox: http://download.virtualbox.org/virtualbox/debian /virtualbox 
/vbox ; http://download.virtualbox.org/virtualbox/debian
Remap-av: http://debian.av.hu/ /av ; http://debian.av.hu/
ReportPage: acng-report.html
ForeGround: 0
ExTreshold: 5
LogSubmittedOrigin: 1

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.29-vs2.3.0.36.9-pre4-stallion (SMP w/3 CPU cores)

Best regards,

Andras

-- 
                 Andras Korn <korn at chardonnay.math.bme.hu>
                 <http://chardonnay.math.bme.hu/~korn/> QOTD:
                          Black holes really suck...



--- End Message ---
--- Begin Message ---
Version: 0.3.12-2


--- End Message ---

Reply via email to