From ae3c52f71438ff1997d07f97a4fdf4d675f7e562 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 5 Oct 2006 01:25:38 +0000 Subject: [PATCH] When out of memory+swap, just panic the kernel. --- doc/vm.texi | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/doc/vm.texi b/doc/vm.texi index 2376aa1..cf4f764 100644 --- a/doc/vm.texi +++ b/doc/vm.texi @@ -313,10 +313,12 @@ implementation, be sure to retain the distinction between the two pools. The most important operation on the frame table is obtaining an unused frame. This is easy when a frame is free. When none is free, a frame -must be made free by evicting some page from its frame. If no frame can -be evicted without allocating a swap slot, but swap is full, some -process must be killed to free memory (the choice of process to kill is -up to you). +must be made free by evicting some page from its frame. + +If no frame can be evicted without allocating a swap slot, but swap is +full, panic the kernel. Real OSes apply a wide range of policies to +recover from or prevent such situations, but these policies are beyond +the scope of this project. The process of eviction comprises roughly the following steps: -- 2.30.2