From: Wanpeng Li <liwanp@linux.vnet.ibm.com>
To: Johannes Weiner <hannes@cmpxchg.org>
Cc: "Cédric Villemain" <cedric@2ndquadrant.com>,
"Andrew Morton" <akpm@linux-foundation.org>,
linux-mm@kvack.org
Subject: Re: mincore() & fincore()
Date: Fri, 26 Jul 2013 09:55:34 +0800 [thread overview]
Message-ID: <20130726015534.GA24060@hacker.(null)> (raw)
In-Reply-To: <20130725153207.GA17975@cmpxchg.org>
On Thu, Jul 25, 2013 at 11:32:07AM -0400, Johannes Weiner wrote:
>On Thu, Jul 25, 2013 at 05:07:10PM +0200, Cedric Villemain wrote:
>> [sorry, previous mail was sent earlier than expected]
>>
>> > First, the proposed changes in this email are to be used at least for
>> > PostgreSQL extensions, maybe for core.
>> >
>> > Purpose is to offer better monitoring/tracking of the hot/cold areas (and
>> > read/write paterns) in the tables and indexes, in PostgreSQL those are by default
>> > written in segments of 1GB.
>> >
>> > There are some possible usecase already:
>> >
>> > * planning of hardware upgrade
>> > * easier configuration setup (both PostgreSQL and linux)
>> > * provide more informations to the planner/executor of PostgreSQL
>> >
>> > My ideas so far are to
>> >
>> > * improve mincore() in linux and add it information like in freeBSD (at
>> > least adding 'mincore_modified' to track clean vs dirty pages).
>> > * adding fincore() to make the information easier to grab from PostgreSQL (no
>> > mmap)
>> > * maybe some access to those stats in /proc/
>> >
>> > It makes years that libprefetch, mincore() and fincore() are discussed on linux
>> > mailling lists. And they got a good feedback... So I hope it is ok to keep on
>> > those and provide updated patches.
>>
>> Johannes, I add you in CC because you're the last one who proposed something.
>> Can I update your patch with previous suggestions from reviewers ?
>
>Absolutely!
>
>> I'm also asking for feedback in this area, others ideas are very welcome.
>
>Andrew didn't like the idea of the one byte per covered page
>representation but all proposals to express continuous ranges in a
mincore utilize byte array and the least significant bit is used to
check if the corresponding page is currently resident in memory, I
don't know the history, what's the reason for not using bitmap?
>more compact fashion had worse worst cases and a much more involved
>interface.
>
>I do wonder if we should model fincore() after mincore() and add a
>separate syscall to query page cache coverage with statistical output
>(x present [y dirty, z active, whatever] in specified area) rather
>than describing individual pages or continuous chunks of pages in
>address order. That might leave us with better interfaces than trying
>to integrate all of this into one arcane syscall.
>
>--
>To unsubscribe, send a message with 'unsubscribe linux-mm' in
>the body to majordomo@kvack.org. For more info on Linux MM,
>see: http://www.linux-mm.org/ .
>Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2013-07-26 1:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-25 14:58 mincore() & fincore() Cédric Villemain
2013-07-25 15:07 ` Cédric Villemain
2013-07-25 15:32 ` Johannes Weiner
2013-07-26 1:55 ` Wanpeng Li
2013-07-26 1:55 ` Wanpeng Li [this message]
2013-07-27 20:08 ` Cédric Villemain
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='20130726015534.GA24060@hacker.(null)' \
--to=liwanp@linux.vnet.ibm.com \
--cc=akpm@linux-foundation.org \
--cc=cedric@2ndquadrant.com \
--cc=hannes@cmpxchg.org \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.