mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: James Bottomley <James.Bottomley@SteelEye.com>
To: Christoph Lameter <clameter@sgi.com>
Cc: "Salyzyn, Mark" <mark_salyzyn@adaptec.com>,
	Aubrey Li <aubreylee@gmail.com>, Bernhard Walle <bwalle@suse.de>,
	linux-scsi@vger.kernel.org,
	Andrew Morton <akpm@linux-foundation.org>,
	linux-kernel@vger.kernel.org, Alan Cox <alan@lxorguk.ukuu.org.uk>
Subject: RE: [PATCH] [scsi] Remove __GFP_DMA
Date: Thu, 24 May 2007 12:26:45 -0500	[thread overview]
Message-ID: <1180027605.3692.51.camel@mulgrave.il.steeleye.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0705241020040.29126@schroedinger.engr.sgi.com>

On Thu, 2007-05-24 at 10:22 -0700, Christoph Lameter wrote:
> On Thu, 24 May 2007, James Bottomley wrote:
> 
> > The idea was basically to match an allocation to a device mask.  I was
> > going to do a generic implementation (which would probably kmalloc,
> > check the physaddr and fall back to GFP_DMA if we were unlucky) but
> > allow the architectures to override.
> 
> Hmmmm... We could actually implement something like it in the slab 
> allocators. The mask parameter would lead the allocator to check if the 
> objects are in a satisfactory range. If not it could examine its partial 
> lists for slabs that satisfy the range. If that does not work then it 
> would eventually go to the page allocator to ask for a page in a fitting 
> range.
> 
> That wont be fast though. How performance sensitive are the allocations?

Most of them aren't very.  They're usually things that are set at driver
intialisation time (shared mailbox memory etc).

If the allocation is performance sensitive and has to be done at command
or ioctl submission time, we tend to feed the consistent or mapped
memory into a dma pool which pre allocates and solves the performance
issue.

In the aacraid case, the mbox is done at ioctl time, but isn't
incredibly performance sensitive.

James



  reply	other threads:[~2007-05-24 17:26 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-21 15:15 Bernhard Walle
2007-05-22 21:44 ` Christoph Lameter
2007-05-23  2:41   ` Aubrey Li
2007-05-23 15:18     ` James Bottomley
2007-05-23 15:55       ` Robert P. J. Day
2007-05-23 16:17         ` James Bottomley
2007-05-23 19:17       ` Salyzyn, Mark
2007-05-23 19:38         ` Alan Cox
2007-05-27 19:46           ` James Bottomley
2007-05-24 13:24     ` Salyzyn, Mark
2007-05-24 14:59       ` James Bottomley
2007-05-24 17:00         ` Christoph Lameter
2007-05-24 17:15           ` James Bottomley
2007-05-24 17:22             ` Christoph Lameter
2007-05-24 17:26               ` James Bottomley [this message]
2007-05-24 16:59       ` Christoph Lameter
     [not found] <fa.6bUV4KR+za7HW4tT2WBlccqvoq0@ifi.uio.no>
     [not found] ` <fa.NYl60pD1cwd1ESdKNCPaOwSz1WA@ifi.uio.no>
     [not found]   ` <fa.hW9tQQfgwmXj0gAKQoWXOxVzpvk@ifi.uio.no>
     [not found]     ` <fa.xLFpJ54sTvGq6YIol2Ew31Rrq2s@ifi.uio.no>
     [not found]       ` <fa.JZsPKKyEKOAfxp6reMY5ZwSNjQU@ifi.uio.no>
     [not found]         ` <fa.txrEcCPLxIukzeVBv7UG39WubcI@ifi.uio.no>
2007-05-24  5:28           ` Robert Hancock
2007-05-24 10:08             ` Alan Cox

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=1180027605.3692.51.camel@mulgrave.il.steeleye.com \
    --to=james.bottomley@steeleye.com \
    --cc=akpm@linux-foundation.org \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=aubreylee@gmail.com \
    --cc=bwalle@suse.de \
    --cc=clameter@sgi.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=mark_salyzyn@adaptec.com \
    /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

all inboxes | Powered by JetHome®