diff options
author | 2014-09-26 09:25:38 +0000 | |
---|---|---|
committer | 2014-09-26 09:25:38 +0000 | |
commit | b0c80555f551fcf34f655ea27b051ee100c8a70e (patch) | |
tree | cb84a735eb0a7e25e6a364c4f53dda85dab91175 /regress/lib/libc | |
parent | now that mp setperf is fixed, let's try aggressive throttling again. (diff) | |
download | wireguard-openbsd-b0c80555f551fcf34f655ea27b051ee100c8a70e.tar.xz wireguard-openbsd-b0c80555f551fcf34f655ea27b051ee100c8a70e.zip |
Rework piglet and pig allocation. Currently the piglet gets allocated
deep down in the suspend path, where it is really hard to recover from
allocation failure. So allocate the piglet early on in the suspend path.
Also change the piglet and piglet allocation functions to use km_alloc(9)
instead of doing pmemrange magic. This removes a bunch of code which, in the
case of the piglet allocation, is broken since it results in a NULL pointer
dereference. Also switch the piglet allocation to not wait. If we can't
allocate 16MB of phys contig memory on a halfway modern machine we're almost
certainly under a lot of memory pressure and we're better off not trying to
hibernate anyway.
ok mlarkin@
Diffstat (limited to 'regress/lib/libc')
0 files changed, 0 insertions, 0 deletions