[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <2D7531CF-9E0A-4B33-83E5-724B7C88F363@lurchi.franken.de>
Date: Fri, 3 Aug 2018 22:56:56 +0200
From: Michael Tuexen <Michael.Tuexen@...chi.franken.de>
To: Marcelo Ricardo Leitner <marcelo.leitner@...il.com>
Cc: David Laight <David.Laight@...lab.com>,
Konstantin Khorenko <khorenko@...tuozzo.com>,
"oleg.babin@...il.com" <oleg.babin@...il.com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"linux-sctp@...r.kernel.org" <linux-sctp@...r.kernel.org>,
"David S . Miller" <davem@...emloft.net>,
Vlad Yasevich <vyasevich@...il.com>,
Neil Horman <nhorman@...driver.com>,
Xin Long <lucien.xin@...il.com>,
Andrey Ryabinin <aryabinin@...tuozzo.com>
Subject: Re: [PATCH v2 0/2] net/sctp: Avoid allocating high order memory with
kmalloc()
> On 3. Aug 2018, at 22:30, Marcelo Ricardo Leitner <marcelo.leitner@...il.com> wrote:
>
> On Fri, Aug 03, 2018 at 04:43:28PM +0000, David Laight wrote:
>> From: Konstantin Khorenko
>>> 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
Powered by blists - more mailing lists