From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Ricardo Leitner Subject: Re: [PATCH v2 0/2] net/sctp: Avoid allocating high order memory with kmalloc() Date: Fri, 3 Aug 2018 17:30:09 -0300 Message-ID: <20180803203009.GG5482@localhost.localdomain> References: <20180724173647.GA8881@localhost.localdomain> <20180803162102.19540-1-khorenko@virtuozzo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: 'Konstantin Khorenko' , "oleg.babin@gmail.com" , "netdev@vger.kernel.org" , "linux-sctp@vger.kernel.org" , "David S . Miller" , Vlad Yasevich , Neil Horman , Xin Long , Andrey Ryabinin , Michael Tuexen To: David Laight Return-path: Received: from mail-qt0-f195.google.com ([209.85.216.195]:43942 "EHLO mail-qt0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727843AbeHCW2E (ORCPT ); Fri, 3 Aug 2018 18:28:04 -0400 Content-Disposition: inline In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: 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. Marcelo