Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Feb 2011 11:00:11 -0700
From:      "Kenneth D. Merry" <ken@freebsd.org>
To:        Joachim Tingvold <joachim@tingvold.com>
Cc:        freebsd-scsi@freebsd.org, Alexander Motin <mav@freebsd.org>
Subject:   Re: mps0-troubles
Message-ID:  <20110204180011.GA38067@nargothrond.kdm.org>
In-Reply-To: <FFF5EF18-055C-4E0C-8F9B-03564217F80F@tingvold.com>
References:  <20110113203750.GA39494@nargothrond.kdm.org> <B22C5568-24D0-4530-B90A-BA6A6CAF111C@tingvold.com> <20110114001758.GA12793@nargothrond.kdm.org> <D24332F3-56AF-484C-9592-1097BF684E37@tingvold.com> <07392102-4584-4690-9188-5202728CC7CA@tingvold.com> <20110120155746.GA22515@nargothrond.kdm.org> <BC40CE83-6116-49CD-8D37-5BC29893449D@tingvold.com> <070C12D5-A54F-4A48-A151-EBA16EF32A13@tingvold.com> <20110203221056.GA25389@nargothrond.kdm.org> <FFF5EF18-055C-4E0C-8F9B-03564217F80F@tingvold.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Feb 04, 2011 at 14:50:34 +0100, Joachim Tingvold wrote:
> On Thu, Feb 03, 2011, at 23:10:56PM GMT+01:00, Kenneth D. Merry wrote:
> >Try running this, and then do 'sysctl hw.mps' and let's see what  
> >your low
> >water mark is for free chain elements.  We'll also want to make sure  
> >your
> >chain_free value is about equal to MPS_CHAIN_FRAMES when the system is
> >idle.  On my system with a LSI 9201-16i controller, I see:
> 
> While idle;
> 
> 	[jocke@filserver ~]$ sysctl hw.mps.0
> 	hw.mps.0.debug_level: 0
> 	hw.mps.0.allow_multiple_tm_cmds: 0
> 	hw.mps.0.io_cmds_active: 0
> 	hw.mps.0.io_cmds_highwater: 53
> 	hw.mps.0.chain_free: 2048
> 	hw.mps.0.chain_free_lowwater: 2029
> 	hw.mps.0.chain_alloc_fail: 0
> 
> After I copied a 22G file from 'storage' to 'zroot';
> 
> 	[jocke@filserver ~]$ sysctl hw.mps.0
> 	hw.mps.0.debug_level: 0
> 	hw.mps.0.allow_multiple_tm_cmds: 0
> 	hw.mps.0.io_cmds_active: 0
> 	hw.mps.0.io_cmds_highwater: 99
> 	hw.mps.0.chain_free: 2048
> 	hw.mps.0.chain_free_lowwater: 2029
> 	hw.mps.0.chain_alloc_fail: 0
> 
> After I copied a 22G file from 'zroot' to 'storage';
> 
> 	[jocke@filserver ~]$ sysctl hw.mps.0
> 	hw.mps.0.debug_level: 0
> 	hw.mps.0.allow_multiple_tm_cmds: 0
> 	hw.mps.0.io_cmds_active: 0
> 	hw.mps.0.io_cmds_highwater: 897

Looks like there were a lot of commands active at once.

> 	hw.mps.0.chain_free: 2048
> 	hw.mps.0.chain_free_lowwater: 2029
> 	hw.mps.0.chain_alloc_fail: 0

But no more than 19 chain elements used at any one time.

Perhaps it could depend on memory fragmentation somewhat.  Over time you
may see the low water mark go down a bit.

The good news is that it doesn't look like we have a leak.

Ken
-- 
Kenneth Merry
ken@FreeBSD.ORG



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110204180011.GA38067>