summaryrefslogtreecommitdiff
path: root/vm
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2022-12-22 21:20:17 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-12-22 21:20:17 +0100
commit06cc7bf916cd562bf23b3929ca607f66a20850f0 (patch)
tree1f1e832b43e0183dbb31974b93b28b2f61f79df7 /vm
parent448889a4f0c32ba8ea61f870d4edcb0e0d58af85 (diff)
Warn only once about not being able to recycle pages
Diffstat (limited to 'vm')
-rw-r--r--vm/vm_page.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/vm/vm_page.c b/vm/vm_page.c
index 87185c15..707be4bb 100644
--- a/vm/vm_page.c
+++ b/vm/vm_page.c
@@ -2040,7 +2040,15 @@ again:
* TODO Find out what could cause this and how to deal with it.
* This will likely require an out-of-memory killer.
*/
- printf("vm_page warning: unable to recycle any page");
+
+ {
+ static boolean_t warned = FALSE;
+
+ if (!warned) {
+ printf("vm_page warning: unable to recycle any page\n");
+ warned = 1;
+ }
+ }
}
simple_unlock(&vm_page_queue_free_lock);