From: Christopher Baines <mail@cbaines.net>
To: help-guix@gnu.org
Subject: Avoiding the garbage collector for the Guix Data Service
Date: Sat, 18 Jan 2020 09:42:31 +0000 [thread overview]
Message-ID: <87tv4tp0c8.fsf@cbaines.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 774 bytes --]
Hey,
The Guix Data Service has Guix compute lots of derivations, and then it
loads the data in to a database. I'm having some issues with the garbage
collector though, as sometimes it removes data from the disk before I've
had a chance to read it (at least I think this is what's happening, I
think this job failed for this reason [1]).
1: http://data.guix.gnu.org/job/10638
I'm not quite sure what the best strategy is to combat this? I had a
look, and I couldn't see how to acquire a lock to prevent the garbage
collector from running. I thought about registering thousands of gc
roots, but that seems to just move the race a bit, as there's still a
period between generating the derivation and registering the root where
it can be deleted.
Any ideas?
Thanks,
Chris
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 962 bytes --]
next reply other threads:[~2020-01-18 9:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-18 9:42 Christopher Baines [this message]
2020-02-12 14:05 ` Avoiding the garbage collector for the Guix Data Service Ludovic Courtès
2020-02-12 23:54 ` Christopher Baines
2020-02-17 16:10 ` Ludovic Courtès
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=87tv4tp0c8.fsf@cbaines.net \
--to=mail@cbaines.net \
--cc=help-guix@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.