From: "Ludovic Courtès" <ludo@gnu.org>
To: 69596@debbugs.gnu.org
Subject: bug#69596: ‘guix publish’ memory leak
Date: Mon, 29 Apr 2024 00:03:48 +0200 [thread overview]
Message-ID: <87le4xgn5n.fsf@gnu.org> (raw)
In-Reply-To: <87zfvb6nwi.fsf@inria.fr> ("Ludovic Courtès"'s message of "Wed, 06 Mar 2024 22:39:09 +0100")
Hi!
Ludovic Courtès <ludo@gnu.org> skribis:
> It seems that ‘guix publish’ has been leaking memory noticeably I’d say
> since the beginning of the year on berlin. After roughly 10 days, it
> has several GiB resident and needs to be restarted or it becomes too
> unresponsive.
>
> I wonder what could be causing this because we used to let it run for
> months without problems I believe.
>
> This is what’s currently running on berlin:
>
> /gnu/store/cpnshv80n3mar5lwp4qqa2dxxxv4zb03-guix-1.4.0-16.aeb4943/libexec/guix/guile \
> /gnu/store/cpnshv80n3mar5lwp4qqa2dxxxv4zb03-guix-1.4.0-16.aeb4943/bin/guix \
> publish -u guix-publish -p 3000 -C lzip:9 -C zstd:19 --nar-path=nar \
> --listen=localhost --workers=8 --ttl=15552000s \
> --cache=/var/cache/guix/publish --cache-bypass-threshold=157286400
>
> … coming from commit 21e4d6cd6913eca131f2c0fd0cd509fc843c7eb8.
It turned out to be a guile-lzlib leak that had always been present:
https://notabug.org/guile-lzlib/guile-lzlib/commit/74bd35b690801a10ed775d486fffc7372b1b341c
The reason we were seeing it more on berlin is probably because we
increased the cache-bypass-threshold, which goes through the
‘make-lzip-output-port’ code path (as opposed to
‘call-with-lzip-output-port’).
The bug could be reproduced with:
guix publish -p 8124 … &
while true ; do wget -q -O/dev/full http://localhost:8124/nar/lzip/…-coreutils-9.1 ; done
(Replace the ellipses with the actual store file name of coreutils.)
Fixed by commit 7cef6b7ba555a9dfaf6d09cb7e112b0df77d5141, which updates
guile-lzlib.
Ludo’.
next prev parent reply other threads:[~2024-04-28 22:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-06 21:39 bug#69596: ‘guix publish’ memory leak Ludovic Courtès
2024-04-28 22:03 ` Ludovic Courtès [this message]
2024-04-30 8:38 ` bug#69596: Possibly breaks Guix pull on foreign distros Jonathan Roberts via Bug reports for GNU Guix
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87le4xgn5n.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=69596@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.