title: How to get notified before OOM liller killing or memory low on linux?
body: <p>I'd like to get notifications from linux system when my application is using too much memory or system memory is low.I'v done some searching, some solution needs to patch kernel and watch on a file such as /dev/mem-notify.
  Is there a standard system signal send to the application? I'm using GTK2.0, is there a GTK way to resolve this issue?</p>