Propose to Use madvise API on Runtime Loader
Siddhesh Poyarekar
siddhesh@redhat.com
Fri May 23 07:17:00 GMT 2014
On Fri, May 23, 2014 at 02:12:20PM +0800, lin zuojian wrote:
> Hi Siddhesh,
> On Fri, May 23, 2014 at 11:32:55AM +0530, Siddhesh Poyarekar wrote:
> > The OOM killer considers commit charge and MADV_DONTNEED does not
> > affect commit charge, so the call would be largely useless.
> >
> the oom_kill.c (oom_badness):
> points = get_mm_rss(p->mm) + atomic_long_read(&p->mm->nr_ptes) +
> get_mm_counter(p->mm, MM_SWAPENTS);
>
> what do you think these code means?
Sorry, mmap allocations consider commit charge, not the OOM killer. I
misremembered a previous discussion.
Siddhesh
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20140523/445a2ba1/attachment.sig>
More information about the Libc-alpha
mailing list