Miod Vallat <m...@online.fr> wrote: > > > Opening a pseudo-tty (/dev/tty[p-zP-T][0-9a-zA-Z]) causes the kernel to > > > allocate a struct tty for it, as well as ring buffers for tty data. This > > > memory will not get released if the pseudo-tty is closed, for it may be > > > opened again in the future. > > > > The change seems reasonable to me. > > > > Years ago weren't we more lazy about allocating the tty buffer data? > > I have had a look at the history, but not beyond ~15 years. ttymalloc() > will always cause the ring buffers to be allocated, and only removable > devices such as ucom will release tty resources (upon detach).
The main impact will be due to growth of the buffers (for super high-speed serial)