emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#17827: closed ( “Too many open files” error while


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#17827: closed ( “Too many open files” error while substituter is running)
Date: Sat, 21 Jun 2014 15:38:01 +0000

Your message dated Sat, 21 Jun 2014 17:37:26 +0200
with message-id <address@hidden>
and subject line Re: bug#17827: “Too many open files” error while substituter 
is running
has caused the debbugs.gnu.org bug report #17827,
regarding “Too many open files” error while substituter is running
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
17827: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=17827
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: “Too many open files” error while substituter is running Date: Sat, 21 Jun 2014 16:24:05 +0200 User-agent: Gnus/5.130009 (Ma Gnus v0.9) Emacs/24.3 (gnu/linux)
While running the substituter in a disk/VM image built with Guix (on the
metal or on QEMU), I quickly stumble upon EMFILE.  It goes like this:

  1. Run ‘guix build emacs -n’ to warm up /var/guix/substitute-binary;
     this (currently) uses many threads and everything, but doesn’t
     cause any problems.

  2. Run ‘guix build emacs’.  This starts downloading substitutes, via
     ‘guix substitute-binary --substitute’.  It works fine, except that
     running something in parallel like ‘guix package --help’ quickly
     fails with EMFILE (“Too many open files”.)

Looking at /proc/sys/fs/file-nr suggests we’re still way below the
threshold at that point.  Increasing file-max doesn’t make a difference.

Looking at the strace output of the failing ‘guix package --help’ shows
that it does lots of open/close calls, but remains at 10 open files.
Eventually, one of its close(2) calls (!) returns EMFILE, and all the
subsequent open(2) calls fail similarly.

The problem seems to manifest more easily when there’s a lot of RAM,
which made me thing of a Scheme file port leak.

Ludo’.



--- End Message ---
--- Begin Message --- Subject: Re: bug#17827: “Too many open files” error while substituter is running Date: Sat, 21 Jun 2014 17:37:26 +0200 User-agent: Gnus/5.130009 (Ma Gnus v0.9) Emacs/24.3 (gnu/linux)
The problem was that the unionfs process for the root file system would
run out of file descriptors (the default limit is 1024.)

Fixed in commit 9b9148d.

Ludo’.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]