Hi,
I would like to create Python code to monitor the amount of free memory or swap space. Is there any way to do this?
Thanks
Mick
Hi,
I would like to create Python code to monitor the amount of free memory or swap space. Is there any way to do this?
Thanks
Mick
Define "monitor".
Look at the code of other programs. They sure must be using an API.
I know not with what weapons World War III will be fought, but World War IV will be fought with sticks and stones.
Freedom is measured in Stallmans.
Projects: gEcrit
Brilliant! Just what I wanted.Read the pseudo-file /proc/meminfo
The background is that I had an unfortunate incident with a server recently when it ran out of swap space. I am looking for a way to send me an email before things get that bad.
Thanks for your help
Mick
Bookmarks