Skip to content
Snippets Groups Projects
Commit ffc8e1d3 authored by Tails developers's avatar Tails developers
Browse files

Make parallel sdmem faster.

We avoid running too many parallel instances (which adds overhead) by
only running one instance per 2048 MiB of RAM (which is below the x86
per-process limitation). This also seems to play better with
VirtualBox, which often hangs when running too many sdmem in parallel.

Furthermore we kill all sdmem instances as soon as one of them has
been oom killed; after all, that implies that the memory has been
completely filled, so we're done. If we don't kill the others they may
continue running unecessarily, filling the freed memory of the killed
instance, and so on.

Another consequence of this is cleaner output so that the debug
message (that memory dumping can ensue) will be easier to spot when
running with boot option debug=wipemem. That will be a helpful cue
for the automated test suite.
parent ca7f1127
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment