All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marcelo Tosatti <marcelo.tosatti@cyclades.com>
To: Arjan van de Ven <arjanv@redhat.com>
Cc: Frank Borich <Frank_Borich@us.xyratex.com>, linux-scsi@vger.kernel.org
Subject: Re: Scsi midlayer question
Date: Mon, 9 Aug 2004 19:39:56 -0300	[thread overview]
Message-ID: <20040809223956.GB8782@logos.cnet> (raw)
In-Reply-To: <1090001284.2805.10.camel@laptop.fenrus.com>

On Fri, Jul 16, 2004 at 08:08:04PM +0200, Arjan van de Ven wrote:
> On Fri, 2004-07-16 at 19:55, Frank Borich wrote:
> > I can see from a fibre channel trace that my 1 MB I/O transfers are
> > getting cut up into little chunks.
> > Is there any options that can be set when loading the scsi mid layer as
> > a module that will improve
> > io performance or prevent this breakdown for the sg,sd, or even raw
> > drivers.  I am not a driver developer 
> > so please excuse my ignorance here.   Any info or points in the right
> > direction would be greatly apprecited.
> > I am using the 2.4.20 kernel.  
> 
> try the patch I attached.
> 

> --- linux/mm/page_alloc.c.org	2004-06-24 17:36:22.042460920 +0200
> +++ linux/mm/page_alloc.c	2004-06-24 17:38:12.361689848 +0200
> @@ -282,15 +282,13 @@
>  	unsigned long size = 1 << high;
>  
>  	while (high > low) {
> -		if (BAD_RANGE(zone,page))
> -			BUG();
>  		area--;
>  		high--;
>  		size >>= 1;
> -		list_add(&(page)->list, &(area)->free_list);
> -		MARK_USED(index, high, area);
> -		index += size;
> -		page += size;
> +		if (BAD_RANGE(zone,&page[size]))
> +			BUG();
> +		list_add(&page[size].list, &(area)->free_list);
> +		MARK_USED(index + size, high, area);
>  	}
>  	if (BAD_RANGE(zone,page))
>  		BUG();

Arjan, is this a v2.6 based patch? 

v2.4 current doesnt contain such code you are patching...




  reply	other threads:[~2004-08-09 23:42 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-16 17:55 Scsi midlayer question Frank Borich
2004-07-16 18:08 ` Arjan van de Ven
2004-08-09 22:39   ` Marcelo Tosatti [this message]
2004-08-10  8:05     ` Arjan van de Ven
2004-08-10 12:40       ` Marcelo Tosatti
2004-07-16 18:24 ` Bryan Henderson
  -- strict thread matches above, loose matches on Subject: below --
2004-07-16 18:41 Frank Borich
2004-08-10 14:09 Frank Borich
2004-08-10 14:21 Frank Borich
2004-08-16 16:40 Frank Borich

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=20040809223956.GB8782@logos.cnet \
    --to=marcelo.tosatti@cyclades.com \
    --cc=Frank_Borich@us.xyratex.com \
    --cc=arjanv@redhat.com \
    --cc=linux-scsi@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 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.