Skip to contentSkip to conversation

selftests: vm -- Add rlimit data selftest

RFC In review Cyrill Gorcunov 1 participant 1 message Dec 13, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

RFC 2/2 selftests: vm -- Add rlimit data selftest

Just setup RLIMIT_DATA limit and play with anon memory accounting.

CC Quentin Casasnovas <[email protected]>
CC Vegard Nossum <[email protected]>
CC Linus Torvalds <[email protected]>
CC Willy Tarreau <[email protected]>
CC Andy Lutomirski <[email protected]>
CC Kees Cook <[email protected]>
CC Vladimir Davydov <[email protected]>
CC Konstantin Khlebnikov <[email protected]>
CC Pavel Emelyanov <[email protected]>
CC Vladimir Davydov <[email protected]>
CC Peter Zijlstra <[email protected]>
---
 tools/testing/selftests/vm/Makefile      |    1 
 tools/testing/selftests/vm/rlimit-data.c |  201 +++++++++++++++++++++++++++++++
 tools/testing/selftests/vm/run_vmtests   |    4 
 3 files changed, 204 insertions(+), 2 deletions(-)
tools/testing/selftests/vm/Makefile +1 -0
Index: linux-ml.git/tools/testing/selftests/vm/Makefile
===================================================================
@@ -10,6 +10,7 @@ BINARIES += on-fault-limit
 BINARIES += thuge-gen
 BINARIES += transhuge-stress
 BINARIES += userfaultfd
+BINARIES += rlimit-data
 
 all: $(BINARIES)
 %: %.c
tools/testing/selftests/vm/rlimit-data.c new file +201 -0

201 lines not on this page · raw message

tools/testing/selftests/vm/run_vmtests +2 -2
Index: linux-ml.git/tools/testing/selftests/vm/run_vmtests
===================================================================
@@ -131,9 +131,9 @@ else
 fi
 
 echo "--------------------"
-echo "running mlock2-tests"
+echo "running rlimit-data"
 echo "--------------------"
-./mlock2-tests
+./rlimit-data
 if [ $? -ne 0 ]; then
 	echo "[FAIL]"
 	exitcode=1

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>