This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Question about madvise(DONTNEED) in glibc malloc
- From: KOSAKI Motohiro <kosaki dot motohiro at gmail dot com>
- To: OndÅej BÃlka <neleai at seznam dot cz>
- Cc: KOSAKI Motohiro <kosaki dot motohiro at gmail dot com>, Siddhesh Poyarekar <siddhesh dot poyarekar at gmail dot com>, libc-alpha <libc-alpha at sourceware dot org>
- Date: Mon, 15 Apr 2013 07:07:29 -0700
- Subject: Re: Question about madvise(DONTNEED) in glibc malloc
- References: <516ADB3C dot 9040805 at gmail dot com> <CAAHN_R2FK4Fj4u1hHJJ17fr2X_PJxDs+6h2azWbUzbZth2HdfQ at mail dot gmail dot com> <516B535A dot 4080104 at gmail dot com> <CAAHN_R2Y7+eiBAqo1mX6pbos8yN9=dQwcjz6eiLhZy8vTfUwRw at mail dot gmail dot com> <516B8C73 dot 9030308 at gmail dot com> <20130415095142 dot GA5134 at domone dot kolej dot mff dot cuni dot cz>
> What having at kernel keep list of pages that are currently unused. On memory
> shortage kernel reclaims them. When minor page fault occurs we do not
> need to zero page but remap one of unused.
It's necessary. I've explained you why several month ago.