Linux - KernelThis forum is for all discussion relating to the Linux kernel.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I've heard the kernel can kill a process that eats-up too much CPU time, and that it's configurable, however I don't see anything in sysctl that sounds similar. Anyone know if this feature exists? That is, I can tell the kernel "anything using more than 5 minutes CPU time, kill it"?
You could write a script to do that but it would be rather dangerous. Some things accumulate time throughout their lifecycle (monitoring tools are notorious for this) and killing them just because they had a lot of CPU time would hardly be reasonable.
You need to understand what is running on your system and determine impact of stopping it (and restarting if necessary). If you have commands that have a lot of CPU time it would be better to understand WHY they do (or accept that they do) than to kill them willy-nilly.
I understand the repercussions of killing processes using various criteria. I was wondering if the kernel was capable of doing this via either a compile-time parameter or at runtime (e.g., via sysctl), similar to various 3rd party tools like NetIQ. Thanks.