]> Zhao Yanbai Git Server - minix.git/commitdiff
vm: ignore RS pin (pre-allocate) requests for now
authorBen Gras <ben@minix3.org>
Wed, 8 Aug 2012 13:47:45 +0000 (15:47 +0200)
committerBen Gras <ben@minix3.org>
Wed, 8 Aug 2012 13:51:10 +0000 (15:51 +0200)
. done by RS to reduce/remove dependency on VM for recovery
. RS has the default stack size of 64MB since the nosegments
  change, using a huge amount of unused memory to pre-allocate
. ignore these requests until actually required (i.e. being able
  to survive VM crashes)

Thanks to pikpik for investigating why RS was so huge.

servers/vm/rs.c

index e41e80d174a945c42aaf835bf63f31cf0d8cd201..5fef8c4470ec9a5c1938a98608e4efa90a1f07e7 100644 (file)
@@ -180,8 +180,20 @@ int do_rs_memctl(message *m_ptr)
        switch(req)
        {
        case VM_RS_MEM_PIN:
+
+               /* Do not perform VM_RS_MEM_PIN yet - it costs the full
+                * size of the RS stack (64MB by default) in memory,
+                * and it's needed for functionality that isn't complete /
+                * merged in current Minix (surviving VM crashes).
+                */
+
+#if 0
                r = map_pin_memory(vmp);
                return r;
+#else
+               return OK;
+#endif
+
        case VM_RS_MEM_MAKE_VM:
                r = rs_memctl_make_vm_instance(vmp);
                return r;