diff options
author | Noam Preil <noam@pixelhero.dev> | 2021-06-21 03:49:42 +0000 |
---|---|---|
committer | Noam Preil <noam@pixelhero.dev> | 2021-06-21 03:49:42 +0000 |
commit | a22697039dfb531634f084e28517e60c766fa9dd (patch) | |
tree | 9a0b3a89a5f15f69e2522f91d28cc91e4012d656 | |
parent | 7ec82078836f837fd0f3a2508a64f2389c305188 (diff) | |
download | plan9front-a22697039dfb531634f084e28517e60c766fa9dd.tar.xz |
venti: inform user when reducing memory consumption
-rwxr-xr-x[-rw-r--r--] | sys/src/cmd/venti/srv/venti.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/src/cmd/venti/srv/venti.c b/sys/src/cmd/venti/srv/venti.c index 1cf67a1c4..6b02efa6f 100644..100755 --- a/sys/src/cmd/venti/srv/venti.c +++ b/sys/src/cmd/venti/srv/venti.c @@ -97,8 +97,10 @@ allocbypcnt(u32int mempcnt, u32int stfree) fprint(2, "%s: bloom filter bigger than mem pcnt; " "resorting to minimum values (9MB total)\n", argv0); else { - if (avail >= 3840UL * 1024 * 1024) + if (avail >= 3840UL * 1024 * 1024){ avail = 3840UL * 1024 * 1024; /* sanity */ + fprint(2, "%s: restricting memory usage to 3840MiB\n", argv0); + } avail /= 2; all.icmem = avail; avail /= 3; |