From: Nick Piggin <nickpiggin@yahoo.com.au>
To: Peter Zijlstra <peterz@infradead.org>
Cc: Dave Airlie <airlied@gmail.com>,
Alan Cox <alan@lxorguk.ukuu.org.uk>,
dri-devel <dri-devel@lists.sourceforge.net>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Linux Memory Management <linux-mm@kvack.org>
Subject: Re: uncached page allocator
Date: Thu, 30 Aug 2007 17:23:03 +1000 [thread overview]
Message-ID: <46D67057.9030905@yahoo.com.au> (raw)
In-Reply-To: <1187708165.6114.256.camel@twins>
Peter Zijlstra wrote:
> On Tue, 2007-08-21 at 16:05 +1000, Dave Airlie wrote:
>
>
>>So you can see why some sort of uncached+writecombined page cache
>>would be useful, I could just allocate a bunch of pages at startup as
>>uncached+writecombined, and allocate pixmaps from them and when I
>>bind/free the pixmap I don't need the flush at all, now I'd really
>>like this to be part of the VM so that under memory pressure it can
>>just take the pages I've got in my cache back and after flushing turn
>>them back into cached pages, the other option is for the DRM to do
>>this on its own and penalise the whole system.
>
>
> Can't you make these pages part of the regular VM by sticking them all
> into an address_space.
>
> And for this reclaim behaviour you'd only need to set PG_private and
> have a_ops->releasepage() dtrt.
I'd just suggest Dave just registers a shrinker to start with.
You really want to be able to batch TLB flushes as well, which
->releasepage may not be so good at (you could add more machinery
behind the releasepage to build batches and so on, but anyway, a
shrinker might be the quickest way to get something working).
--
SUSE Labs, Novell Inc.
WARNING: multiple messages have this Message-ID (diff)
From: Nick Piggin <nickpiggin@yahoo.com.au>
To: Peter Zijlstra <peterz@infradead.org>
Cc: Dave Airlie <airlied@gmail.com>,
Alan Cox <alan@lxorguk.ukuu.org.uk>,
dri-devel <dri-devel@lists.sourceforge.net>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Linux Memory Management <linux-mm@kvack.org>
Subject: Re: uncached page allocator
Date: Thu, 30 Aug 2007 17:23:03 +1000 [thread overview]
Message-ID: <46D67057.9030905@yahoo.com.au> (raw)
In-Reply-To: <1187708165.6114.256.camel@twins>
Peter Zijlstra wrote:
> On Tue, 2007-08-21 at 16:05 +1000, Dave Airlie wrote:
>
>
>>So you can see why some sort of uncached+writecombined page cache
>>would be useful, I could just allocate a bunch of pages at startup as
>>uncached+writecombined, and allocate pixmaps from them and when I
>>bind/free the pixmap I don't need the flush at all, now I'd really
>>like this to be part of the VM so that under memory pressure it can
>>just take the pages I've got in my cache back and after flushing turn
>>them back into cached pages, the other option is for the DRM to do
>>this on its own and penalise the whole system.
>
>
> Can't you make these pages part of the regular VM by sticking them all
> into an address_space.
>
> And for this reclaim behaviour you'd only need to set PG_private and
> have a_ops->releasepage() dtrt.
I'd just suggest Dave just registers a shrinker to start with.
You really want to be able to batch TLB flushes as well, which
->releasepage may not be so good at (you could add more machinery
behind the releasepage to build batches and so on, but anyway, a
shrinker might be the quickest way to get something working).
--
SUSE Labs, Novell Inc.
--
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:[~2007-08-30 7:23 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-20 0:45 uncached page allocator Dave Airlie
2007-08-20 8:41 ` Alan Cox
2007-08-21 6:05 ` Dave Airlie
2007-08-21 6:05 ` Dave Airlie
2007-08-21 14:56 ` Peter Zijlstra
2007-08-21 14:56 ` Peter Zijlstra
2007-08-27 20:00 ` Christoph Lameter
2007-08-27 20:00 ` Christoph Lameter
2007-08-30 7:23 ` Nick Piggin [this message]
2007-08-30 7:23 ` Nick Piggin
-- strict thread matches above, loose matches on Subject: below --
2007-08-20 12:36 Daniel J Blueman
2007-08-21 6:06 ` Dave Airlie
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=46D67057.9030905@yahoo.com.au \
--to=nickpiggin@yahoo.com.au \
--cc=airlied@gmail.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=dri-devel@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=peterz@infradead.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.