Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp811132lqh; Fri, 31 May 2024 19:20:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUM4NI+Ke6cDdtKhumbCJCCULm+BAYLJYT1SOIYm4rupYWeW8YXUSKGsgjfLNxrnJaz9AURh7m9grbc4tVlCiDltH6HpO+/YyLJFwXsDw== X-Google-Smtp-Source: AGHT+IGpmhHKJJrGVx9Ni3vBTdGYzJENezTP78fuWg1uMCl+y/7PsJzU9f37U4ls1giRc2FkIbCL X-Received: by 2002:a17:906:3c06:b0:a5a:1a:b0e6 with SMTP id a640c23a62f3a-a681fc5ce7emr293351566b.9.1717208430532; Fri, 31 May 2024 19:20:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717208430; cv=pass; d=google.com; s=arc-20160816; b=l7DjkYi8xs8BBprOJ7TxrAITwXCyN7m23EugcVPIuq44RngUqYkLeCsdPH/7HtmcIS r/NEMXALxC3TMPDAHqj2UOvG0CTlRMtIYQ0fha/xjh17YJN0XzkorV872KjjwGX3QB3O MfsjPZokJQLivOTKEL9Yc0TFRnUc6Nm7ZyWUmOr9wWhONMurnGqDD0+gifKC0yl/DP7Q bDxQ3Ocsh2sZcfFbTF1aHDKvv65lXYprIZMLz06MM1I9DpMksUMG44B2WOzWLNEjQ3cY WRr1Tk2h5U/gdsN/svnebZX3C4G7UcxrXeHZVcxy6EhBTImRsarlu99tsFkKjsbEABgR NG/Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=29hoWkRwJJopRTaD5yxwEHHavNk9SWern4C/CoRhJEA=; fh=U1mqhpnHH7WF1X+mF4n/mlngRYlJxe2RpiqlKRPqbpY=; b=ZkP2VYwCzWkzhOr6P257ZAah3C7E9hZRrkFs1/e+IefDtwswfJGLA9VDxDWE/fQQou dUodLYxutGcjG6VmyCt/AWOeF4CjkDOlth2s/64LwlqivqQ7LtyZ1353J/4XKlDABQ+o F40qEiwZbafEFX27TpxBhpmxXCcvMgVa9onXbvjy0NUendSyucAATUAlq8ydLQn+h7s/ 0o8jQ7307tEUqHGf8NaGW3ziiBEW2LPIVT112Ap3qfT+djt9ngMjZVbjpCPM/44cvQUq 3JoNkCyKPPcyYTXoz093HMz1e0YUaR3ympZj58fWwK3CdsrmepbSvvlZK5V4f1bqSsxR 1kEw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=NDLTJsB5; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-197648-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197648-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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-a67ea38cb2bsi152978966b.388.2024.05.31.19.20.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 19:20:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-197648-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; dkim=pass header.i=@gmail.com header.s=20230601 header.b=NDLTJsB5; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-197648-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197648-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 1BAC11F243CC for ; Sat, 1 Jun 2024 02:20:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A45B0AD31; Sat, 1 Jun 2024 02:20:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="NDLTJsB5" Received: from mail-yb1-f182.google.com (mail-yb1-f182.google.com [209.85.219.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7B51C6FA8 for ; Sat, 1 Jun 2024 02:20:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717208422; cv=none; b=DEpq2mwMjbeykOWo/9/2vinYDyZWppCxWtGiXFUXmoyMXPGggtJen7ddhq3ZPfhbC5LxQnb9wtViSsnvOthr/8J0yXFMXsZNFXIB4Ndc/jkcebq4YS8lPioRA2iAM2D7eoh4fjktegfzAawl2KPhriv5kLoVZmpy0F0u3a7b4nI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717208422; c=relaxed/simple; bh=d9Lw8NUoUCIYQ+yLxVSF49sOJheG/9m65dkQ42MAi74=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=jPJgm5UfeG8KWjZaGv6ntm4dcmh1jgmuP6itj/cPbHC43CJyGVWbYNrdH9AJ86jaiMf+mH9++/sOtkXpWsuuHsr2EY8GfL1x1iqiNG/beIaB7frJ8yGgSElQUdpQf1scquuq2BJZIwvnbHmS00l4UxzcIroUSBXFYrQCM32rbJU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=NDLTJsB5; arc=none smtp.client-ip=209.85.219.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-yb1-f182.google.com with SMTP id 3f1490d57ef6-dfa59545e0fso2564799276.0 for ; Fri, 31 May 2024 19:20:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717208420; x=1717813220; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=29hoWkRwJJopRTaD5yxwEHHavNk9SWern4C/CoRhJEA=; b=NDLTJsB5DwCFDe7c+v1B8VhRsJTlF4PTxZ99j3+X605Y7q4/lKZEpUI+xkQc+nlB2N caGDPhkBTfHQ3TOSWaBSqQ/EX0jdKJ7YX7WE3m5fANwz+iRc8hj6OR6Tt/jsuBA8jwAn YjtQ/mYBCwmGIfZmD8TW9RXda/H2NiOvHUaWT1P95kRluZ7LLTp2hjP1DNCkJbKRh/Wa WiarBpjelqXMAWShE9aipe5g6OgBsa2vJMLZwad3u8Wx4oot8xrv5TGZrkJbYsxc/vR5 Tfj2PDKqwSgttJdh2Yqjgsh/teke+tS+X48dpYL+zfFrQ5lqWNC/xUcSawXazLKvLrUb Ildw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717208420; x=1717813220; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=29hoWkRwJJopRTaD5yxwEHHavNk9SWern4C/CoRhJEA=; b=WsEyaOM2+6hz+vyt9a7UIckjXyksYld7uQNxopSOyVKP4eaSrqxggnc5wxenv32089 6dwGVELw3V5rcTZlyMPXFuMo4RxdByOXJqR4Ym8gxF0eMN8uBxTUMuNsdhz/OoRHBDY1 eJSsAv1dj9pgyWZsNo4o8d3yYnzcP9qAdnJDUpwu5e+GfcmyrfvXp7hyDUx5uWRGPOel kfbMi8MmgHt75VYr37ab1HK4hJpeknsaHDqoJa0vr/FgOy44V1nNShuwAxHkd246dRaT flvvfjLlsmVWxZe2BLh+m/GiOucr98KoqNcLVjoMNdOnsP8uL1bNSYNSPWTDnbfJkN4T sJug== X-Forwarded-Encrypted: i=1; AJvYcCWjjLh8OT97zTdAPGI7N+lxxRuiyMP3S4v1D1HqlCe/hUYkKELZ1Z9M0Ue12qxFCF47lyRpKG6KcSYyTzowUthHjCBFZcSkubkr5POn X-Gm-Message-State: AOJu0YyyQvCTOI8Poox/dwpeJDggGkg+hpXusAxKMAp7HQHvrgHoBDFg Kj+8/kShXuVSXDFUu+YDv3PqGo9OVBMiNgQ3SMMXtfeM7IDx0FO5UC9FcjrypsIxHW4kRT2rxV4 RDJxOmc1wkCztNVNR6xi3nJBrn4o= X-Received: by 2002:a25:2fd7:0:b0:dfa:7513:59d7 with SMTP id 3f1490d57ef6-dfa75135b5bmr3509883276.65.1717208420279; Fri, 31 May 2024 19:20:20 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240531092001.30428-1-byungchul@sk.com> <20240531092001.30428-10-byungchul@sk.com> In-Reply-To: From: Byungchul Park Date: Sat, 1 Jun 2024 11:20:08 +0900 Message-ID: Subject: Re: [PATCH v11 09/12] mm: implement LUF(Lazy Unmap Flush) defering tlb flush when folios get unmapped To: Dave Hansen Cc: Byungchul Park , 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 Content-Type: text/plain; charset="UTF-8" Dave Hansen wrote: > > On 5/31/24 11:04, Byungchul Park wrote: > ... > > I don't believe you do not agree with the concept itself. Thing is > > the current version is not good enough. I will do my best by doing > > what I can do. > > More performance is good. I agree with that. > > But it has to be weighed against the risk and the complexity. The more > I look at this approach, the more I think this is not a good trade off. > There's a lot of risk and a lot of complexity and we haven't seen the All the complexity comes from the fact that I can't use a new space in struct page - that can make the design even lockless. I agree that keeping things simple is the best but I don't think all the existing fields in struct page are the result of trying to make things simple that you love. Some of them are more complicated. I'd like to find a better way together instead of yelling "it's unworthy cuz it's too complicated and there's too little space in mm world to accommodate new things". However, for the issues already discussed, I will think about it more before the next spin. Byungchul > full complexity picture. The gaps are being fixed by adding complexity > in new subsystems (the VFS in this case). > > There are going to be winners and losers, and this version for example > makes file writes lose performance. > > Just to be crystal clear: I disagree with the concept of leaving stale > TLB entries in place in an attempt to gain performance. >