Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp1825049lqb; Sun, 26 May 2024 20:46:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV3yo49+df5bWv9yOGQp2aSjRR2JaAf6ra/Z5OQ+7xCyDUPSKH4EHL3AMtwgTgBHN4ZLfu4Brc4Lg3Kv9X5jSOHxZ9LoFgfYfHPWjeyPA== X-Google-Smtp-Source: AGHT+IH6SfgW3yBkmGL5s9mBPtGNG5/zVFL44DihRXENfbUFAaGmoXx4/HxvzUbw+txEfztsvH6n X-Received: by 2002:a17:906:4f82:b0:a59:d0fc:7ac5 with SMTP id a640c23a62f3a-a62642d7328mr468030666b.32.1716781594154; Sun, 26 May 2024 20:46:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716781594; cv=pass; d=google.com; s=arc-20160816; b=idfIiqts/dLO3EAf+vAEKtxrClsIOhfp5KiKkNQeWTL7zI8NWBObh07s8xJgNjzPIH 0AsfaDRTyKkzGoSApNwcKJy5CgUCe3m/IqpzxPdnkVys+sYASMfk9N4ogsyg5SXniUNO eE0ezbiq/aV5Lvr2VBBdCCs96aTqOIvuSiFd4AEtJDFz+Mdux3WoYDvrEjHoIj4duGL+ qkG2jB9bzkr5lheZi/+LC3432HFAh1044XEdnVqttp2jlWMUF7wFAubqoZkhVkPH1fid MIUspbpaO5ihr10m8WDACgOdi+yvWl6GSqs/yPnP+EKIRgsYtEGPY9uL9r6LdorvoWMZ oVGw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date; bh=4z4Tkui3O73s/0V0yEBX13G/Vl31Fk2sD5oH1yqu9hY=; fh=+ruaI8I0sb53dVSbOx5iQFXGLxMfqVefVJBOLMvHBB0=; b=wLhr87qCq2Xu4/xsqgzi/Mw47AU1VN6R4xgjjmsUC2+mF8gjfnNZ7ml2kjfINPQdbD 0fsrRA+bozj5Or9nGXYdkgj6vIRMi+U9u6nYeP+JxVDxH4E6hx+a2wI/KmV0GCsneKyL 5caX+EDciHlWaAtbq6jWEZeEmARg5xmIAIHGd+5DEa9pjQWA+VU2O9pnF1H6Psdvb5yh bfYtIUFk+pDFSc6cGzrkhFfnS+aPdQxgd4+eTMi/1n2AUFL069yQEwDzGgUDTKuMdj1+ +USc1cFk0qdS6+JYYyMnx67FCHC81VOmh7BiT/vl/tj5Jxs/737Hth7S3jZ2KREjsUxK W28Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=sk.com); spf=pass (google.com: domain of linux-kernel+bounces-189994-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189994-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a62fc22ba49si45677066b.393.2024.05.26.20.46.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 May 2024 20:46:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-189994-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sk.com); spf=pass (google.com: domain of linux-kernel+bounces-189994-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189994-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id DED761F21B58 for ; Mon, 27 May 2024 03:46:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C307379E1; Mon, 27 May 2024 03:46:27 +0000 (UTC) Received: from invmail4.hynix.com (exvmail4.hynix.com [166.125.252.92]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C1E7E10E5 for ; Mon, 27 May 2024 03:46:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=166.125.252.92 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716781587; cv=none; b=gBr7AMmjoY1PekexmKspvawSgpZhOcwlgDbVrzvAduaDA2C4Sbh5Hhp20QQsSKiGOedwO0e4STEbwc8p/g/pQO4vsYjQK3N58l4Mvm0bwgnd5s5gk2DWn+/pHxBED4NcJ7qCPqj62iDrcBVHXPTo9PXRwarCMztrWB60gwlygDk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716781587; c=relaxed/simple; bh=eEXS+I7ieXLR5ZpU0pu31fAUvLwHh9+1q0Ak8+u86Ac=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=koIwOvnbLC0XEe/GWYAeLdru04CBwYHuxLxvL7DDl6D/ujBXFZ34FAMy/YTdpLdnL5m/XCx4G0oaCyozXxdYo+a7qmKC53Q8SiGhpnHSaBl8/kEI6euuIgSv2sSAFpnkl1Xrj+7xQJ+PShRJT+Ys2wFOvagX4tbk6zKxE6JdYB0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sk.com; spf=pass smtp.mailfrom=sk.com; arc=none smtp.client-ip=166.125.252.92 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sk.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sk.com X-AuditID: a67dfc5b-d6dff70000001748-5f-6654020b6189 Date: Mon, 27 May 2024 12:46:14 +0900 From: Byungchul Park To: Dave Hansen Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, kernel_team@skhynix.com, akpm@linux-foundation.org, ying.huang@intel.com, vernhao@tencent.com, mgorman@techsingularity.net, hughd@google.com, willy@infradead.org, david@redhat.com, peterz@infradead.org, luto@kernel.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, rjgolo@gmail.com Subject: Re: [PATCH v10 00/12] LUF(Lazy Unmap Flush) reducing tlb numbers over 90% Message-ID: <20240527034614.GA12937@system.software.com> References: <20240510065206.76078-1-byungchul@sk.com> <982317c0-7faa-45f0-82a1-29978c3c9f4d@intel.com> <20240527015732.GA61604@system.software.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrMIsWRmVeSWpSXmKPExsXC9ZZnkS43U0iawd0GW4s569ewWXze8I/N 4tPLB4wWLza0M1p8Xf+L2eLppz4Wi8u75rBZ3Fvzn9Xi/K61rBY7lu5jsrh0YAGTxfHeA0wW 8+99ZrPYvGkqs8XxKVMZLX7/ACo+OWsyi4Ogx/fWPhaPnbPusnss2FTqsXmFlsfiPS+ZPDat 6mTz2PRpErvHu3Pn2D1OzPjN4jHvZKDH+31X2Ty2/rLzaJx6jc3j8ya5AL4oLpuU1JzMstQi fbsErowjh+ezF5xmq3j2cC5zA2MfaxcjJ4eEgInE3U+XWWDsJ1MOM4HYLAKqEm+WfmcGsdkE 1CVu3PgJZosA2adWLmfvYuTiYBb4zyRx/2ErWEJYIERi2oc1YM28AhYSuw8uZwIpEhI4xSjR d+kNM0RCUOLkzCdg25gFtCRu/HsJVMQBZEtLLP/HARLmFLCV2Dn3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rMC0wT4k1JrKxKLcqPLyrNSS0+xCjNwaIk zusVnpogJJCeWJKanZpakFoEk2Xi4JRqYJx/qk38Qv4bzoeHGbb3btdT5nRdyPlZ7fz8dzos YkomlZxCe6d8nr9pw8tZIlayP92+yfBaf7LQWhi1/XCq4etrvhNv1thcCJdwXKEhrfrgyu45 Ux9s/niNxymyt+e148K8a+a7pZZ7fL009+H9D9eCGK+sXC3OV9Uks9BO8dU9rhmhjFIMdxKU WIozEg21mIuKEwEPJJMVrQIAAA== X-CFilter-Loop: Reflected On Sun, May 26, 2024 at 07:43:10PM -0700, Dave Hansen wrote: > On 5/26/24 18:57, Byungchul Park wrote: > ... > > Plus, I will add another give-up at code changing the permission of vma > > to writable. > > I suspect you have a much more general problem on your hands. Just > tweaking the VFS or mmap() code likely isn't going to cut it. LUF is interested in limited folios that are migratable or reclaimable in lru for now. So, IMHO, fixing a few things is going to cut it. > I guess we'll see what you come up with next, but this email was really > just the result of Vlastimil and I chatting on IRC for five minutes > about this set. > > It has absolutely not been tested nor reviewed enough. I hope the > performance gains stick around once more of the bugs are gone. Sure. It should be. Byungchul