Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp377625pxb; Mon, 16 Aug 2021 07:30:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzT8KS4ruZK6MVrkQFf7DJIAgT7ZNgp7JFiHiZ6NO+mkAW4z5AsAocNzispdSequC7JsJ+V X-Received: by 2002:a92:d103:: with SMTP id a3mr11831828ilb.0.1629124223456; Mon, 16 Aug 2021 07:30:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629124223; cv=none; d=google.com; s=arc-20160816; b=BgaXL2tYB5CkXRKYVyNRMOPSicYzOJPinCDXJpKIjOUcTjbx243Df37PyRBsnl5d7T nzq9gzgVP56b3NS0uI18YCQUFc0MRJSBmzalPvvBwkP/v+g01Q2nS8nXooEzpoduV7tU bhzFbmeqICHTK7v2cXboeIdrYUfLi6CfikWdlKVHfYCAedlgRvZzggljXU/dk5h4wD2u yVuUVvE7REjBGIHdWyxwyouaSNEN5h0j89H50qyIXvTzWMvBx1PWTvUUGv0zMiDV3DsL +fJwcMBBnt+luAZRzu5s5HMkVa45CVv36j8jTABsDnMbwkYosD/v1OV0tQ+Ex16niOJz N3VQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=WxJvdZx1S/GUBWkdMxiXeG3/WqogteDc2hsw7fqpOWQ=; b=Q35ZrJs3FUA0YYLN03N4tH8UBJ7L4VEaY12pYIi/pCpFGuU+5vvgBHgaPTBle48v1N BzJckqDQneyhU1t+Vx+xgbu60g0uIYtitv7RKI5k8aITB4h2CLKC/5eIWvV0vyQdq7z9 DDG1OxMUQ6er8SFlZx1eqfmrehAnPXzNsy6FBvXQDR34E5HU8PO/dZcxC+XMERMGJ4Mv HvKjV2+iFES0zEsRmaJ7MtnnhEwFQnSna/88C5R58f8Qdgwk8572FShntpua9rsbyF+0 SH+RmFBCGzXaXOoGdhvgZEVG5N0EoTppdVExzeZx+MlO7VV9I0S7+QCZKJtijE2WI7zr GxRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=aqgR5bsg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g8si1962045ioq.76.2021.08.16.07.30.11; Mon, 16 Aug 2021 07:30:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=aqgR5bsg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231971AbhHPO35 (ORCPT + 99 others); Mon, 16 Aug 2021 10:29:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229880AbhHPO34 (ORCPT ); Mon, 16 Aug 2021 10:29:56 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 469DBC061764 for ; Mon, 16 Aug 2021 07:29:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=WxJvdZx1S/GUBWkdMxiXeG3/WqogteDc2hsw7fqpOWQ=; b=aqgR5bsgQqTgxb7+KuMJOs76Tg n1HfBZZQxxcqM3mbaODNG0xMl6XO0UFaVW3P2ve1vwQhp3aGqHUZgLb7vhyHKnSMlz5wAsqn17phe 7JexrjksIgpA/y2P0Dlg3Wa3/P1QM4X9g/StN1kPntEl7i20inCbne+EwIux4M5z/PhGVnGUkGqWr 4Fns42xKv5l8ynPyoM6f3F0keF2/hDhbYenI6Wd0uGr+P9D++vbrWtzDwHLFNCeFYPqwogeSBStlY qUJ/WUNKb17HUHOycD7aUnh5iW1sZNAdQ2j0pd85CH3JyEvo6Yi39kTkcK2QCrCziAKJoEKexZi27 iOb1I5WQ==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mFdal-001Trs-Bq; Mon, 16 Aug 2021 14:28:09 +0000 Date: Mon, 16 Aug 2021 15:27:55 +0100 From: Matthew Wilcox To: David Hildenbrand Cc: Khalid Aziz , "Longpeng (Mike, Cloud Infrastructure Service Product Dept.)" , Steven Sistare , Anthony Yznaga , "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" , "Gonglei (Arei)" Subject: Re: [RFC PATCH 0/5] madvise MADV_DOEXEC Message-ID: References: <55720e1b39cff0a0f882d8610e7906dc80ea0a01.camel@oracle.com> <88884f55-4991-11a9-d330-5d1ed9d5e688@redhat.com> <40bad572-501d-e4cf-80e3-9a8daa98dc7e@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <40bad572-501d-e4cf-80e3-9a8daa98dc7e@redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 16, 2021 at 04:10:28PM +0200, David Hildenbrand wrote: > > > > Until recently, the CPUs only having 4 1GB TLB entries. I'm sure we > > > > still have customers using that generation of CPUs. 2MB pages perform > > > > better than 1GB pages on the previous generation of hardware, and I > > > > haven't seen numbers for the next generation yet. > > > > > > I read that somewhere else before, yet we have heavy 1 GiB page users, > > > especially in the context of VMs and DPDK. > > > > I wonder if those users actually benchmarked. Or whether the memory > > savings worked out so well for them that the loss of TLB performance > > didn't matter. > > These applications are extremely performance sensitive (i.e., RT workloads), "real time does not mean real fast". it means predictable latency. > > > I will rephrase my previous statement "hugetlbfs just doesn't raise these > > > problems because we are special casing it all over the place already". For > > > example, not allowing to swap such pages. Disallowing MADV_DONTNEED. Special > > > hugetlbfs locking. > > > > Sure, that's why I want to drag this feature out of "oh this is a > > hugetlb special case" and into "this is something Linux supports". > > I would have understood the move to optimize SHMEM internally - similar to > how we seem to optimize hugetlbfs SHMEM right now internally. (although > sharing page tables for shmem can still be quite tricky) > > I did not follow why we have to play games with MAP_PRIVATE, and having > private anonymous pages shared between processes that don't COW, introducing > new syscalls etc. It's not about SHMEM, it's about file-backed pages on regular filesystems. I don't want to have XFS, ext4 and btrfs all with their own implementations of ARCH_WANT_HUGE_PMD_SHARE.