Is there a way in linux to send a signal or otherwise install an handler to be called when a process surpasses a given rate of hard page faults per second?
A simple sigstop would avoid many accidental crashes I had (swap death), but I imagine there may be false positives if, say, the process uses memory mapped files.