public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Dave Jones <davej@redhat.com>
To: Alan Hourihane <alanh@fairlite.demon.co.uk>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] 2.6.14-rc4 AGP performance fixes
Date: Sun, 16 Oct 2005 19:01:48 -0400	[thread overview]
Message-ID: <20051016230148.GB15602@redhat.com> (raw)
In-Reply-To: <20051014094217.GA15871@fairlite.demon.co.uk>

On Fri, Oct 14, 2005 at 10:42:17AM +0100, Alan Hourihane wrote:
 > AGP allocation/deallocation is suffering major performance issues due to the 
 > nature of global_flush_tlb() being called on every change_page_attr() call.
 > 
 > For small allocations this isn't really seen, but when you start allocating
 > 50000 pages of AGP space, for say, texture memory, then things can take 
 > seconds to complete.
 > 
 > In some cases the situation is doubled or even quadrupled in the time due 
 > to SMP, or a deallocation, then a new reallocation. I've had a case of 
 > upto 20 seconds wait time to deallocate and reallocate AGP space.

Yikes.

 > This patch fixes the problem by making it the caller's responsibility to 
 > call global_flush_tlb(), and so removes it from every instance of mapping 
 > a page into AGP space until the time that all change_page_attr() changes 
 > are done.

I like the idea of minimising the flushes where we can, however the idea
of having stale entries in the TLB's, even for a short time gives me the jibblies
a little. If this does cause any problems, they're likely to be of a nature that
would be incredibly difficult to track down.
(We've been bitten on more than one occasion due to missing flushes in this driver).
Given the wide variety of hardware this driver supports, I'd like this
to sit in -mm for a while, just to be on the safe side.

If Andrew picks that up now, that gives us a while for testing before 2.6.15 closes
for features.

		Dave


      reply	other threads:[~2005-10-16 23:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-14  9:42 [PATCH] 2.6.14-rc4 AGP performance fixes Alan Hourihane
2005-10-16 23:01 ` Dave Jones [this message]

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=20051016230148.GB15602@redhat.com \
    --to=davej@redhat.com \
    --cc=alanh@fairlite.demon.co.uk \
    --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