From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751820AbeAPSLm convert rfc822-to-8bit (ORCPT + 1 other); Tue, 16 Jan 2018 13:11:42 -0500 Received: from mail.eperm.de ([89.247.134.16]:58338 "EHLO mail.eperm.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750997AbeAPSLk (ORCPT ); Tue, 16 Jan 2018 13:11:40 -0500 From: Stephan Mueller To: =?ISO-8859-1?Q?Bj=F6rn?= 'besser82' Esser Cc: David Miller , waltje@uwalt.nl.mugnet.org, flla@stud.uni-sb.de, A.Cox@swansea.ac.uk, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, trivial@kernel.org, labbott@redhat.com, zbyszek@in.waw.pl, linux-crypto@vger.kernel.org Subject: Re: [PATCH v2] net/core: Increase default optmem_max limit Date: Tue, 16 Jan 2018 19:11:37 +0100 Message-ID: <3580634.dJdEtStb76@tauon.chronox.de> In-Reply-To: <02fd8c825b9d77bfc6c7f6318cdddb85fb295ec6.camel@fedoraproject.org> References: <6842b4da93e5fb588b2e64550a20089e9f60fad6.camel@fedoraproject.org> <02fd8c825b9d77bfc6c7f6318cdddb85fb295ec6.camel@fedoraproject.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="iso-8859-1" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: Am Dienstag, 16. Januar 2018, 18:16:43 CET schrieb Björn 'besser82' Esser: Hi Björn, > With the new Linux Kernel Crypto API User Space Interface > and its underlying AF_ALG socket, the current default value > for `net.core.optmem_max` can be exhausted pretty quick when > using asynchronous IO; on 32 bit systems it is not even enough > for sending about 10 IOVECs at once to the socket interface. > > To provide consumers of this new user space interface a well > sufficient and reasonable maximum ancillary buffer size per > socket by default, the limit is increased to four times of > the previous setting: > > * 32 bit systems: from 10240 bytes to 40960 bytes > * 64 bit systems: from 20480 bytes to 81920 bytes > > This allows for sending 32/64 (32/64 bit) parallel IOVECs at > once to the socket interface, which should be enough for use > in real world applications. > > Signed-off-by: Björn Esser Considering NR_FILE defining the default maximum number of file descriptors, at max 335 MB of RAM (32 bit) or 670 MB (64 bit) could be allocated which I would assume to be ok in current systems. Reviewed-by: Stephan Mueller Ciao Stephan