This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Propose to Use madvise API on Runtime Loader
- From: lin zuojian <manjian2006 at gmail dot com>
- To: Siddhesh Poyarekar <siddhesh at redhat dot com>
- Cc: Rich Felker <dalias at libc dot org>, libc-alpha at sourceware dot org
- Date: Fri, 23 May 2014 14:12:20 +0800
- Subject: Re: Propose to Use madvise API on Runtime Loader
- Authentication-results: sourceware.org; auth=none
- References: <20140523012855 dot GC14217 at ubuntu> <20140523025730 dot GL507 at brightrain dot aerifal dot cx> <20140523031242 dot GA24355 at ubuntu> <20140523040146 dot GM507 at brightrain dot aerifal dot cx> <20140523042133 dot GA29872 at ubuntu> <20140523043129 dot GN507 at brightrain dot aerifal dot cx> <20140523043918 dot GA404 at ubuntu> <20140523052635 dot GO507 at brightrain dot aerifal dot cx> <20140523053229 dot GA30907 at ubuntu> <20140523060255 dot GY14500 at spoyarek dot pnq dot redhat dot com>
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?
> Siddhesh