hydra/src/hydra-queue-runner
Eelco Dolstra b4d32a3085
hydra-queue-runner: More accurate memory accounting
We now take into account the memory necessary for compressing the NAR
being exported to the binary cache, plus xz compression overhead.

Also, we now release the memory tokens for the NAR accessor *after*
releasing the NAR accessor. Previously the memory for the NAR accessor
might still be in use while another thread does an allocation, causing
the maximum to be exceeded temporarily.

Also, use notify_all instead of notify_one to wake up memory token
waiters. This is not very nice, but not every waiter is requesting the
same number of tokens, so some might be able to proceed.
2016-11-16 17:48:50 +01:00
..
build-remote.cc hydra-queue-runner: More accurate memory accounting 2016-11-16 17:48:50 +01:00
build-result.cc Use std::regex 2016-10-21 18:06:26 +02:00
build-result.hh Support hydra-build-products on binary cache stores 2016-02-26 14:45:03 +01:00
builder.cc hydra-queue-runner: More accurate memory accounting 2016-11-16 17:48:50 +01:00
counter.hh Warn if PostgreSQL appears stalled 2016-02-29 15:10:30 +01:00
dispatcher.cc hydra-queue-runner: Handle exceptions in the dispatcher thread 2016-11-08 11:25:43 +01:00
hydra-queue-runner.cc Bump Nix 2016-11-09 19:15:13 +01:00
Makefile.am Concurrent hydra-evaluator 2016-10-14 14:22:12 +02:00
queue-monitor.cc Step cancellation: Don't use pthread_cancel() 2016-11-07 19:38:24 +01:00
state.hh hydra-queue-runner: More accurate memory accounting 2016-11-16 17:48:50 +01:00
token-server.hh hydra-queue-runner: More accurate memory accounting 2016-11-16 17:48:50 +01:00