public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH] Set tunable value of min_free_kbytes lower
@ 2012-08-23  6:43 shuang.qiu
  2012-08-23  8:59 ` Zhouping Liu
  2012-08-24  8:11 ` Zhouping Liu
  0 siblings, 2 replies; 16+ messages in thread
From: shuang.qiu @ 2012-08-23  6:43 UTC (permalink / raw)
  To: ltp-list

From: Shuang Qiu <shuang.qiu@oracle.com>

The value of min_free_kbytes is set too high(half of mem_free) during
testing min_free_kbytes tunable.It often cause the system to become
out-of-memory.Using 20% of mem_free to avoid oom and system hang.
---
 testcases/kernel/mem/tunable/min_free_kbytes.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/testcases/kernel/mem/tunable/min_free_kbytes.c b/testcases/kernel/mem/tunable/min_free_kbytes.c
index 00ead04..8a03f85 100644
--- a/testcases/kernel/mem/tunable/min_free_kbytes.c
+++ b/testcases/kernel/mem/tunable/min_free_kbytes.c
@@ -128,7 +128,7 @@ static void test_tune(unsigned long overcommit_policy)
 		/* case2 */
 		else {
 			memfree = read_meminfo("MemFree:");
-			tune = memfree / 2;
+			tune = memfree / 5;
 			set_sys_tune("min_free_kbytes", tune, 1);
 		}
 
-- 
1.7.7


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2012-08-30  2:53 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-23  6:43 [LTP] [PATCH] Set tunable value of min_free_kbytes lower shuang.qiu
2012-08-23  8:59 ` Zhouping Liu
2012-08-23  9:00   ` Wanlong Gao
2012-08-24  8:11 ` Zhouping Liu
2012-08-24 10:18   ` Shuang Qiu
2012-08-24 13:48     ` Zhouping Liu
2012-08-27  3:03       ` Shuang Qiu
2012-08-27  5:01         ` Zhouping Liu
2012-08-27  5:16   ` Zhouping Liu
2012-08-28  3:11     ` Shuang Qiu
2012-08-28 12:51       ` ZhouPing Liu
2012-08-29  8:08         ` Shuang Qiu
2012-08-29  8:29         ` Wanlong Gao
2012-08-29  8:56           ` Zhouping Liu
2012-08-29 14:03     ` Zhouping Liu
2012-08-30  2:53       ` Shuang Qiu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox