All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andi Kleen <ak@suse.de>
To: Christoph Lameter <clameter@sgi.com>
Cc: Andi Kleen <ak@suse.de>, Mel Gorman <mel@skynet.ie>,
	Lee.Schermerhorn@hp.com, linux-kernel@vger.kernel.org,
	linux-mm@kvack.org
Subject: Re: [PATCH 3/4] Embed zone_id information within the zonelist->zones pointer
Date: Tue, 14 Aug 2007 02:00:41 +0200	[thread overview]
Message-ID: <20070814000041.GL3406@bingen.suse.de> (raw)
In-Reply-To: <Pine.LNX.4.64.0708131553050.30626@schroedinger.engr.sgi.com>

On Mon, Aug 13, 2007 at 03:54:34PM -0700, Christoph Lameter wrote:
> On Tue, 14 Aug 2007, Andi Kleen wrote:
> 
> > On Mon, Aug 13, 2007 at 03:38:10PM -0700, Christoph Lameter wrote:
> > > I just did a grep for GFP_DMA and I still see a large list of GFP_DMA 
> > > kmallocs???
> > 
> > I converted all of those that applied to x86.
> 
> Converted to what?

Hmm, do you actually read my emails? I spelled that out at least two
times now. It's converted to a new dma page allocator that specifies
an address mask.

> 
> drivers/net/tokenring/3c359.c:	xl_priv->xl_tx_ring = kmalloc((sizeof(struct xl_tx_desc) * XL_TX_RING_SIZE) + 7, GFP_DMA | GFP_KERNEL) ; 
> drivers/net/tokenring/3c359.c:	xl_priv->xl_rx_ring = kmalloc((sizeof(struct xl_rx_desc) * XL_RX_RING_SIZE) +7, GFP_DMA | GFP_KERNEL) ; 
> 
> Tokenring not supported on x86?

It can be easily converted to a page allocation.

The only tricky part were skbs in a few drivers, but luckily they are only
needed for bouncing which can be done without a skb too. For RX it adds
one copy, but we can live with that because they're only slow devices.

Right now it is a little inefficient because it's one page per packet
even though two would fit, but these devices have all tiny RX rings
so it's not that big a waste.

-Andi

WARNING: multiple messages have this Message-ID (diff)
From: Andi Kleen <ak@suse.de>
To: Christoph Lameter <clameter@sgi.com>
Cc: Andi Kleen <ak@suse.de>, Mel Gorman <mel@skynet.ie>,
	Lee.Schermerhorn@hp.com, linux-kernel@vger.kernel.org,
	linux-mm@kvack.org
Subject: Re: [PATCH 3/4] Embed zone_id information within the zonelist->zones pointer
Date: Tue, 14 Aug 2007 02:00:41 +0200	[thread overview]
Message-ID: <20070814000041.GL3406@bingen.suse.de> (raw)
In-Reply-To: <Pine.LNX.4.64.0708131553050.30626@schroedinger.engr.sgi.com>

On Mon, Aug 13, 2007 at 03:54:34PM -0700, Christoph Lameter wrote:
> On Tue, 14 Aug 2007, Andi Kleen wrote:
> 
> > On Mon, Aug 13, 2007 at 03:38:10PM -0700, Christoph Lameter wrote:
> > > I just did a grep for GFP_DMA and I still see a large list of GFP_DMA 
> > > kmallocs???
> > 
> > I converted all of those that applied to x86.
> 
> Converted to what?

Hmm, do you actually read my emails? I spelled that out at least two
times now. It's converted to a new dma page allocator that specifies
an address mask.

> 
> drivers/net/tokenring/3c359.c:	xl_priv->xl_tx_ring = kmalloc((sizeof(struct xl_tx_desc) * XL_TX_RING_SIZE) + 7, GFP_DMA | GFP_KERNEL) ; 
> drivers/net/tokenring/3c359.c:	xl_priv->xl_rx_ring = kmalloc((sizeof(struct xl_rx_desc) * XL_RX_RING_SIZE) +7, GFP_DMA | GFP_KERNEL) ; 
> 
> Tokenring not supported on x86?

It can be easily converted to a page allocation.

The only tricky part were skbs in a few drivers, but luckily they are only
needed for bouncing which can be done without a skb too. For RX it adds
one copy, but we can live with that because they're only slow devices.

Right now it is a little inefficient because it's one page per packet
even though two would fit, but these devices have all tiny RX rings
so it's not that big a waste.

-Andi

--
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>

  reply	other threads:[~2007-08-13 23:06 UTC|newest]

