My many pardons as this should be a common question, but my Google-fu is failing me entirely today.
I have OpenSUSE 13.1 64-bit installed on a machine with 8GB of RAM and no swap file or partition. When I run out of memory, I want the next memory request to fail and the program that requested it to segfault. (Yes, I know this can lead to data loss.)
Currently, when the memory usage gets to 100%, the computer starts thrashing (HDD light is solid-on and the computer is non-responsive, except for a jerky mouse pointer). This forces me to use the reset button and I lose everything I was working on. It appears that there is still some sort of swap memory that the system is accessing.
How can I prevent any sort of swap/thrashing behavior?
MemTotal: 8135200 kB MemFree: 4167204 kB Buffers: 73528 kB Cached: 562188 kB SwapCached: 0 kB Active: 1144316 kB Inactive: 491956 kB Active(anon): 1002268 kB Inactive(anon): 30856 kB Active(file): 142048 kB Inactive(file): 461100 kB Unevictable: 0 kB Mlocked: 0 kB SwapTotal: 0 kB SwapFree: 0 kB Dirty: 172 kB Writeback: 0 kB AnonPages: 1000712 kB Mapped: 2346612 kB Shmem: 32576 kB Slab: 85388 kB SReclaimable: 33192 kB SUnreclaim: 52196 kB KernelStack: 2960 kB PageTables: 27084 kB NFS_Unstable: 0 kB Bounce: 0 kB WritebackTmp: 0 kB CommitLimit: 4067600 kB Committed_AS: 5622968 kB VmallocTotal: 34359738367 kB VmallocUsed: 329656 kB VmallocChunk: 34359405976 kB HardwareCorrupted: 0 kB AnonHugePages: 104448 kB HugePages_Total: 0 HugePages_Free: 0 HugePages_Rsvd: 0 HugePages_Surp: 0 Hugepagesize: 2048 kB DirectMap4k: 117412 kB DirectMap2M: 2971648 kB DirectMap1G: 5242880 kB