This page presents a memory-consuming program to observe how the Linux system behaves when the memory is running out. The program comprises an EPICS sequencer (.stt & .dbd), which is supposed to be built as a standalone program, and a record to hold the number of bytes. The sequencer allocates additoinal memory when the number in VAL of the record exceeds the number of bytes which had been allocacted so far. The program never releases allocated memory even when the number in the record is reduced. Note that the program writes in the memory newly allocated to force the Linux kernel to really allocate physical memory pages. Otherwise, the Linux kernel postpone it because of the copy-on-write policy.

.stt file : sncMalloc.stt
.dbd file : sncMalloc.dbd
.db file : memory.db