Skip to contentSkip to conversation

increase SD_STATS ?

DISCUSSION Frederic TEMPORELLI 2 participants 3 messages Aug 19, 2005 SCSI

lore
Share & tools
lore
#0 lore raw

Hi,

Due to SD_STATS=256 (/drivers/scsi/sd.c)
there's a limit on the max /dev/sd devices.

Now, we have a large FC fabric, with more than 3500 LUNs... => Of course, we have an Oops when an HBA is connected to the fabric (still sd.c, BUG in function sd_iostats_bump when sd>SD_STATS)

What (bad) side-effects can be expected if we increase SD_STATS (4096 should be nice, may be 8192) ?

Best regards.

Signature · 1 line
Frederic TEMPORELLI
#1 lore raw
Quoted 6 lines · Frederic TEMPORELLI

Hi,

Due to SD_STATS=256 (/drivers/scsi/sd.c)
there's a limit on the max /dev/sd devices.

Quoted 8 lines

Now, we have a large FC fabric, with more than 3500 LUNs... => Of course, we have an Oops when an HBA is connected to the fabric (still sd.c, BUG in function sd_iostats_bump when sd>SD_STATS)

What (bad) side-effects can be expected if we increase SD_STATS (4096 should be nice, may be 8192) ?

From you description it looks like you are using some odd 2.4.x vendor

tree. Just upgrade to latest 2.6 and these limitations will go away.

#2 lore raw

Hello Christoph,

Thanks for your answer.

Yes, I investigate about my kernel source (2.6.12) and I find that patches based on a RHEL kernel sources have been applied. This explains the odd 2.4 sd.c.

Best regards.

Quoted 23 lines · Christoph Hellwig
Quoted 6 lines · Frederic TEMPORELLI

Hi,

Due to SD_STATS=256 (/drivers/scsi/sd.c)
there's a limit on the max /dev/sd devices.

Quoted 8 lines

Now, we have a large FC fabric, with more than 3500 LUNs... => Of course, we have an Oops when an HBA is connected to the fabric (still sd.c, BUG in function sd_iostats_bump when sd>SD_STATS)

What (bad) side-effects can be expected if we increase SD_STATS (4096 should be nice, may be 8192) ?

From you description it looks like you are using some odd 2.4.x vendor

tree. Just upgrade to latest 2.6 and these limitations will go away.

-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 1 line
Frederic TEMPORELLI