@@ -1,16 +1,13 @@
// SPDX-License-Identifier: GPL-2.0-or-later
/*
- * 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.
- *
* Copyright (C) 2010-2017 Red Hat, Inc.
* Copyright (c) Linux Test Project, 2011-2023
*/
+/*\
+ * [Description]
+ *
+ * Out Of Memory (OOM) test
+ */
#include <sys/types.h>
#include <sys/stat.h>
@@ -1,16 +1,13 @@
// SPDX-License-Identifier: GPL-2.0-or-later
/*
- * Out Of Memory (OOM) for mempolicy - need NUMA system support
- *
- * 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.
- *
* Copyright (C) 2010-2017 Red Hat, Inc.
* Copyright (c) Linux Test Project, 2011-2023
*/
+/*\
+ * [Description]
+ *
+ * Out Of Memory (OOM) test for mempolicy - need NUMA system support
+ */
#include "config.h"
#include <sys/types.h>
@@ -1,16 +1,13 @@
// SPDX-License-Identifier: GPL-2.0-or-later
/*
- * Out Of Memory (OOM) for Memory Resource Controller
- *
- * 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.
- *
* Copyright (C) 2010-2017 Red Hat, Inc.
* Copyright (c) Linux Test Project, 2011-2023
*/
+/*\
+ * [Description]
+ *
+ * Out Of Memory (OOM) test for Memory Resource Controller
+ */
#include "config.h"
#include <sys/types.h>
@@ -1,16 +1,13 @@
// SPDX-License-Identifier: GPL-2.0-or-later
/*
- * Out Of Memory (OOM) for CPUSET
- *
- * 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.
- *
* Copyright (C) 2010-2017 Red Hat, Inc.
* Copyright (c) Linux Test Project, 2011-2023
*/
+/*\
+ * [Description]
+ *
+ * Out Of Memory (OOM) test for CPUSET
+ */
#include "config.h"
#include <sys/types.h>
@@ -1,16 +1,13 @@
// SPDX-License-Identifier: GPL-2.0-or-later
/*
- * Out Of Memory (OOM) for MEMCG and CPUSET
- *
- * 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.
- *
* Copyright (C) 2013-2017 Red Hat, Inc.
* Copyright (c) Linux Test Project, 2014-2023
*/
+/*\
+ * [Description]
+ *
+ * Out Of Memory (OOM) test for MEMCG and CPUSET
+ */
#include "config.h"
#include <sys/types.h>
Signed-off-by: Petr Vorel <pvorel@suse.cz> --- Hi, I removed the paragraph which was the same for all tests, which is generally good, but IMHO outdated (originates from 0db55077f in 2011, e.g. 3 GB was in lib/oom.h #define LENGTH (3UL<<30), but the file was removed in 4e217a398). Also tests differs, but the text is the same. @Li If you have time, feel free to add more test description and push it with yourself as the author. Kind regards, Petr testcases/kernel/mem/oom/oom01.c | 13 +++++-------- testcases/kernel/mem/oom/oom02.c | 13 +++++-------- testcases/kernel/mem/oom/oom03.c | 13 +++++-------- testcases/kernel/mem/oom/oom04.c | 13 +++++-------- testcases/kernel/mem/oom/oom05.c | 13 +++++-------- 5 files changed, 25 insertions(+), 40 deletions(-)