Skip to content

Commit

Permalink
Completed book!
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo-stoakes committed May 10, 2016
1 parent c328acd commit 1d4f76f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions 13.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,19 @@ badness_for_task = total_vm_for_task/(cpu_time_in_seconds^0.5 * cpu_time_in_minu
device), the points are further divided by 4 because it's not a good idea to
kill a process that has direct access to hardware.
## 13.4 Killing the Selected Process
* After a task is selected, the list is walked again and each process that
shares the same [struct mm_struct][mm_struct] as the selected process
(i.e. threads) is sent a signal.
* If the process has `CAP_SYS_RAWIO` capabilities, a `SIGTERM` signal is sent to
give the process a chance of exiting cleanly. Otherwise a `SIGKILL` is sent.
## 13.5 Is That It?
* Yep :)
[brk]:http://man7.org/linux/man-pages/man2/brk.2.html
[mremap]:http://man7.org/linux/man-pages/man2/mremap.2.html
[out_of_memory]:https://github.com/lorenzo-stoakes/linux-historical/blob/v2.4.22/mm/oom_kill.c#L202
Expand All @@ -155,3 +168,5 @@ badness_for_task = total_vm_for_task/(cpu_time_in_seconds^0.5 * cpu_time_in_minu
[select_bad_process]:https://github.com/lorenzo-stoakes/linux-historical/blob/v2.4.22/mm/oom_kill.c#L121
[badness]:https://github.com/lorenzo-stoakes/linux-historical/blob/v2.4.22/mm/oom_kill.c#L40
[int_sqrt]:https://github.com/lorenzo-stoakes/linux-historical/blob/v2.4.22/mm/oom_kill.c#L26
[mm_struct]:https://github.com/lorenzo-stoakes/linux-historical/blob/v2.4.22/include/linux/sched.h#L206

0 comments on commit 1d4f76f

Please sign in to comment.