Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

HBA Queue Depth

920 views
Skip to first unread message

mc...@hotmail.com

unread,
Dec 15, 2006, 11:15:56 AM12/15/06
to
I'm trying to determine the Queue Depth on a Qlogic FC HBA card in a
SunFire v240 running Solaris 8.

Anyone know how to check the current value and modify it..?

The card is a Sun badged QLogic card:

SUNWqlc Qlogic ISP 2200/2202 Fibre Channel Device Driver

Matt

mc...@hotmail.com

unread,
Dec 15, 2006, 11:32:48 AM12/15/06
to

mc...@hotmail.com

unread,
Dec 15, 2006, 11:56:09 AM12/15/06
to

Colin B.

unread,
Dec 15, 2006, 1:00:36 PM12/15/06
to
mc...@hotmail.com wrote:
> I'm trying to determine the Queue Depth on a Qlogic FC HBA card in a
> SunFire v240 running Solaris 8.
>
> Anyone know how to check the current value and modify it..?

Is there some reason you had to post this question three times in an hour?

Anyways, it's easy enough to set in /etc/system.
set sd:sd_max_throttle = 4
set ssd:ssd_max_throttle = 4

If I remember correctly, the second one is what the QLogic cards reference.
The first one is used by the JNI cards. Don't know which drivers others use.

You can find them from mdb as well.

# mdb -k
> sd_max_throttle/D
> ssd_max_throttle/D

Colin

mc...@hotmail.com

unread,
Dec 18, 2006, 4:03:08 AM12/18/06
to
> Is there some reason you had to post this question three times in an hour?

No reason - I didn't manually post it 3 times - there must have been a
problem with google newsgroups.

> Anyways, it's easy enough to set in /etc/system.
> set sd:sd_max_throttle = 4
> set ssd:ssd_max_throttle = 4
>
> If I remember correctly, the second one is what the QLogic cards reference.
> The first one is used by the JNI cards. Don't know which drivers others use.
>

Thanks, I found a message in the QLogic driver notes on the web which
says the same thing:

set sd:sd_max_throttle=nnn (in /etc/system)

> # mdb -k
> > sd_max_throttle/D
> > ssd_max_throttle/D

What is the /D switch for..?

When I run:

echo "sd_max_throttle/D" | mdb -k

I get

sd_max_throttle:
sd_max_throttle:256

Is the current value 256..? or the default value..?

Thanks for your help...

Matt

mc...@hotmail.com

unread,
Dec 18, 2006, 4:36:16 AM12/18/06
to
I'm now starting to question which one is being used for the QLogic
driver....

sd_max_throttle or
ssd_max_throttle:

The output of format seems to suggest the ssd driver...

2. c6t50060E800043FA00d1 <HITACHI-DF600F-0000 cyl 14197 alt 2 hd
50 sec 7 68>
/pci@1e,600000/SUNW,qlc@3/fp@0,0/ssd@w50060e800043fa00,1

acsd102#> echo "ssd_max_throttle/D" |mdb -k
ssd_max_throttle:
ssd_max_throttle: 64

acsd102#> echo "sd_max_throttle/D" |mdb -k
sd_max_throttle:
sd_max_throttle: 256

How can confirm which one is being used for the SAN disks..?

Matt

Colin B.

unread,
Dec 18, 2006, 12:48:15 PM12/18/06
to
mc...@hotmail.com wrote:
>> Is there some reason you had to post this question three times in an hour?
>
> No reason - I didn't manually post it 3 times - there must have been a
> problem with google newsgroups.

Ah, yes. Google groups, the beginning of Google's descent into evildom.

>> Anyways, it's easy enough to set in /etc/system.
>> set sd:sd_max_throttle = 4
>> set ssd:ssd_max_throttle = 4
>>
>> If I remember correctly, the second one is what the QLogic cards reference.
>> The first one is used by the JNI cards. Don't know which drivers others use.
>
> Thanks, I found a message in the QLogic driver notes on the web which
> says the same thing:
>
> set sd:sd_max_throttle=nnn (in /etc/system)

Interesting! Our QLogic cards definitely use the ssd driver.

>> # mdb -k
>> > sd_max_throttle/D
>> > ssd_max_throttle/D
>
> What is the /D switch for..?

Display the value of the 32-bit parameter, if I remember correctly.
Actually, the man page is clear on this (if you read far enough). D is
representative of a decimal signed int (4 bytes).

> When I run:
>
> echo "sd_max_throttle/D" | mdb -k
>
> I get
>
> sd_max_throttle:
> sd_max_throttle:256
>
> Is the current value 256..? or the default value..?

Yep. 256 is in fact the default value, and insanely high for most purposes.
In order to not oversubcribe our storage ports, we set it to 4 on most
machines.

Keep in mind that this is a limiting value--when we did some test a year
ago, it was hard to push the actual queue depth beyond two, even under
a heavy load.

Colin

Colin B.

unread,
Dec 18, 2006, 12:50:06 PM12/18/06
to
mc...@hotmail.com wrote:
> I'm now starting to question which one is being used for the QLogic
> driver....
>
> sd_max_throttle or
> ssd_max_throttle:
>
> The output of format seems to suggest the ssd driver...
>
> 2. c6t50060E800043FA00d1 <HITACHI-DF600F-0000 cyl 14197 alt 2 hd
> 50 sec 7 68>
> /pci@1e,600000/SUNW,qlc@3/fp@0,0/ssd@w50060e800043fa00,1

It certainly does. Methinks the release notes have a typo.

> acsd102#> echo "ssd_max_throttle/D" |mdb -k
> ssd_max_throttle:
> ssd_max_throttle: 64
>
> acsd102#> echo "sd_max_throttle/D" |mdb -k
> sd_max_throttle:
> sd_max_throttle: 256
>
> How can confirm which one is being used for the SAN disks..?

The definitive way is to use kstat, and see where your devices are attached.

This one works:
#kstat sd | egrep "^name:"
#kstat ssd | egrep "^name:"

Colin

0 new messages