From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D57EFC433F5 for ; Tue, 23 Nov 2021 14:44:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235525AbhKWOrR (ORCPT ); Tue, 23 Nov 2021 09:47:17 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:22209 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232316AbhKWOrQ (ORCPT ); Tue, 23 Nov 2021 09:47:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1637678648; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+b7hniopIn0+NuG/R150d+pf5Z8VHz5+FBwlDcbPWE0=; b=hSD2LUTkdHW7KGOTKnHxfV5wsIhNwubEcqI2ZDpwgplO7juoU7PbuUC/25USsy/MHKnhIo nBz+uldqgPkzWC0A2JmWeG3EbLCA2ZYsUuuEm//2VsBguOy0M3tuxAd1SEjMl+u1kuiaDp tcxwhF6eqXoUxX9YXWejRzWmy8TDckY= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-590-_iqNNfukNUiF0Mbe82I3eg-1; Tue, 23 Nov 2021 09:44:06 -0500 X-MC-Unique: _iqNNfukNUiF0Mbe82I3eg-1 Received: by mail-wm1-f70.google.com with SMTP id ay34-20020a05600c1e2200b00337fd217772so1654718wmb.4 for ; Tue, 23 Nov 2021 06:44:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent :content-language:to:cc:references:from:organization:subject :in-reply-to:content-transfer-encoding; bh=+b7hniopIn0+NuG/R150d+pf5Z8VHz5+FBwlDcbPWE0=; b=1JrO/Z0++DwAW0zgtugc83G7cU1UvcKm5ZDKieAxceUnR/Kx1kIGSO14dpF6Rp5KAA JLOdv+jsO60dtfUK5ZrcvXwEho1uIkviKxdaURdz9wQbrUnoQYLHzrD84hYQXIFlgNJW C6grvaZ2TiVyF+GrF8jJ86qDKEYxwtOPvoBNYXxqhE4Bz9aCrHgML2QU0cDyy+m0Kyat yakLQDB4MjL00fVCGhT33q5XiIo984NxbEGqmrUuGUAoZT+b/sRQYgUrD20mlyZMuv+W +IdtuhFq5l7VHK9HQyi4AC2d5bOSUSOicpz9aTAF9IeD6gvOMx3f4fhjWOHlknrYtvmq rPhw== X-Gm-Message-State: AOAM5320mgOGY1l1haDzInYq8Y+naHeIxhtiKaXns3WtlIOOeescJdu/ 1c5Vra0e0/XIzXvq38cN6Eagbu+qrStqpxaSWchh4kfBoxKi2CGyxjLuo3KwqaVVzA+1OnKTedZ U++5xBY4Eg/E7t2quq0Lp X-Received: by 2002:a05:600c:1e27:: with SMTP id ay39mr3789369wmb.84.1637678645514; Tue, 23 Nov 2021 06:44:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJyXHlUChmsYKu5C0L7zYHRrKMd0CHdQq3Ns4Q1cTolIpJelDb2DU4YulsCILGh7hPoTHzta5A== X-Received: by 2002:a05:600c:1e27:: with SMTP id ay39mr3789337wmb.84.1637678645296; Tue, 23 Nov 2021 06:44:05 -0800 (PST) Received: from [192.168.3.132] (p5b0c6765.dip0.t-ipconnect.de. [91.12.103.101]) by smtp.gmail.com with ESMTPSA id g13sm1408508wmk.37.2021.11.23.06.44.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 23 Nov 2021 06:44:04 -0800 (PST) Message-ID: Date: Tue, 23 Nov 2021 15:44:03 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Content-Language: en-US To: Jason Gunthorpe Cc: Jens Axboe , Andrew Dona-Couch , Andrew Morton , Drew DeVault , Ammar Faizi , linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, io_uring Mailing List , Pavel Begunkov , linux-mm@kvack.org References: <20211116114727.601021d0763be1f1efe2a6f9@linux-foundation.org> <20211116133750.0f625f73a1e4843daf13b8f7@linux-foundation.org> <8f219a64-a39f-45f0-a7ad-708a33888a3b@www.fastmail.com> <333cb52b-5b02-648e-af7a-090e23261801@redhat.com> <5f998bb7-7b5d-9253-2337-b1d9ea59c796@redhat.com> <20211123132523.GA5112@ziepe.ca> <10ccf01b-f13a-d626-beba-cbee70770cf1@redhat.com> <20211123140709.GB5112@ziepe.ca> From: David Hildenbrand Organization: Red Hat Subject: Re: [PATCH] Increase default MLOCK_LIMIT to 8 MiB In-Reply-To: <20211123140709.GB5112@ziepe.ca> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-api@vger.kernel.org On 23.11.21 15:07, Jason Gunthorpe wrote: > On Tue, Nov 23, 2021 at 02:39:19PM +0100, David Hildenbrand wrote: >>> >>>> 2) Could be provide a mmu variant to ordinary users that's just good >>>> enough but maybe not as fast as what we have today? And limit >>>> FOLL_LONGTERM to special, privileged users? >>> >>> rdma has never been privileged >> >> Feel free to correct me if I'm wrong: it requires special networking >> hardware and the admin/kernel has to prepare the system in a way such >> that it can be used. > > Not really, plug in the right PCI card and it works Naive me would have assumed that the right modules have to be loaded (and not blacklisted), that there has to be an rdma service installed and running, that the NIC has to be configured in some way, and that there is some kind of access control which user can actually use which NIC. For example, I would have assume from inside a container it usually wouldn't just work. But I am absolutely not a networking and RDMA expert, so I have to believe what you say and I trust your experience :) So could as well be that on such a "special" (or not so special) systems there should be a way to restrict it to privileged users only. > > "special" is a bit of a reach since almost every NIC sold in the > 100GB > segment supports some RDMA. -- Thanks, David / dhildenb