Re: Allow setting of number of raw devices as a module parameter

From: Greg KH
Date: Sat Apr 30 2011 - 01:41:55 EST


On Sat, Apr 30, 2011 at 01:09:51AM -0400, Dave Jones wrote:
> On Fri, Apr 29, 2011 at 05:07:04PM -0700, Greg KH wrote:
> > On Fri, Apr 29, 2011 at 04:28:17PM -0700, Andrew Morton wrote:
> > > On Fri, 29 Apr 2011 00:24:29 +0200
> > > Jan Kara <jack@xxxxxxx> wrote:
> > >
> > > > Allow setting of maximal number of raw devices as a module parameter. This
> > > > requires changing of static array into a vmalloced one (the array is going to
> > > > be too large for kmalloc).
> > > >
> > >
> > > Changelog failed to describe why the patch is needed. Lacking that
> > > information, we have no reason to apply it.
> >
> > Good point, how about:
> > People like running their machines with thousands of raw
> > devices, yet distros don't want to take up that much memory for
> > all users. Provide a way for everyone to be happy without
> > forcing the module to be rebuilt by providing the ability to
> > specify the number of raw devices as a module parameter option.
>
> I remember when this was made a config option, thinking "8192 raw devices?
> who would need that many?". I have to wonder just how someone manages
> a system with an insane number of these devices.

Think of a very large database benchmark with many thousands of "disks"
that are used to get very fast throughput numbers...

As for how they manage them, there's tools for that that companies are
very happy to sell you to make it easier (IBM, CA, etc.)

Bizarre, yes, unrealistic, no :(

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/