Thread (32 messages) 32 messages, 6 authors, 2018-08-11

Re: [PATCH v2 0/2] net/sctp: Avoid allocating high order memory with kmalloc()

From: Michael Tuexen <hidden>
Date: 2018-08-03 23:02:16
Also in: linux-sctp

On 3. Aug 2018, at 22:30, Marcelo Ricardo Leitner [off-list ref] wrote:

On Fri, Aug 03, 2018 at 04:43:28PM +0000, David Laight wrote:
quoted
From: Konstantin Khorenko
quoted
Sent: 03 August 2018 17:21

Each SCTP association can have up to 65535 input and output streams.
For each stream type an array of sctp_stream_in or sctp_stream_out
structures is allocated using kmalloc_array() function. This function
allocates physically contiguous memory regions, so this can lead
to allocation of memory regions of very high order, i.e.:
...

Given how useless SCTP streams are, does anything actually use
more than about 4?
Maybe Michael can help us with that. I'm also curious now.
In the context of SIGTRAN I have seen 17 streams...

In the context of WebRTC I have seen more streams. In general,
the streams concept seems to be useful. QUIC has lots of streams.

So I'm wondering why they are considered useless.
David, can you elaborate on this?

Best regards
Michael
 Marcelo
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help