linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RE: Bad SCSI performance with 2.6.14 and Fusion-MPT
@ 2005-11-17 17:58 Moore, Eric Dean
  2005-11-17 18:24 ` Alan D. Brunelle
  0 siblings, 1 reply; 10+ messages in thread
From: Moore, Eric Dean @ 2005-11-17 17:58 UTC (permalink / raw)
  To: Alan D. Brunelle; +Cc: Michael Renner, linux-scsi

[-- Attachment #1: Type: text/plain, Size: 856 bytes --]

On  Thursday, November 17, 2005 10:08 AM, Alan D. Brunelle wrote:
> >Please use the patch I posted last night, apply to 2.6.15-rc1-git4.
> >It addresses this issue.  
> >
> >Here is the URL to this patch:
> >
> >http://marc.theaimsgroup.com/?l=linux-scsi&m=113219282408101&w=2
> >
> >Eric Moore
> >LSI Logic
> >
> >
> >  
> >
> FYI - I did try it earlier this morning with 2.6.14.2 and it 
> did *not* 
> fix the issue. I will see about updating to 2.6.15-rc1-git4, 
> and trying 
> that again...
> 

Ok, that make sense, I see your patch is handling mpt_config.

So with the patch I provided at the link above, can you apply
this patch over that. I've added the sync code in mpt_config.
Please let me know the results.  I also have a tool called 
getspeed that I can send you. It dump's the programmed
speed the devices were negotiated at.

Eric Moore




[-- Attachment #2: 1a-perf-fix.patch --]
[-- Type: application/octet-stream, Size: 1101 bytes --]

diff -uarN b/drivers/message/fusion/mptbase.c a/drivers/message/fusion/mptbase.c
--- b/drivers/message/fusion/mptbase.c	2005-11-16 18:19:11.000000000 -0700
+++ a/drivers/message/fusion/mptbase.c	2005-11-17 10:43:18.000000000 -0700
@@ -5053,11 +5053,20 @@
 		return -EPERM;
 	}
 
+	if(mpt_alt_ioc_wait(ioc)!=0) {
+		dcprintk((MYIOC_s_WARN_FMT "alt_ioc busy!\n",
+		    ioc->name));
+		return -EBUSY;
+	}
+
 	/* Get and Populate a free Frame
 	 */
 	if ((mf = mpt_get_msg_frame(mpt_base_index, ioc)) == NULL) {
 		dcprintk((MYIOC_s_WARN_FMT "mpt_config: no msg frames!\n",
 				ioc->name));
+		spin_lock(&ioc->initializing_hba_lock);
+		ioc->initializing_hba_lock_flag=0;
+		spin_unlock(&ioc->initializing_hba_lock);
 		return -EAGAIN;
 	}
 	pReq = (Config_t *)mf;
@@ -5139,6 +5148,10 @@
 	mpt_put_msg_frame(mpt_base_index, ioc, mf);
 	wait_event(mpt_waitq, pCfg->wait_done);
 
+	spin_lock(&ioc->initializing_hba_lock);
+	ioc->initializing_hba_lock_flag=0;
+	spin_unlock(&ioc->initializing_hba_lock);
+
 	/* mf has been freed - do not access */
 
 	rc = pCfg->status;

^ permalink raw reply	[flat|nested] 10+ messages in thread
* RE: Bad SCSI performance with 2.6.14 and Fusion-MPT
@ 2005-11-17 21:48 Moore, Eric Dean
  0 siblings, 0 replies; 10+ messages in thread
From: Moore, Eric Dean @ 2005-11-17 21:48 UTC (permalink / raw)
  To: Alan D. Brunelle; +Cc: Michael Renner, linux-scsi

On Thursday, November 17, 2005 11:24 AM, Alan D. Brunelle wrote:

> Which is *much* better!
> 
> Thanks!
> Alan

Thanks so much.  I will repost later today with a patch, that will
apply over the last patch[7/7] from yesterday.   I'm busy  in the lab
at the moment. Before I leave the office tonight, I will repost it.

Eric

^ permalink raw reply	[flat|nested] 10+ messages in thread
* RE: Bad SCSI performance with 2.6.14 and Fusion-MPT
@ 2005-11-17 16:57 Moore, Eric Dean
  2005-11-17 17:08 ` Alan D. Brunelle
  0 siblings, 1 reply; 10+ messages in thread
From: Moore, Eric Dean @ 2005-11-17 16:57 UTC (permalink / raw)
  To: Alan D. Brunelle, Michael Renner; +Cc: linux-scsi

On Thursday, November 17, 2005 7:53 AM,  Alan D. Brunelle wrote:
> It doesn't surprise me that a different .config or hardware 
> change would 
> affect this. If I understand the problem correctly, then it 
> depends upon 
> timing - and changing things (hw or sw) could affect the outcome.
> 
> The posting by
> 
> The following works for me - but as noted previously, it may 
> be suspect 
> in general: I'm concerned about the indefinate delay (theoretical).
> 

Please use the patch I posted last night, apply to 2.6.15-rc1-git4.
It addresses this issue.  

Here is the URL to this patch:

http://marc.theaimsgroup.com/?l=linux-scsi&m=113219282408101&w=2

Eric Moore
LSI Logic



^ permalink raw reply	[flat|nested] 10+ messages in thread
* re: Bad SCSI performance with 2.6.14 and Fusion-MPT
@ 2005-11-16 21:23 Alan D. Brunelle
  2005-11-16 21:27 ` Michael Renner
  0 siblings, 1 reply; 10+ messages in thread
From: Alan D. Brunelle @ 2005-11-16 21:23 UTC (permalink / raw)
  To: linux-scsi; +Cc: michael.renner

I'm seeing what looks to be the same problem (see: U320 SCSI negotiation 
problem in Linux 2.6.13 and later implementations on LSI Logic / Symbios 
Logic 53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI (rev 08)). [[I think I 
have a patch (perhaps suspect, but it works for me), if you're interested.]]

Alan D. Brunelle

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Bad SCSI performance with 2.6.14 and Fusion-MPT
@ 2005-11-10 20:18 Michael Renner
  0 siblings, 0 replies; 10+ messages in thread
From: Michael Renner @ 2005-11-10 20:18 UTC (permalink / raw)
  To: linux-scsi

Hi,

I'm seeing really bad scsi performance with 2.6.14 in combination with Fusion
MPT and amd64. The same behavior was seen in 2.6.14-git13.

The controller in question identifies itself as "LSI Logic / Symbios Logic
53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI (rev 07)", PCI ID 1000:0030.

Starting with 2.6.14 (didn't test the releases between 2.6.13 and 2.6.14) the
resync rate of the software raid dropped to about 2mb/sec on a raid1 array over
two scsi disks (normally I get around 60-80mb/sec), doing a dd from one disk to
the other supported those values. I can't give exact measures since a "sync"
call hangs since half an hour (was a bit too much data for testing) but vmstat
shows:

procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in    cs us sy id wa
 0  5      0 23873224 8198000  24288    0    0   463   259   71    23  0  0 83 17
 0  5      0 23872968 8198000  24288    0    0     0  4096  273    48  0  0 75 25
 0  5      0 23873340 8198000  24288    0    0     0     0  271    50  0  0 75 25
 0  4      0 23873084 8198000  24288    0    0     0  4096  270    49  0  0 75 24
 0  4      0 23873120 8198000  24288    0    0     0  4096  274    54  0  0 75 25
 0  4      0 23873120 8198000  24288    0    0     0     0  270    44  0  0 75 25
 0  4      0 23873136 8198000  24288    0    0     0  4096  272    51  0  0 75 25

which is bad.

Any ideas?

best regards,
Michael Renner


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2005-11-18  7:23 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-17 17:58 Bad SCSI performance with 2.6.14 and Fusion-MPT Moore, Eric Dean
2005-11-17 18:24 ` Alan D. Brunelle
2005-11-18  7:24   ` Douglas Gilbert
  -- strict thread matches above, loose matches on Subject: below --
2005-11-17 21:48 Moore, Eric Dean
2005-11-17 16:57 Moore, Eric Dean
2005-11-17 17:08 ` Alan D. Brunelle
2005-11-16 21:23 Alan D. Brunelle
2005-11-16 21:27 ` Michael Renner
2005-11-17 14:53   ` Alan D. Brunelle
2005-11-10 20:18 Michael Renner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).