Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp667258lqt; Fri, 19 Apr 2024 07:09:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVfurlbRFxCgeNE+VJHc8dUK0aZ35vIEdn2KZYLq1ukQwE6Cu8gDvRfHnemy+hxinfsuPGevvki7GU73LYKx29Wa/2jgOKY/UiaWK98zQ== X-Google-Smtp-Source: AGHT+IFTrMGwe+xIU0/YYAchti3/f0U6h8tetGoWXYpkVsXI5u5CytJj7QTz/9HtFWZE8tjtcTv7 X-Received: by 2002:a62:81c6:0:b0:6f0:c78f:75e1 with SMTP id t189-20020a6281c6000000b006f0c78f75e1mr2244409pfd.0.1713535744209; Fri, 19 Apr 2024 07:09:04 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id f36-20020a631024000000b005dc8a33fcc3si3358710pgl.653.2024.04.19.07.09.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 07:09:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-151539-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=KQLzxwWi; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-151539-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151539-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id B27F2284518 for ; Fri, 19 Apr 2024 14:07:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CADEC135A55; Fri, 19 Apr 2024 14:03:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="KQLzxwWi" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C5F8E12E1DA; Fri, 19 Apr 2024 14:03:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=192.198.163.14 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713535432; cv=fail; b=XYeUOT3NYALMoar8eiXul+kdYcydoenc3w5H8wabreNiQ38CnIoLOONHucsmCMfiXQyvwJeduR1VLmJ6Wf6TZegBBawKdiE9tGSdcshCYbWhht63tlKjKn5ktD3tKWfHAWJDKgh040y7jr4v143cDqXLrvoCsIgSabttfP+4F/M= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713535432; c=relaxed/simple; bh=UG6XfUIznco2/7yu1aNnErUjLp/GKVOZH526qD57GRs=; h=Message-ID:Date:Subject:To:CC:References:From:In-Reply-To: Content-Type:MIME-Version; b=b73wBW4fpeIZwlmbg25+DTWGCnCPYn938fK3YKF8Z8R20p98fSNdhNVswwPYWRLf8vyHhUXn7nkIe1KKlRE6YdOgN0HJcqJE7a1EcIMyDQQ7hIAl/tzykNXtpT892wWMRNDJkzPrhhogbSLyIKTarKMsLtq8/CkZnp0DwnO8O/s= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=KQLzxwWi; arc=fail smtp.client-ip=192.198.163.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1713535431; x=1745071431; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=UG6XfUIznco2/7yu1aNnErUjLp/GKVOZH526qD57GRs=; b=KQLzxwWiVo2E5tobX/acc6g33NfTAwQiqcX9keqZ+LKBSDfhXbbVe3cv U1RaiAzJiItp14axxyHUwhzpYMLJUJUJvKD/7kq1oUfsQMhznbqu9UWH8 6soeUfnxiBiHLsOC6hKN4IjUZrd39tWtNtnlstKh/L3cv5LoYamWkfIso XoJhzoPgmn5kVunmevIWQTVjIDvZE7KsbdA6AIp0e1DKKvmwe4HmY0mBb DPjxSzlkfRMdrs7URyJ8BVhDt2YqR5WXP7yFooqQdSU/cm4i+0dVrm67Q Q6HKsn+ay5NS/nGFBOoWTTZ5EA3TY3rT+gX6ncEVvLPQ9qYOYXOVYPJUW w==; X-CSE-ConnectionGUID: xR72OyYCTGWXgCH8s8Ck1A== X-CSE-MsgGUID: YLaxgWg8S0qNK7NGC8K1dg== X-IronPort-AV: E=McAfee;i="6600,9927,11049"; a="9358544" X-IronPort-AV: E=Sophos;i="6.07,213,1708416000"; d="scan'208";a="9358544" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Apr 2024 07:03:50 -0700 X-CSE-ConnectionGUID: WuVTZSu9QxOkIcXqffCYhw== X-CSE-MsgGUID: hVy+WprxTAqEHiHEhpMjGw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,213,1708416000"; d="scan'208";a="27991106" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by orviesa003.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 19 Apr 2024 07:03:50 -0700 Received: from orsmsx601.amr.corp.intel.com (10.22.229.14) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Fri, 19 Apr 2024 07:03:48 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Fri, 19 Apr 2024 07:03:48 -0700 Received: from NAM02-BN1-obe.outbound.protection.outlook.com (104.47.51.41) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Fri, 19 Apr 2024 07:03:34 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LXxvKwLEHwmIXLSxahon2nY97H272knPzC7wb+K6uP4Q6B3yPZ6ptz3rrrmeT3lHN0HfeoVNOzKUnG4IrzmRpgC8zCqA98+6hvtdskueqQZuJUcYcKx6uGZeM9VhUkq5bhGJ226MFBR319xkNAYd1yNOqmTEfSh3c1fhyMF0NeFO90KtDFi99lHfAbMndsTRp8MirsHYTgeE8zyLgukvzL+uF9dwKZd4HKGfn0u5hb938yHokUvypCxn7NXI7Sar4RDvUDz4O5RQLPmeSTO1lY4k7KcafLwuIE1XEkyTlf9Rar5NZgMdmQ3cQPJuetpNL/++z16aVlyWglmn5o6V0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=MQL+ytKr3AujoHnbY3pmF5U3RLLhvouaEkXYSfORvSE=; b=YzF87yH9FXK/5JnrdIDpzLZkkNbclNABL0v/8NiRPCR/RmaNqtfXhiCetv1ZeXSOOOY61GoHdvlCP52f6F1Y/Obv2XCaeipl0ZjaopxGDokch2RPuqJst7kfR1XNAb6aLYKqHu48hlZr7T+SFqFcAbC3JLqMG54yxXPQDIcRePcgB4ylFngWRC5AIlDz0peLEqF/NFwhpDjcV16VKKXe9VaGzuP+jvuTWIfFKhCCzbYZVzQV1X26Az5LIKOSPNkANZN1I12EU4u6WWXiKTMrUkQ2a3uCgA/lNiBy9z27XlWcnGRdbadZeJ78Qk4N4Z1Hw7xVedEiwDmYF4Lrm/Md4w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from CO1PR11MB4820.namprd11.prod.outlook.com (2603:10b6:303:6f::8) by IA1PR11MB6100.namprd11.prod.outlook.com (2603:10b6:208:3d4::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.37; Fri, 19 Apr 2024 14:03:31 +0000 Received: from CO1PR11MB4820.namprd11.prod.outlook.com ([fe80::65ce:9835:2c02:b61b]) by CO1PR11MB4820.namprd11.prod.outlook.com ([fe80::65ce:9835:2c02:b61b%7]) with mapi id 15.20.7472.025; Fri, 19 Apr 2024 14:03:31 +0000 Message-ID: Date: Fri, 19 Apr 2024 22:03:20 +0800 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 05/18] mm: improve folio_likely_mapped_shared() using the mapcount of large folios To: David Hildenbrand , CC: , , , , , , "Andrew Morton" , "Matthew Wilcox (Oracle)" , Peter Xu , Ryan Roberts , Yang Shi , Zi Yan , Jonathan Corbet , Hugh Dickins , Yoshinori Sato , Rich Felker , John Paul Adrian Glaubitz , Chris Zankel , Max Filippov , "Muchun Song" , Miaohe Lin , "Naoya Horiguchi" , Richard Chang References: <20240409192301.907377-1-david@redhat.com> <20240409192301.907377-6-david@redhat.com> Content-Language: en-US From: "Yin, Fengwei" In-Reply-To: <20240409192301.907377-6-david@redhat.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SI2PR02CA0026.apcprd02.prod.outlook.com (2603:1096:4:195::19) To CO1PR11MB4820.namprd11.prod.outlook.com (2603:10b6:303:6f::8) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PR11MB4820:EE_|IA1PR11MB6100:EE_ X-MS-Office365-Filtering-Correlation-Id: be38a5a3-2bc0-49ac-3d44-08dc60797e7c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: =?utf-8?B?MTFSN29LTG9vY1NJQkEwbG5obCt6Q2pIV3B4SUlxOEpYYzhzMG5TS2syRjhG?= =?utf-8?B?RzIvVjhTZVYrNVhHVmxsSDArZ0kwUTJmNWxLTFVMa0tKTXd4N3BUR01HY1k1?= =?utf-8?B?NTJIQzhuOXNNeXZKazcwN3RBdVd0ODB4ZTdtWXpuS3hmVmtiYXRJQThJT3Q4?= =?utf-8?B?ckU5QzJ1ZlMwSU8wZmhVN3R2aUR3Zkt3dHR4RlFEYldDcmZ1bFlIWFU4NStW?= =?utf-8?B?UVlad3NTY2N5ZGdxYnNiWUlVc0ZLWnZ3eVh3R1p6dXh6aDFXU3l1aldCSzN2?= =?utf-8?B?Z2pUS05sQjZER0ZvdjBLaFZSK3NBUDhKaXloL0NORkh4Rml4R3RFdlR1YnJQ?= =?utf-8?B?ZEpBNGZmcExsSjJpYk9OdkFI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h3R0h2cjQwdTk3bXFYM21haG1tcjUxTXZRVk1kRHpVOUd2bXh1Smx3?= =?utf-8?B?VWdSbnRrYkMzNlR6QU1DaHpCMWdtY2RuVVRMMkZXVjlOMC9ialRkWDV1NWNp?= =?utf-8?B?bzZ2aVM0eUVwcmM2anZIc3JJN2lRb3Z4QzhYcGZ0VEFOS3VqNDljVUZseEt2?= =?utf-8?B?SmkzZDFjay9HQk84VXFNL0d4bjQzc2FEdTJ5VFpjQnF4RkVWTWdHRWh6VDEv?= =?utf-8?B?V3RENldMbWlTTGdVL1dWK3F6c3Z0NUFoYlA0NkNackMyT2JCbDY0cVRTRjJV?= =?utf-8?B?NjllbDZaditBMjJuY3dWMmF1NzJnNC9sVzdMcnFNSEJacWF2eG1jKzhaZjF3?= =?utf-8?B?alJENjlSQkJvcjlBM21TOXFuVTNFemIwdytsVHJQZmdVUENUVVo1VUNnOU9K?= =?utf-8?B?aFhHRXJFcmxRMGREbStqQ3d5Q3RrdU1HWlVnYitGekxJQUtSanBsUWJnPT0=?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO1PR11MB4820.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(7416005)(1800799015)(366007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?OGUyOWEyY01lajlhcVJtWTlWN295eHkvbE9xdkJKcE1ZcXdyRml2dmF3dHkw?= =?utf-8?B?djc2T2ZTVjRqdllJNzVHVFBhWWRhK29DLzN2UXk2YWkwLzFwa0tpYW5xVmN5?= =?utf-8?B?Y0U3eFdNL3MwNHZtbEhVZXVwdCsvTjVOUEY4WDYrWjlMeXVwRW0yaFZYeDJx?= =?utf-8?B?UG55YkpWY1NYTGgrOXYzNUYzNTBHU1hyeUJDT3NpZlgxSXNzNnpiQU5MMkxL?= =?utf-8?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jMWtCTjdCeVBZdW04czNCZkh1bHNQK2Fab0JUbWFS?= =?utf-8?B?cXVadzE3NnNZSVpQUmNIdFh0KzFoNi9MNW10NjluTUtMTXJFN2NxWWxFTkRz?= =?utf-8?Q?/uA7Uiid2t7mnOhxbn55RRI87?= X-MS-Exchange-CrossTenant-Network-Message-Id: be38a5a3-2bc0-49ac-3d44-08dc60797e7c X-MS-Exchange-CrossTenant-AuthSource: CO1PR11MB4820.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Apr 2024 14:03:31.1577 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: pjAAXNb/G8TM+cw8S88tz6psomGpOvLF2HMdBW+Ue3wKW1IBtnZrTq1b0Koew3rVgRwNyBhMCOFhPHFadgyUgw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR11MB6100 X-OriginatorOrg: intel.com On 4/10/2024 3:22 AM, David Hildenbrand wrote: > We can now read the mapcount of large folios very efficiently. Use it to > improve our handling of partially-mappable folios, falling back > to making a guess only in case the folio is not "obviously mapped shared". > > We can now better detect partially-mappable folios where the first page is > not mapped as "mapped shared", reducing "false negatives"; but false > negatives are still possible. > > While at it, fixup a wrong comment (false positive vs. false negative) > for KSM folios. > > Signed-off-by: David Hildenbrand Reviewed-by: Yin Fengwei