!zghijEASpYQWYFzriI:nixos.org

Hydra

386 Members
110 Servers

Load older messages


SenderMessageTime
10 Aug 2022
@andreas.schraegle:helsinki-systems.deajs124 * but it substitutes from multiple different caches just fine, for one closure18:33:02
@grahamc:nixos.org@grahamc:nixos.orgI mean, maybe it does actually do that in reality, but the invariant / expectation is still there18:33:27
@andreas.schraegle:helsinki-systems.deajs124good to know 😬18:33:43
@amanda:camnet.siteAmanda (she/her)Hum, that may actually prove useful, since my local cache's growing pretty big. 1.1TiB now19:02:59
@amanda:camnet.siteAmanda (she/her)So I can just nuke the directory without worrying about dangling references19:03:14
@amanda:camnet.siteAmanda (she/her)( I assume )19:03:20
@amanda:camnet.siteAmanda (she/her)Unless there's another way to prune it, last I heard there's no such tools for that publically19:03:50
@andreas.schraegle:helsinki-systems.deajs124I think I saw one in a gist somewhere, for s3 caches19:07:45
@andreas.schraegle:helsinki-systems.deajs124https://gist.github.com/DarkKirb/533e9e8b9b6dd1badf9b103b4285dc4e19:08:06
@amanda:camnet.siteAmanda (she/her)interesting19:09:48
@andreas.schraegle:helsinki-systems.deajs124I also hacked one up, but it's very dumb and just works on a directory of narinfo and nar files by basically doing LRU. Doesn't even try to parse any dependencies or anything rn.19:10:50
@a-kenji:matrix.orgkenji joined the room.19:47:30
14 Aug 2022
@rimuru:gentoo.chat@rimuru:gentoo.chat changed their profile picture.09:36:44
@linus:schreibt.jetzt@linus:schreibt.jetztI wrote https://github.com/lheckemann/cache-gc which operates on a flat-file binary cache and removes things based on mtime (and keeps dependencies of "live" things even if they're older)10:56:57
@linus:schreibt.jetzt@linus:schreibt.jetzt ajs124: how do you get LRU info? 10:57:16
@linus:schreibt.jetzt@linus:schreibt.jetztaccess logs?10:59:44
@janne.hess:helsinki-systems.dedas_j
In reply to @linus:schreibt.jetzt
ajs124: how do you get LRU info?
Atime iirc
11:00:28
@linus:schreibt.jetzt@linus:schreibt.jetztaah ok11:00:38
@linus:schreibt.jetzt@linus:schreibt.jetztI disable that everywhere 😅11:00:52
@linus:schreibt.jetzt@linus:schreibt.jetztyou could use mine with a one-byte change to preserve the dependency invariant :p11:02:12
@janne.hess:helsinki-systems.dedas_jYeah we explicitly enabled it on that Filesystem 11:02:16
@janne.hess:helsinki-systems.dedas_jProbably the only ones with atime in our setup 11:02:27
@linus:schreibt.jetzt@linus:schreibt.jetzt

unrelated, I'm trying to set up a new project in my hydra and getting this from the evaluator:

