mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@osdl.org>
To: Lars Roland <lroland@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Fusion MPT driver version 3.01.20 VS. version 2.03.00
Date: Tue, 7 Jun 2005 21:18:04 -0700	[thread overview]
Message-ID: <20050607211804.5763993b.akpm@osdl.org> (raw)
In-Reply-To: <4ad99e050506071428278c3018@mail.gmail.com>

Lars Roland <lroland@gmail.com> wrote:
>
>  We have a bunch of IBM 335/336 used as email (anti-virus/spam)
>  gateways. Recently our admin changed the kernel version from version
>  2.4.24 to 2.6.8.1 - this resulted in a massive performance
>  degradation. The old system could handle 60.000 emails pr. hour the
>  new one could only handle about 30.000 emails (this was tested by
>  sampling 60.000 emails and sending them to the server).
> 
>  After poking a bit around (changing hardware and upgrading bios's) I
>  realized that the time spend for writing the files to the disk have
>  gone up (multiple small writes seams to kill it)

The driver was broken for a while in a way which caused it to run slowly if
it was linked into the kernel image, but it runs OK if loaded as a module.

<digs around>

Here's a minimal patch - it fixes it, but iirc, this isn't what was merged.
(Or you could just use 2.6.12-rc6).

--- 25/drivers/message/fusion/mptscsih.c~mpt-fusion-speedup	2005-03-22 02:43:24.000000000 -0800
+++ 25-akpm/drivers/message/fusion/mptscsih.c	2005-03-22 02:43:24.000000000 -0800
@@ -96,7 +96,6 @@ MODULE_AUTHOR(MODULEAUTHOR);
 MODULE_DESCRIPTION(my_NAME);
 MODULE_LICENSE("GPL");
 
-#ifdef MODULE
 static int dv = MPTSCSIH_DOMAIN_VALIDATION;
 module_param(dv, int, 0);
 MODULE_PARM_DESC(dv, "DV Algorithm: enhanced = 1, basic = 0 (default=MPTSCSIH_DOMAIN_VALIDATION=1)");
@@ -112,7 +111,6 @@ MODULE_PARM_DESC(factor, "Min Sync Facto
 static int saf_te = MPTSCSIH_SAF_TE;
 module_param(saf_te, int, 0);
 MODULE_PARM_DESC(saf_te, "Force enabling SEP Processor: (default=MPTSCSIH_SAF_TE=0)");
-#endif
 
 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
 
@@ -1477,7 +1475,6 @@ mptscsih_init(void)
 		  ": Registered for IOC reset notifications\n"));
 	}
 
-#ifdef MODULE
 	dinitprintk((KERN_INFO MYNAM
 		": Command Line Args: dv=%d max_width=%d "
 		"factor=0x%x saf_te=%d\n",
@@ -1487,7 +1484,6 @@ mptscsih_init(void)
 	driver_setup.max_width = (width) ? 1 : 0;
 	driver_setup.min_sync_factor = factor;
 	driver_setup.saf_te = (saf_te) ? 1 : 0;;
-#endif
 
 	if(mpt_device_driver_register(&mptscsih_driver,
 	  MPTSCSIH_DRIVER) != 0 ) {
_


  reply	other threads:[~2005-06-08  4:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-07 21:28 Lars Roland
2005-06-08  4:18 ` Andrew Morton [this message]
     [not found] ` <20050607224033.GA14108@localhost.localdomain>
2005-06-09  8:26   ` Lars Roland
     [not found]     ` <20050609145709.GA23865@localhost.localdomain>
2005-06-10  9:07       ` Lars Roland

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=20050607211804.5763993b.akpm@osdl.org \
    --to=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lroland@gmail.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®