diff options
author | Stefan Kempf <stefan@cvs.openbsd.org> | 2016-05-08 11:52:33 +0000 |
---|---|---|
committer | Stefan Kempf <stefan@cvs.openbsd.org> | 2016-05-08 11:52:33 +0000 |
commit | 52fab67a4900333d713a6af3d9db82566134584a (patch) | |
tree | d9726e4e1c585cd111aa626151b3d71895d60027 /sys/uvm/uvmexp.h | |
parent | edababb17ba471dad42fd836db16c3eeb4a97336 (diff) |
Wait for RAM in uvm_fault when allocating uvm structures fails
Only fail hard when running out of swap space also, as suggested by
kettenis@
While there, let amap_add() return a success status and handle
amap_add() errors in uvm_fault() similar to other out of RAM situations.
These bits are needed for further amap reorganization diffs.
lots of feedback and ok kettenis@
Diffstat (limited to 'sys/uvm/uvmexp.h')
-rw-r--r-- | sys/uvm/uvmexp.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/uvm/uvmexp.h b/sys/uvm/uvmexp.h index cae4458d756..63fe6b077c6 100644 --- a/sys/uvm/uvmexp.h +++ b/sys/uvm/uvmexp.h @@ -1,4 +1,4 @@ -/* $OpenBSD: uvmexp.h,v 1.1 2014/07/08 17:19:26 deraadt Exp $ */ +/* $OpenBSD: uvmexp.h,v 1.2 2016/05/08 11:52:32 stefan Exp $ */ #ifndef _UVM_UVMEXP_ #define _UVM_UVMEXP_ @@ -107,6 +107,7 @@ struct uvmexp { /* fault subcounters */ int fltnoram; /* number of times fault was out of ram */ int fltnoanon; /* number of times fault was out of anons */ + int fltnoamap; /* number of times fault was out of amap chunks */ int fltpgwait; /* number of times fault had to wait on a page */ int fltpgrele; /* number of times fault found a released page */ int fltrelck; /* number of times fault relock called */ |