git: 9front

Download patch

ref: 2340934c297b45ff47afc617a083c05759ed5931
parent: 4b4b226ee348c8f1268d6054a8f9662cd45cc042
author: Noam Preil <noam@pixelhero.dev>
date: Sun Jun 20 23:49:42 EDT 2021

venti: inform user when reducing memory consumption

--- a/sys/src/cmd/venti/srv/venti.c
+++ b/sys/src/cmd/venti/srv/venti.c
@@ -97,8 +97,10 @@
 		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;
--