From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#28784: 'guix publish' leaks memory Date: Wed, 11 Oct 2017 15:22:19 +0200 Message-ID: <87zi8xbz04.fsf@gnu.org> References: <8760bldi1y.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55447) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2GyU-0000YJ-Vp for bug-guix@gnu.org; Wed, 11 Oct 2017 09:23:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e2GyU-0004Ny-1i for bug-guix@gnu.org; Wed, 11 Oct 2017 09:23:03 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:52743) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e2GyT-0004No-U9 for bug-guix@gnu.org; Wed, 11 Oct 2017 09:23:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e2GyT-0005Cu-OS for bug-guix@gnu.org; Wed, 11 Oct 2017 09:23:01 -0400 Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Message-ID: In-Reply-To: <8760bldi1y.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Wed, 11 Oct 2017 13:45:29 +0200") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 28784-done@debbugs.gnu.org ludo@gnu.org (Ludovic Court=C3=A8s) skribis: > On the build farms, memory usage of the =E2=80=98guix publish=E2=80=99 pr= ocess increases > slowly but indefinitely, it seems. This program reproduced the problem: --8<---------------cut here---------------start------------->8--- (use-modules (guix zlib) (ice-9 format) (rnrs io ports)) (define (display-heap-size) (format #t "heap size: ~,2h MiB~%" (/ (assoc-ref (gc-stats) 'heap-size) (expt 2. 20)))) (let loop ((i 0)) (when (zero? (modulo i 1000)) (display-heap-size)) (let ((port (open-file "/dev/null" "w0"))) (call-with-gzip-output-port port (lambda (port) (display (make-string 1000 #\a) port)))) (loop (+ 1 i))) --8<---------------cut here---------------end--------------->8--- This is fixed in 85a2b58987bc32e33e63bea86c1a94496b796ae9. Ludo=E2=80=99.