From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: "Dave Airlie" <airlied@gmail.com>
Cc: dri-devel <dri-devel@lists.sourceforge.net>,
"Linux Kernel Mailing List" <linux-kernel@vger.kernel.org>
Subject: Re: uncached page allocator
Date: Mon, 20 Aug 2007 09:41:25 +0100 [thread overview]
Message-ID: <20070820094125.209e0811@the-village.bc.nu> (raw)
In-Reply-To: <21d7e9970708191745h3b579f3bp72f138e089c624da@mail.gmail.com>
> allocate pixmap gets cached memory
> copy data into the pixmap
> pre-use from hardware we flush the cache lines and tlb
> use the pixmap in hardware
> pre-free we need to set the page back to cached so we flush the tlb
> free the memory.
> Now the big issue here on SMP is that the cache and/or tlb flushes
> require IPIs and they are very noticeable on the profiles,
Blame intel ;)
> Any other ideas and suggestions?
Without knowing exactly what you are doing:
- Copies to uncached memory are very expensive on an x86 processor
(so it might be faster not to write and flush)
- Its not clear from your description how intelligent your transfer
system is.
I'd expect for example that the process was something like
Parse pending commands until either
1. Queue empties
2. A time target passes
For each command we need to shove a pixmap over add it
to the buffer to transfer
Do a single CLFLUSH and maybe IPI
Fire up the command queue
Keep the buffers hanging around until there is memory pressure
if we may reuse that pixmap
Can you clarify that ?
If the hugepage anti-frag stuff ever gets merged this would also help as
you could possibly grab a huge page from the allocator for this purpose
and have to flip only one TLB entry.
Alan
next prev parent reply other threads:[~2007-08-20 8:33 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-20 0:45 Dave Airlie
2007-08-20 8:41 ` Alan Cox [this message]
2007-08-21 6:05 ` Dave Airlie
2007-08-21 14:56 ` Peter Zijlstra
2007-08-27 20:00 ` Christoph Lameter
2007-08-30 7:23 ` Nick Piggin
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=20070820094125.209e0811@the-village.bc.nu \
--to=alan@lxorguk.ukuu.org.uk \
--cc=airlied@gmail.com \
--cc=dri-devel@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome