From 5213ab329b30e5d0967d4b37d3a7c29f54364c59 Mon Sep 17 00:00:00 2001 From: chyyuu Date: Mon, 27 Apr 2015 13:56:38 +0800 Subject: [PATCH] Update lab5_X.md --- related_info/labX/lab5_X.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/related_info/labX/lab5_X.md b/related_info/labX/lab5_X.md index 22dc983..7f09198 100644 --- a/related_info/labX/lab5_X.md +++ b/related_info/labX/lab5_X.md @@ -25,3 +25,20 @@ challenge3: 实现用户线程,且内核无法“看到”用户线程(即 =================================================== 状态:未完成 完成人: + + +challenge3: 分析ucore 内存申请与释放,发现潜在的内存泄露现象 +目前ucore lab5_answer中,存在潜在的内存泄露现象,请通过设计一个方法来解决这个问题。 +``` +Lab5内存泄露? +实现完Lab5要求后, +执行make run-forktest,输出 + assertion failed: nr_free_pages_store == nr_free_pages() +Welcome to the kernel debug monitor!! +发现当fork的进程数max_child超过12时,会出现内存泄露。。。 +打印上面两个值,输出如下: +should remain:31861 actually remain:31860 +有1页没有被回收 +``` +状态:未完成 +完成人: