Timeline for Prevent a script exhausing system resources and crashing entire system
Current License: CC BY-SA 3.0
        18 events
    
    | when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 11, 2020 at 14:16 | history | edited | CommunityBot | 
                
                    Commonmark migration 
                
             | |
| Jun 28, 2017 at 8:44 | vote | accept | Miloš Đakonović | ||
| S Jun 28, 2017 at 8:44 | history | bounty ended | Miloš Đakonović | ||
| S Jun 28, 2017 at 8:44 | history | notice removed | Miloš Đakonović | ||
| Jun 22, 2017 at 11:11 | answer | added | Centimane | timeline score: 5 | |
| Jun 21, 2017 at 17:43 | answer | added | William Sandin | timeline score: 5 | |
| Jun 21, 2017 at 15:37 | comment | added | Gohu | You could also use the tasksetcommand and play with cpu affinity | |
| Jun 21, 2017 at 14:29 | comment | added | Centimane | Are you using a distro with systemd? Have you seen systemd.resource-control? | |
| S Jun 21, 2017 at 13:50 | history | bounty started | Miloš Đakonović | ||
| S Jun 21, 2017 at 13:50 | history | notice added | Miloš Đakonović | Draw attention | |
| Jun 21, 2017 at 0:29 | history | tweeted | twitter.com/StackUnix/status/877322588329959424 | ||
| Jun 20, 2017 at 23:28 | comment | added | Gilles 'SO- stop being evil' | cgroups, and I think this has been covered in previous threads. | |
| Jun 20, 2017 at 5:14 | comment | added | Miloš Đakonović | @MarkPlotnick well, I think total amount of CPU time constraining would do the job. Unresponsive machine usually runs out of this | |
| Jun 19, 2017 at 21:45 | comment | added | Miloš Đakonović | @DopeGhoti sounds nice but installing a program is usually done with root | |
| Jun 19, 2017 at 17:11 | comment | added | Mark Plotnick | I reread your question. The only limit you want is on the total amount of CPU time that a process or set of processes accumulate? Or are there other criteria, such as percentage of CPU used over a certain time period, memory usage, disk space usage, disk bandwidth, network usage, etc. | |
| Jun 19, 2017 at 15:52 | comment | added | DopeGhoti | This is done already by the system at a per-user level with /etc/security/limits.conf; the current settings can be observed withulimit.  Give your process a role user, and apply appropriate resource limits. | |
| Jun 19, 2017 at 15:40 | comment | added | Miloš Đakonović | Thanks. Any hint about this nice ways? What would it be | |
| Jun 19, 2017 at 13:29 | history | asked | Miloš Đakonović | CC BY-SA 3.0 |