Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
  • linux
  • kernel
  • trace
  • ring_buffer.c
Find file BlameHistoryPermalink
  • Steven Rostedt (VMware)'s avatar
    ring-buffer: Add set/clear_current_oom_origin() during allocations · 927e56db
    Steven Rostedt (VMware) authored Apr 04, 2018
    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/20180404062340.GD6312@dhcp22.suse.cz
    
    
    
    Suggested-by: default avatarMichal Hocko <mhocko@kernel.org>
    Signed-off-by: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
    927e56db
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7