Re: [PATCH] scsi: /proc/scsi/scsi patch for large number of devices

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Aug 23, 2005 at 09:40:40AM -0700, Mark Haverkamp wrote:
> 
> I'm not sure if people care about /proc/scsi, but here is a patch so you
> can cat /proc/scsi/scsi when you have a large number of scsi devices.  I
> have over 4000 devices configured and when I would cat /proc/scsi/scsi I
> would see a memory allocation error.  I instead used the seq_file
> iterator to display the devices.  The patch is a little brute force, but
> it only took about 2.5 seconds to display 4000 devices.

We had this before, and the answer is: don't use /proc/scsi if you have
lots of device.  Don't even enable the config option.

-
: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux