Re: [PATCH 1/1] serial_core: Update buffer overrun statistics.

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

 



On Tue, May 15, 2012 at 1:41 PM, Corbin <corbinat@xxxxxxxxx> wrote:
> Maybe I don't have a complete understanding of what is happening, but
> it appears that the software buffer is actually artificially limited
> to 65536 bytes in the tty_buffer_alloc function in tty_buffer.c. I

...

> On Tue, May 15, 2012 at 11:27 AM, Alan Cox <alan@xxxxxxxxxxxxxxxxxxx> 
wrote:
>>
>> It'll occur when the machine cannot even allocate a free page of 
memory.
>> So you'll get GFP spews in the kernel log to go with it.

It seems to me that it would be undesirable to allow an ignored TTY device 
to consume all memory on the system.

It makes sense that the TTY layer would limit it to 64K, which is what 
Corbin observed in his test, but then there should be a mechanism to 
report that data had been discarded.

-Jason Smith
--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux