Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp807023rdb; Fri, 2 Feb 2024 04:53:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IGEui1QE20XVwKC6nHqA49jVJCrsScn/V1RcWOvStXUQKoed5czatc2hJ4A+IK9FgGkud5a X-Received: by 2002:a17:906:53ca:b0:a37:1e:ef6e with SMTP id p10-20020a17090653ca00b00a37001eef6emr1113808ejo.57.1706878394974; Fri, 02 Feb 2024 04:53:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706878394; cv=pass; d=google.com; s=arc-20160816; b=BCpg7QjNRqvftGVrI8H0u9/MueLRIAPkBiBrb5eGkrEemm51aG431JD9NqGUG4gKyY hTqMdYImeC+YZwRTJNyDRCy+oNJ7jEZobHjV78nqQvJitIF/t7bnOvoog5OQMx5J1kq3 6o/gT4aa5uZ3SY8T5+jXH812tOHor2JRTH6h2FxUPaTRjdACUBhFnfTBOaCokvEQteFa HEchedn+vimYCbb9xN8NCBvxbkFkykeijLZUWMR4zCTk8CifdFLMAVr7zWNrfk4MQKia nml3S2ioVVzC3CiOECPCNDxyLCcmWZrl5DivVpbN4yBUWYsoDTWMnGGhRre6nj9mMh1+ o6hA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=uRWwHyoDqw4F+LcubyhbFy0WTRbHEZvIDfkqsptYoKs=; fh=KG4c5+rj1s6oByZXItTIPKwQoKhFGvir8I+nxu7nX/A=; b=o5VJXQ5s47RfRCLctR+3n17wy44haExCyAusUJ1i5ymG9P7M4vgcCTvSRl4tHx6OI4 m1U9WpOmy8JWm+GxGN179PFSuHH+0z1591IYq7ARvaEynCwX8r42vFUxkz48BYNcOxPg g5C/sQN6/SfaZbJe2Ys1K+iZbUU35RLODbib8zyZDEqjkPHclR45mTEkzzLtAq14tc4A aUiIURN+WwzTKWKb6CllHnTyPh+mH+IV0t1GotHgZDGcfH6dERyu3P7hFXDP+jZtCuM8 oNaVm3SbR5WLJbt9hpZAa0DN/B3LHyYUy6fNj2PoS3/ehN/sU0vecjXR5RGGa2kosjm/ PR7A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Y7d74Z6e; 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-49866-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49866-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com X-Forwarded-Encrypted: i=1; AJvYcCUbxw2ICyPytk7Vdc3U4t6YSmqVuVClQHDz7Dztj9aaqunyhmvKXuaIjQsKvnCF0lYhRlpCrdRUL6Vh8UuUUTXpVbvhNaop8G7rdLdr+A== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id j14-20020a170906410e00b00a368ed8b1fasi793297ejk.240.2024.02.02.04.53.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 04:53:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-49866-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=Y7d74Z6e; 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-49866-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49866-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 B65581F237AF for ; Fri, 2 Feb 2024 12:53:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B4D4F15B1; Fri, 2 Feb 2024 12:53:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Y7d74Z6e" Received: from mail-yb1-f171.google.com (mail-yb1-f171.google.com [209.85.219.171]) (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 85F5E4428 for ; Fri, 2 Feb 2024 12:53:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706878384; cv=none; b=lhk0ilWbnYudkzN66LhvVKGxQTWU082vePGMlvtCaUkP2fEQw7SgBp79H/pVkZnZloR2V+FJKPhiPp/05T7IMxM60BFaJq8zrUJRYbi6nLddoxVHjAwVLYsdMguJGfn0pk9tN1MkJpz6XnwYH9ypirv/azWs9+rJfcgbxyvSG2E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706878384; c=relaxed/simple; bh=uRWwHyoDqw4F+LcubyhbFy0WTRbHEZvIDfkqsptYoKs=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=SA6j8G2MmOCc3qK4zRfN/+8l5d4aTwUYd5gnQheFjZAJ76ivysEZr5YxOOynPrW8ImzskOvu8vMjuxkQvSIY85mY3vEKVTxMKenocdKYDX/7r98dzselyzX1/gGyon+Uhk1m5TanaWJ2ZNrruLf/RuEFZjNSRUP9M237mRTEeA4= 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=Y7d74Z6e; arc=none smtp.client-ip=209.85.219.171 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-f171.google.com with SMTP id 3f1490d57ef6-dc6d5206f18so2016986276.1 for ; Fri, 02 Feb 2024 04:53:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706878382; x=1707483182; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=uRWwHyoDqw4F+LcubyhbFy0WTRbHEZvIDfkqsptYoKs=; b=Y7d74Z6e9SEJUVQ4XfwbTLTHcer6sTnrYjh1S30fQgVP3ayr8HLkbfVM57+sKQQPrf 9fJcFibgrSOWnWmqAykCXQNeO7C7Hrh6xcP+Iq4+3jXk8HDylQExMD2ajwCRnSVNudD8 aLPnO5uDv2BXbmp652tPSTMwa9CbL6pslRC26jN4geFwg2qswS7TwxXl5EnB05zJP2Me xvE5IMQE6ZejATK07rOi+KrzDIha8rgDQA4wWRtn+yYnYqe99IFOkfkkG+pAGt2T1c78 w4AZXVAYM6IeANRrduj3Fy7GxI360UL5FJwLtpRoBzmugQKk6ofxpMgkDt+/k83LJhNV nmhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706878382; x=1707483182; h=content-transfer-encoding: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=uRWwHyoDqw4F+LcubyhbFy0WTRbHEZvIDfkqsptYoKs=; b=Bgrwg6xjg9vtSsmaIhQWoPwZrbsD+XrwV/w27ds6neVOWOh9gN0710OgS32yiegq4J 7i0MCwrfy4u3OpQ3O4mjrF/dt4yUEoLuoJE9BhvTRyg0CTTZ81XGUeV0k3TywHmju4fH U9FujtHZGNrmR/hqZDUFqz+nAIfC2OgI8cEJXT1HBt5qNH+3Mn3uh3qtQRquCQnWykoo oyUm9hSTnoaV2DgCXK89yPO08rBe4BWzk5rbL9t4nNx/pe5YlIEFDOz6gUvB2WCIs9/W sIFRdECgSELdCa7Hv1cx5JqTfhpdVQ+LQSvrE+D5iijbrbyPeOTwjje0I4mpf/xCFIl2 CdOg== X-Gm-Message-State: AOJu0YxMA/UpbYs/nwOiEmiTDiTZ1CWcR6STMg7NR0NvBa/oy7tqCyaI 8rgAtWEqY3gnFKrgLEuJ55bl8FpIT843IzJQ+uf2ES6ejaPrk9bB515nvVE7Jv6UTlPW0WDTIgO CHOG0ii/0ZUsrHRcLCa44Ht9+J+g= X-Received: by 2002:a25:d3d1:0:b0:dc2:470b:8883 with SMTP id e200-20020a25d3d1000000b00dc2470b8883mr8155620ybf.11.1706878382468; Fri, 02 Feb 2024 04:53:02 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240201125226.28372-1-ioworker0@gmail.com> In-Reply-To: From: Lance Yang Date: Fri, 2 Feb 2024 20:52:48 +0800 Message-ID: Subject: Re: [PATCH 1/1] mm/khugepaged: skip copying lazyfree pages on collapse To: Michal Hocko Cc: akpm@linux-foundation.org, zokeefe@google.com, david@redhat.com, songmuchun@bytedance.com, shy828301@gmail.com, peterx@redhat.com, minchan@kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Feb 2, 2024 at 8:27=E2=80=AFPM Michal Hocko wrote= : > > On Fri 02-02-24 19:18:31, Lance Yang wrote: > > IMO, since it's treated the same as pte_none, > > perhaps lazyfree pages shouldn't be copied to > > the new huge page. > > Why? The content of MADV_FREE page is valid until it is reclaimed. IMO, if MADV_FREE pages are considered valid until reclaimed, treating them the same as pte_none might pose a conflict. Thanks, Lance > -- > Michal Hocko > SUSE Labs