hydra-eval-jobs returned exit code 1:
Collecting from unknown thread
child process (251757) killed by signal=6
error: unexpected EOF reading a line
11:03:12
@linus:schreibt.jetzt@linus:schreibt.jetztwhat's the most helpful way to get more useful info about what's going wrong?11:03:26
@linus:schreibt.jetzt@linus:schreibt.jetzt(I'm 90% sure this is a nix bug and not my fault, but...)11:03:37
@janne.hess:helsinki-systems.dedas_jYou can maybe check coredumpctl? 11:05:02
@janne.hess:helsinki-systems.dedas_jOr strace the evaluator (good luck with that) 11:05:15
@linus:schreibt.jetzt@linus:schreibt.jetzt

oh joy

#0  0x0000ffffa8a4f8d8 in __pthread_kill_implementation () from /nix/store/6afvzgx3himw7584k9zmfxmqd86b1z7j-glibc-2.34-210/lib/libc.so.6
#1  0x0000ffffa8a0d2b4 in raise () from /nix/store/6afvzgx3himw7584k9zmfxmqd86b1z7j-glibc-2.34-210/lib/libc.so.6
#2  0x0000ffffa89fafd8 in abort () from /nix/store/6afvzgx3himw7584k9zmfxmqd86b1z7j-glibc-2.34-210/lib/libc.so.6
#3  0x0000ffffa937af70 in GC_push_all_stacks () from /nix/store/lih56k3nphxb5jvrwfp29fzazlvpy1bl-boehm-gc-8.0.6/lib/libgc.so.1
#4  0x0000ffffa93766b4 in GC_mark_some () from /nix/store/lih56k3nphxb5jvrwfp29fzazlvpy1bl-boehm-gc-8.0.6/lib/libgc.so.1
#5  0x0000ffffa9376858 in GC_stopped_mark () from /nix/store/lih56k3nphxb5jvrwfp29fzazlvpy1bl-boehm-gc-8.0.6/lib/libgc.so.1
#6  0x0000ffffa9377e2c in GC_try_to_collect_inner () from /nix/store/lih56k3nphxb5jvrwfp29fzazlvpy1bl-boehm-gc-8.0.6/lib/libgc.so.1
#7  0x0000ffffa9378234 in GC_collect_or_expand () from /nix/store/lih56k3nphxb5jvrwfp29fzazlvpy1bl-boehm-gc-8.0.6/lib/libgc.so.1
#8  0x0000ffffa937866c in GC_allocobj () from /nix/store/lih56k3nphxb5jvrwfp29fzazlvpy1bl-boehm-gc-8.0.6/lib/libgc.so.1
#9  0x0000ffffa9378a48 in GC_generic_malloc_inner () from /nix/store/lih56k3nphxb5jvrwfp29fzazlvpy1bl-boehm-gc-8.0.6/lib/libgc.so.1
#10 0x0000ffffa937c658 in GC_generic_malloc () from /nix/store/lih56k3nphxb5jvrwfp29fzazlvpy1bl-boehm-gc-8.0.6/lib/libgc.so.1
#11 0x0000ffffa937ca20 in GC_malloc_kind_global () from /nix/store/lih56k3nphxb5jvrwfp29fzazlvpy1bl-boehm-gc-8.0.6/lib/libgc.so.1
#12 0x0000ffffa969b520 in nix::EvalState::callFunction(nix::Value&, unsigned long, nix::Value**, nix::Value&, nix::Pos const&) () from /nix/store/zzg3ml3vshm9vl7cshdqry5jandavhf8-nix-2.8.1/lib/libnixexpr.so
#13 0x0000ffffa969c3fc in nix::ExprCall::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/zzg3ml3vshm9vl7cshdqry5jandavhf8-nix-2.8.1/lib/libnixexpr.so
#14 0x0000ffffa96a0398 in nix::ExprVar::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/zzg3ml3vshm9vl7cshdqry5jandavhf8-nix-2.8.1/lib/libnixexpr.so
#15 0x0000ffffa969f4c4 in nix::ExprSelect::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/zzg3ml3vshm9vl7cshdqry5jandavhf8-nix-2.8.1/lib/libnixexpr.so
#16 0x0000ffffa96a0398 in nix::ExprVar::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/zzg3ml3vshm9vl7cshdqry5jandavhf8-nix-2.8.1/lib/libnixexpr.so
#17 0x0000ffffa969e06c in nix::ExprAssert::eval(nix::EvalState&, nix::Env&, nix::Value&) () from /nix/store/zzg3ml3vshm9vl7cshdqry5jandavhf8-nix-2.8.1/lib/libnixexpr.so
#18 0x000000000043b0c4 in nix::EvalState::forceValue<nix::EvalState::forceValue(nix::Value&, nix::Pos const&)::{lambda()#1}>(nix::Value&, nix::EvalState::forceValue(nix::Value&, nix::Pos const&)::{lambda()#1}) (this=<optimized out>, v=..., getPos=...)
[... many more stack frames omitted ...]
11:05:45
@linus:schreibt.jetzt@linus:schreibt.jetztIs that more likely to be memory corruption or OOM?11:06:21
@linus:schreibt.jetzt@linus:schreibt.jetztProbably not OOM. Not much pressure, no swap getting used.11:06:55

Show newer messages


Back to Room ListRoom Version: 6