c - Checking for memory usage changes in /proc/pid/statm -
i know /proc pseudo filesystem makes impossible use inotify api.
some parts of /proc can monitored select/poll api (like /proc/mounts). i'm wondering possible monitor /proc/pid/statm in way?
since data found in /proc/pid/statm generated kernel on fly guess select/poll wouldn't work. there other solution available me accomplish want, except reading /proc/pid/statm periodically?
Comments
Post a Comment