Menu

Stop kill -9ing Your CPU Hogs. Teach Them to Be Sloths Instead.
📰

Stop kill -9ing Your CPU Hogs. Teach Them to Be Sloths Instead.

DEV Community: rust·M Shaikh·about 16 hours ago
#Pm5oyWte
#devtorust#devto#dev#process#daemon
Reading 0:00
15s threshold

This is a submission for the Hacktoberfest Open-Source AI Challenge Week 3: Slow and Steady

There is a particular kind of silence that falls over an old laptop. The fan spins up, the cursor starts to stutter, and you already know what you'll find when you open top : one process, sitting at 100%, wearing an entire CPU core like a hat.

The usual answers are all a little violent. kill -9 and hope nothing important was in there. nice and hope it helps. Close the lid and sigh.

This week's theme is slow and steady , and it gave me an idea for a fourth option: don't kill the greedy process. Slow it down.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.