Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5B9BEC433F5 for ; Wed, 17 Nov 2021 23:17:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 30D15610C8 for ; Wed, 17 Nov 2021 23:17:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233853AbhKQXU3 (ORCPT ); Wed, 17 Nov 2021 18:20:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241527AbhKQXU1 (ORCPT ); Wed, 17 Nov 2021 18:20:27 -0500 Received: from mail-io1-xd29.google.com (mail-io1-xd29.google.com [IPv6:2607:f8b0:4864:20::d29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CEB1C061766 for ; Wed, 17 Nov 2021 15:17:28 -0800 (PST) Received: by mail-io1-xd29.google.com with SMTP id m9so5600113iop.0 for ; Wed, 17 Nov 2021 15:17:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20210112.gappssmtp.com; s=20210112; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=4BiqYeFyKUrWFUw/gzjS0FZN3/WTO0Znkg4w19bFepY=; b=2PdrfO7yzAA4x9le/Tj6UJ+YnIymJa7LRIc3PwxxepK37vhpk3cKuTWSSAis90ouIu xTXMmAZGnzECbvm3qtz0DkiuSLJ5zw+dB678lP+sKQ8IFTvc/rjfIaBjKeuOVY/lhxO+ 0t1xq9bddVMeemBgP+Sw5WDDZiUMX/ya4FSDBt4pgAnTnugjMk+ORDGO88w0LVl36nJR t3yZBI91yB80vBpiUfvc1OcVTicGGE2iZNSRDmCtlGtTEGsRmDzg0hBZy23t7KcAzGP0 yYmYy68JbCLryX0GuWfB/odOjJCXcKWvvlOvHxLxoIM/1TLE8NFvRUjQa0az4EocJYYt T7mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=4BiqYeFyKUrWFUw/gzjS0FZN3/WTO0Znkg4w19bFepY=; b=ldCN6XDz6FWgRK+uGoQVAjLuduO7iYBU2zw7IBzX22tPsD189DsrlABflNa5ymlSSS avBJvK1uELnwvawefrMf3hNbneJc88KBOwovrSk3EqsUTSOWXmt2cR0TAKFcnhzJ7PbO v/tNKEbcrcxvUpSHa8eW1Rk4pj75seRCnovIT5rwyTfhICDicTxzT5XTznrjzDvm0CS+ TMQPTaG98tYb/Z1sYw3usesNKlXFp78LKm/bqMnvZvKu48KbyHmU09n0oqAyQCHjmEWq dIXLKgfGLSHy1oLy0IunSpshQkgtJvpXn9ht12tsmxBYE4rAvcw/juT1drzVhFXxzA6r QitA== X-Gm-Message-State: AOAM533JzEmiHeMBFQoTFruwnabC7mIp4/VxL/obDpo1Ed86m2BJhHDb nhlhH4uxIwLkG0RfW1+rrdJOAA== X-Google-Smtp-Source: ABdhPJw6QAgvvsx4XIRmlrgi4MYpz0T6lzQvLpDB0Gv5hKTBDk1YUzEl0KIKWdvUyhIzrs4D9tEPBA== X-Received: by 2002:a05:6638:260d:: with SMTP id m13mr16951793jat.99.1637191047442; Wed, 17 Nov 2021 15:17:27 -0800 (PST) Received: from [192.168.1.116] ([66.219.217.159]) by smtp.gmail.com with ESMTPSA id b15sm844654iln.36.2021.11.17.15.17.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 17 Nov 2021 15:17:27 -0800 (PST) Subject: Re: [PATCH] Increase default MLOCK_LIMIT to 8 MiB To: Johannes Weiner , Andrew Morton Cc: Ammar Faizi , Drew DeVault , linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, io_uring Mailing List , Pavel Begunkov , linux-mm@kvack.org References: <20211028080813.15966-1-sir@cmpwn.com> <593aea3b-e4a4-65ce-0eda-cb3885ff81cd@gnuweeb.org> <20211115203530.62ff33fdae14927b48ef6e5f@linux-foundation.org> From: Jens Axboe Message-ID: Date: Wed, 17 Nov 2021 16:17:26 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-api@vger.kernel.org On 11/17/21 3:26 PM, Johannes Weiner wrote: >> Link: https://lkml.kernel.org/r/20211028080813.15966-1-sir@cmpwn.com >> Signed-off-by: Drew DeVault >> Acked-by: Jens Axboe >> Acked-by: Cyril Hrubis >> Cc: Pavel Begunkov >> Signed-off-by: Andrew Morton > > Acked-by: Johannes Weiner > > As per above, I think basing it off of RAM size would be better, but > this increase is overdue given all the new users beyond mlock(), and > 8M is much better than the current value. That's basically my reasoning too. Let's just get something going that will at least unblock some valid use cases, and not get bogged down with aiming for perfection. The latter can happen in parallel, but it should not hold it up imho. -- Jens Axboe