oom01: Out Of Memory (OOM)
Add a new test - Out Of Memory (OOM)
The program is designed to cope with unpredictable like amount and system physical memory, swap size and other VMM technology like KSM, memcg, memory hotplug and so on which may affect the OOM behaviours. It simply increase the memory consumption 3G each time until all the available memory is consumed and OOM is triggered.
--- runtest/mm | 2 + testcases/kernel/mem/oom/Makefile | 22 +++++ testcases/kernel/mem/oom/oom01.c | 169 +++++++++++++++++++++++++++++++++++++ 3 files changed, 193 insertions(+), 0 deletions(-) create mode 100644 testcases/kernel/mem/oom/Makefile create mode 100644 testcases/kernel/mem/oom/oom01.c
runtest/mm +2 -0
@@ -72,3 +72,5 @@ mmap10_4 mmap10 -a -s -c 60 ksm01 ksm01 cpuset01 cpuset01 -I 3600 + +oom01 oom01
testcases/kernel/mem/oom/Makefile new file +22 -0
@@ -0,0 +1,22 @@ +# +# Copyright (C) 2010 Red Hat, Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See +# the GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# + +top_srcdir ?= ../../../.. + +include $(top_srcdir)/include/mk/testcases.mk +include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/kernel/mem/oom/oom01.c new file +169 -0
169 lines not on this page · raw message
Signature · 1 line
1.7.3.2
The program is designed to cope with unpredictable like amount and system physical memory, swap size and other VMM technology like KSM, memcg, memory hotplug and so on which may affect the OOM behaviours. It simply increase the memory consumption 3G each time until all the available memory is consumed and OOM is triggered.
--- runtest/mm | 2 + testcases/kernel/mem/oom/Makefile | 22 +++++ testcases/kernel/mem/oom/oom01.c | 169 +++++++++++++++++++++++++++++++++++++ 3 files changed, 193 insertions(+), 0 deletions(-) create mode 100644 testcases/kernel/mem/oom/Makefile create mode 100644 testcases/kernel/mem/oom/oom01.c
runtest/mm +2 -0
@@ -72,3 +72,5 @@ mmap10_4 mmap10 -a -s -c 60 ksm01 ksm01 cpuset01 cpuset01 -I 3600 + +oom01 oom01
testcases/kernel/mem/oom/Makefile new file +22 -0
@@ -0,0 +1,22 @@ +# +# Copyright (C) 2010 Red Hat, Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See +# the GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# + +top_srcdir ?= ../../../.. + +include $(top_srcdir)/include/mk/testcases.mk +include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/kernel/mem/oom/oom01.c new file +169 -0
169 lines not on this page · raw message
Signature · 1 line
1.7.3.2
------------------------------------------------------------------------------
This SF Dev2Dev email is sponsored by:
WikiLeaks The End of the Free Internet
http://p.sf.net/sfu/therealnews-com
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list