Thread overview: 102+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-09 21:06 [PATCH 0/4] Use one zonelist per node instead of multiple zonelists v3 Mel Gorman
2007-08-09 21:06 ` Mel Gorman
2007-08-09 21:06 ` [PATCH 1/4] Use zonelists instead of zones when direct reclaiming pages Mel Gorman
2007-08-09 21:06   ` Mel Gorman
2007-08-09 21:19   ` Christoph Lameter
2007-08-09 21:19     ` Christoph Lameter
2007-08-09 21:06 ` [PATCH 2/4] Use one zonelist that is filtered instead of multiple zonelists Mel Gorman
2007-08-09 21:06   ` Mel Gorman
2007-08-09 21:27   ` Christoph Lameter
2007-08-09 21:27     ` Christoph Lameter
2007-08-09 21:07 ` [PATCH 3/4] Embed zone_id information within the zonelist->zones pointer Mel Gorman
2007-08-09 21:07   ` Mel Gorman
2007-08-09 21:37   ` Christoph Lameter
2007-08-09 21:37     ` Christoph Lameter
2007-08-09 23:33     ` Mel Gorman
2007-08-09 23:33       ` Mel Gorman
2007-08-10  1:44       ` Christoph Lameter
2007-08-10  1:44         ` Christoph Lameter
2007-08-10 10:47         ` Mel Gorman
2007-08-10 10:47           ` Mel Gorman
2007-08-10 17:37           ` Christoph Lameter
2007-08-10 17:37             ` Christoph Lameter
2007-08-10 18:13             ` Andi Kleen
2007-08-10 18:13               ` Andi Kleen
2007-08-10 19:02               ` Christoph Lameter
2007-08-10 19:02                 ` Christoph Lameter
2007-08-11  1:04                 ` Andi Kleen
2007-08-11  1:04                   ` Andi Kleen
2007-08-13 21:25                   ` Christoph Lameter
2007-08-13 21:25                     ` Christoph Lameter
2007-08-13 22:50                     ` Andi Kleen
2007-08-13 22:50                       ` Andi Kleen
2007-08-13 22:00                       ` Christoph Lameter
2007-08-13 22:00                         ` Christoph Lameter
2007-08-13 22:58                         ` Andi Kleen
2007-08-13 22:58                           ` Andi Kleen
2007-08-13 22:09                           ` Christoph Lameter
2007-08-13 22:09                             ` Christoph Lameter
2007-08-13 23:08                             ` Andi Kleen
2007-08-13 23:08                               ` Andi Kleen
2007-08-13 22:22                               ` Christoph Lameter
2007-08-13 22:22                                 ` Christoph Lameter
2007-08-13 23:42                                 ` Andi Kleen
2007-08-13 23:42                                   ` Andi Kleen
2007-08-13 22:52                                   ` Christoph Lameter
2007-08-13 22:52                                     ` Christoph Lameter
2007-08-13 23:55                                     ` Andi Kleen
2007-08-13 23:55                                       ` Andi Kleen
2007-08-13 23:12                                       ` Christoph Lameter
2007-08-13 23:12                                         ` Christoph Lameter
2007-08-14  0:16                                         ` Andi Kleen
2007-08-14  0:16                                           ` Andi Kleen
2007-08-13 23:25                                           ` Christoph Lameter
2007-08-13 23:25                                             ` Christoph Lameter
2007-08-14  0:25                                             ` Andi Kleen
2007-08-14  0:25                                               ` Andi Kleen
2007-08-13 22:38                               ` Christoph Lameter
2007-08-13 22:38                                 ` Christoph Lameter
2007-08-13 23:43                                 ` Andi Kleen
2007-08-13 23:43                                   ` Andi Kleen
2007-08-13 22:54                                   ` Christoph Lameter
2007-08-13 22:54                                     ` Christoph Lameter
2007-08-14  0:00                                     ` Andi Kleen [this message]
2007-08-14  0:00                                       ` Andi Kleen
2007-08-13 23:16                                       ` Christoph Lameter
2007-08-13 23:16                                         ` Christoph Lameter
2007-08-14  0:16                                         ` Andi Kleen
2007-08-14  0:16                                           ` Andi Kleen
2007-08-13 23:27                                           ` Christoph Lameter
2007-08-13 23:27                                             ` Christoph Lameter
2007-08-14  0:26                                             ` Andi Kleen
2007-08-14  0:26                                               ` Andi Kleen
2007-08-14 19:56                                               ` Christoph Lameter
2007-08-14 19:56                                                 ` Christoph Lameter
2007-08-13 23:22                                       ` Alan Cox
2007-08-13 23:22                                         ` Alan Cox
2007-08-14  0:14                                         ` Andi Kleen
2007-08-14  0:14                                           ` Andi Kleen
2007-08-13 23:44                                           ` Alan Cox
2007-08-13 23:44                                             ` Alan Cox
2007-08-14 19:11                                           ` Andy Isaacson
2007-08-14 19:11                                             ` Andy Isaacson
2007-08-14 20:23                                             ` Andi Kleen
2007-08-14 20:23                                               ` Andi Kleen
2007-08-14 19:43                                               ` Andy Isaacson
2007-08-14 19:43                                                 ` Andy Isaacson
2007-08-14 21:05                                                 ` Andi Kleen
2007-08-14 21:05                                                   ` Andi Kleen
2007-08-15 11:37                                           ` Ralf Baechle
2007-08-15 11:37                                             ` Ralf Baechle
2007-08-15 12:59                                             ` Andi Kleen
2007-08-15 12:59                                               ` Andi Kleen
2007-08-15 12:32                                               ` Ralf Baechle
2007-08-15 12:32                                                 ` Ralf Baechle
2007-08-15 19:59                                               ` Christoph Lameter
2007-08-15 19:59                                                 ` Christoph Lameter
2007-08-09 21:07 ` [PATCH 4/4] Apply MPOL_BIND policy to two highest zones when highest is ZONE_MOVABLE Mel Gorman
2007-08-09 21:07   ` Mel Gorman
2007-08-09 21:37   ` Christoph Lameter
2007-08-09 21:37     ` Christoph Lameter
2007-08-09 21:19 ` [PATCH 0/4] Use one zonelist per node instead of multiple zonelists v3 Christoph Lameter
2007-08-09 21:19   ` Christoph Lameter

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=20070814000041.GL3406@bingen.suse.de \
    --to=ak@suse.de \
    --cc=Lee.Schermerhorn@hp.com \
    --cc=clameter@sgi.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mel@skynet.ie \
    /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.