Darren Reed wrote:
On 07/05/09 22:20, Garrett D'Amore wrote:
We may want to reexamine minor number allocation schemes in frameworks in the future though -- a number of frameworks make assumptions about how minor numbers are allocated, and while these work well with single purpose devices, they don't work well with multipurpose devices.

Just as a heads up, there are stress tests that simulate large
numbers of logins via telnet, so devices such as pts/pty need in
excess of 10,000 minor devices. They're not networking devices,
nor multipurpose devices, but they do need a larger than normal
number of minor nodes - well larger than I'd ever expected, at
any rate. Yes, it's a cloning device (and different in many
other ways), but I thought I'd just mention it as an FYI in
case it helps your thinking and planning.

Although I can't imagine each telnet login needing its own audio
device, can you? :)

Nope. pts/pty are their own device drivers, and as a pseudo driver don't need to share code with other kinds of device drivers in the same driver.

But even in this situation, with 18-bits, even if we reserve 10k minors, there would still be in excess of 1/4 million minor numbers available for clone devices.

   - Garrett

Darren


_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to