[lkml]   [2013]   [Jun]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject[PATCH 0/3] Increase the number of USB to serial devices we can support at once
Here are 3 patches that I've tested out on my system with only a small
number of devices, but it seems to work, so why not let others try it

These patches make the USB to serial core have the ability to support up
to 3000 devices at once now. We do this in the following steps:
- adding the minor number to the usb_serial_port structure
- removing the static array of ports, and use idr instead
- increasing the number

Now, if you pay attention, we end up taking up more runtime memory than
before, because we are asking the tty layer to reserve a bunch more tty
devices for us, negating the potential savings of getting rid of our
original static array. I'll work on fixing up the tty layer calls to
properly allocate the tty devices only when we need them, much like the
pty layer does. When that's done, we can bump the number of usb to
serial devices up to 16k with no memory problems.

This series is based on my usb-linus branch on my usb.git tree on, as I needed some of the usb-serial fixes that are in
that branch already.

Testing / review is most welcome.


greg k-h

 \ /
  Last update: 2013-06-05 20:42    [W:0.252 / U:0.416 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site