← projects

Memory Filler Killer

Memory fullness and filler checker.

source ↗

In this project a program checks for available memory. If available memory gets lower than the given value, program tries to find the memory filler. When the memory filler is found by the program, it will be killed to keep operating system alive.

Why I did this?

Linux normally has this kind of feature. If it lacks memory to keep the OS alive, the program that uses most of the memory is killed by the kernel. Problem is it's not working well. I don't know why but I got in a situation like a program consumes all of my memory by some kind of leak but kernel couldn't do anything and my system crashed. I wanted to solve this problem, now I use my program as a service for my own system to prevent myself from being in the same situation.

What I learned?

Interacting with operating system and processes for reading data and sending signals.