From 5dfa2823a0ee23303c9e1dd7e38833e3e6e01396 Mon Sep 17 00:00:00 2001 From: Manuel Traut Date: Wed, 9 Jan 2019 17:18:55 +0100 Subject: add a malloc example it demonstrates that memory is only allocated if used. Signed-off-by: Manuel Traut --- schulung_tools/malloc/README | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 schulung_tools/malloc/README (limited to 'schulung_tools/malloc/README') diff --git a/schulung_tools/malloc/README b/schulung_tools/malloc/README new file mode 100644 index 0000000..77b18cd --- /dev/null +++ b/schulung_tools/malloc/README @@ -0,0 +1,5 @@ +This program demonstrates that a processes is not actually assigned memory +until it page-faults on the pages. + +WARNING: This program might fill your RAM and cause the Linux OOM Killer to + be invoked. -- cgit v1.2.3