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 E9937C433FE for ; Tue, 23 Nov 2021 14:44:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235763AbhKWOrT (ORCPT ); Tue, 23 Nov 2021 09:47:19 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:53406 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229814AbhKWOrS (ORCPT ); Tue, 23 Nov 2021 09:47:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1637678650; 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=PZlA3v8lDszGnCi3zlt7xF8ILUHAHcE/citebHLWALBXz+FyznrUS0RPphJ15zUbHEN3Fr aqefmjic+z/q/MfTd+Ygf6Ty6ZQmiRD/iUUEIlmWBqoaz3NsVknZLiuDvjMRRAfusI5XGy n5U72Uk2X/GB2wrUXD9zlYn0y3VFjhs= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-559-n05Cl60SOVaI1zNb_yAizg-1; Tue, 23 Nov 2021 09:44:06 -0500 X-MC-Unique: n05Cl60SOVaI1zNb_yAizg-1 Received: by mail-wm1-f69.google.com with SMTP id v62-20020a1cac41000000b0033719a1a714so8549374wme.6 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=IaBz8wbVsRmGen752ueADW+eoCaPJ3g8ddZb8SMYlKYOMJjH4HmnHXl+a+tJG3L5g5 inuLEBzTL3rq+5oMCcUeTKvzzJv1TQrSrmHQDvxV9lBVe/k1zmSKqDKUYJZWLrWfZFWg rjA9i3NwYlRzqcxodw6rJqM0rga5nL1olKqivPEW4mPlDU2QLzf7A1xQeZES2g4E9jnZ AA01VVnup6pqPssfwtBqquhUawwbjdGGRAusSHMZhUpMrqNnpKqhla68qYDluq1pGi67 YhQtaZ1ndrbZMoPz7gpFmrOkg4YJn8kJu6fokBCC/aXav21h6ctYHqZlGF8SW68pGe8c guAw== X-Gm-Message-State: AOAM533WTZgrrHi2NfsfaSQGE4Fplq3SzoUvmX0FT8d/RIFmmTCmz/wi pOrFTPbrlEtYc3iEuGLHNBAlZKb1L6ti4WLEk5XspbBlFKtSm0kpO6Xf5AqFvYsUA21dSH1lJ7l LG7aZFC/oZ4wVY6uwgtk= X-Received: by 2002:a05:600c:1e27:: with SMTP id ay39mr3789371wmb.84.1637678645515; 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: io-uring@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