Hacker News new | ask | show | jobs
by yjftsjthsd-h 11 days ago
Maybe not in kernel, but running the earlyoom daemon will let you do exactly that in userspace.