aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorSteven Rostedt (VMware) <[email protected]>2018-04-04 11:29:57 -0400
committerSteven Rostedt (VMware) <[email protected]>2018-04-06 08:56:52 -0400
commit927e56db6253225166d521cee3772624347b5cd5 (patch)
treefb922defc804cd746ff42d3a784e4aee0014dcb8 /tools/perf/util/scripting-engines/trace-event-python.c
parent2a872fa4e9c8adc79c830e4009e1cc0c013a9d8a (diff)
ring-buffer: Add set/clear_current_oom_origin() during allocations
As si_mem_available() can say there is enough memory even though the memory available is not useable by the ring buffer, it is best to not kill innocent applications because the ring buffer is taking up all the memory while it is trying to allocate a great deal of memory. If the allocator is user space (because kernel threads can also increase the size of the kernel ring buffer on boot up), then after si_mem_available() says there is enough memory, set the OOM killer to kill the current task if an OOM triggers during the allocation. Link: http://lkml.kernel.org/r/[email protected] Suggested-by: Michal Hocko <[email protected]> Signed-off-by: Steven Rostedt (VMware) <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions