Just to be a frick'n idiot, why not just have the kernel
issue messages to the kernel log when swap space becomes low,
(configurable via /proc), and have a user-land daemon monitor
for that, and Do The Right Thing(TM)?
Would take a lot of the OOM cruft out of the kernel, and
would alloe pop-up messages, selectable kill-this-app dialogs,
AI systems, whatever.
Just say:
Jan 11, 2000: kernel: VM Warning: Swap space at %90
Jan 11, 2000: kernel: VM Warning: Swap space at %95
Jan 11, 2000: kernel: VM Warning: Swap space at %98
Jan 11, 2000: kernel: VM Fatal: Swap space exhausted!
-- Jason McMullan, Senior Linux Consultant, Linuxcare, Inc. 412.422.8077 tel, 412.656.3519 cell, 415.701.0792 fax jmcmullan@linuxcare.com, http://www.linuxcare.com/ Linuxcare. Support for the revolution.- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Sat Jul 15 2000 - 21:00:16 EST