From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8072FC25B75 for ; Fri, 31 May 2024 14:43:44 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id DD4996B0092; Fri, 31 May 2024 10:43:43 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D5D136B0093; Fri, 31 May 2024 10:43:43 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B88826B0095; Fri, 31 May 2024 10:43:43 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 97AB36B0092 for ; Fri, 31 May 2024 10:43:43 -0400 (EDT) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id F31F814107D for ; Fri, 31 May 2024 14:43:42 +0000 (UTC) X-FDA: 82178959884.07.CB72837 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf19.hostedemail.com (Postfix) with ESMTP id B538A1A0015 for ; Fri, 31 May 2024 14:43:40 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=ihdpUWyG; spf=pass (imf19.hostedemail.com: domain of david@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=david@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1717166620; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=h7BCmuVT8wXxARstYW4zJweVRBuV08WhpIAYAR0E5iQ=; b=wBlWW9mX5pyXFw7Ni4CfhTfAqlM5wdZS4GCU2/BM8CL+SaXd2rEB62u+eUo4zvcZEkksA4 2TgTkYLPHRsMvTV4Sx19tDQfMWeYDyBytPAx8N8gMrUi2OSxKEtYiIaTI53fVgHxN/ATmO sgzs6cVYDl+vkzuNP8v77cpzMthAk7w= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=ihdpUWyG; spf=pass (imf19.hostedemail.com: domain of david@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=david@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1717166620; a=rsa-sha256; cv=none; b=Zl/I8y3KOWtgSJaYNTZBSHtVpsBYMF3EOdkO4U5gzu+UNKeRxRqb+pYKTyko0Qkc3ULEgw ciUu6IzLhQWj8f7wglktGrk3zCcJ4ki+/XMZZvazOeWBRB7ggKaGTWOIM9HNqYS79qrzHf uHiB8qJbn2P81wqbmvrz88iGHEK3r6M= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1717166620; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=h7BCmuVT8wXxARstYW4zJweVRBuV08WhpIAYAR0E5iQ=; b=ihdpUWyGk7RBh03Gb6cmdTMobcPEjKPT3OaLcv+eS3JzcN1fAENUSrWdqZpPQJxnNnfs77 ZCa/BmUslkMbGl+G5dCmP4hU/UPel67rsVjSOQWjsyApEsbXoTpE1sJCCNdGteeUELXVjb hBiL42zIplGueg5HbhZd/8vdByHt07k= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-255-fXhE8sDOP3S9I6eM8z-cOA-1; Fri, 31 May 2024 10:43:36 -0400 X-MC-Unique: fXhE8sDOP3S9I6eM8z-cOA-1 Received: by mail-wm1-f72.google.com with SMTP id 5b1f17b1804b1-42120e033e2so10935115e9.0 for ; Fri, 31 May 2024 07:43:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717166615; x=1717771415; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:from:references:cc:to:subject:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=h7BCmuVT8wXxARstYW4zJweVRBuV08WhpIAYAR0E5iQ=; b=iz9x8XM8Uc/oy1HN3wPjsoXk2uWrT/RVOymxU06s1ErNsrOk1ce0rg1oD+Dyry/ibR CtGq0ULwRv2KRsZ9fU6wfqfBJrqjRfQoaMQt03oroZjTxG55VNQB3exAaJVWQeDDSsV0 dg/DRgjjRiIoZlcLQY1F45nOoxhqTyvhe9YYixP7fjMVzM+lsUYT53hiMqXuH2t14+lT Dnejaq2AUC3cIUjnI6g8POMWBQ9hQjui2JR8U3E++5+ld7uc85GIjznOGWBKlMUeqSkD fsuyVQaaklNvh5oSySjvd9P7Wmw9AdZDZEB4bQjCFH3Umb81riANS3YKgPsdxj7KXKRt AKWQ== X-Forwarded-Encrypted: i=1; AJvYcCURn3Tpof875op1HJFs5YIQTAphGbAYpYOHU/wAZiX9XTFpe+pVxzLqMSLc9wP/zGDkv1Sm5vJNjX0XtX42Izog6+8= X-Gm-Message-State: AOJu0YzS477hcVIie7kKSQmTmkA3jyt0THp/SqS04qJSOIbIo44tTynQ kv0EJpHRjxkmlGYqMAXquP8d9NsT6zdLls3AJ9A765/uu65d1BtibnxDtzGHo1bfRq3KgwSEYAX EdKGYKBlnrMt8HeA/ppoJpi2FHod0WPuNIom3sVBUWRU+49mG X-Received: by 2002:a05:600c:34d2:b0:421:b39:9ea0 with SMTP id 5b1f17b1804b1-4212e05e489mr18496395e9.16.1717166615474; Fri, 31 May 2024 07:43:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFe9KLIh2ab8ePVc03Ii/7E39e1fiMHobofJw1lrKMtFAzRPVsDkLiGfjAhHqrnA18wJDP11A== X-Received: by 2002:a05:600c:34d2:b0:421:b39:9ea0 with SMTP id 5b1f17b1804b1-4212e05e489mr18496215e9.16.1717166615038; Fri, 31 May 2024 07:43:35 -0700 (PDT) Received: from ?IPV6:2003:cb:c717:a000:d4df:4b8f:37d4:59e4? (p200300cbc717a000d4df4b8f37d459e4.dip0.t-ipconnect.de. [2003:cb:c717:a000:d4df:4b8f:37d4:59e4]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4212b84d66bsm27735325e9.12.2024.05.31.07.43.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 31 May 2024 07:43:34 -0700 (PDT) Message-ID: Date: Fri, 31 May 2024 16:43:32 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 0/6] add mTHP support for anonymous shmem To: Daniel Gomez Cc: Baolin Wang , "akpm@linux-foundation.org" , "hughd@google.com" , "willy@infradead.org" , "wangkefeng.wang@huawei.com" , "ying.huang@intel.com" , "21cnbao@gmail.com" <21cnbao@gmail.com>, "ryan.roberts@arm.com" , "shy828301@gmail.com" , "ziy@nvidia.com" , "ioworker0@gmail.com" , Pankaj Raghav , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" References: From: David Hildenbrand Autocrypt: addr=david@redhat.com; keydata= xsFNBFXLn5EBEAC+zYvAFJxCBY9Tr1xZgcESmxVNI/0ffzE/ZQOiHJl6mGkmA1R7/uUpiCjJ dBrn+lhhOYjjNefFQou6478faXE6o2AhmebqT4KiQoUQFV4R7y1KM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ABEBAAHCwXwEGAEIACYCGwwWIQQb2cqtc1xMOkYN/MpN3hD3 AP+DWgUCXw7HsgUJEqkpoQAKCRBN3hD3AP+DWrrpD/4qS3dyVRxDcDHIlmguXjC1Q5tZTwNB boaBTPHSy/Nksu0eY7x6HfQJ3xajVH32Ms6t1trDQmPx2iP5+7iDsb7OKAb5eOS8h+BEBDeq 3ecsQDv0fFJOA9ag5O3LLNk+3x3q7e0uo06XMaY7UHS341ozXUUI7wC7iKfoUTv03iO9El5f XpNMx/YrIMduZ2+nd9Di7o5+KIwlb2mAB9sTNHdMrXesX8eBL6T9b+MZJk+mZuPxKNVfEQMQ a5SxUEADIPQTPNvBewdeI80yeOCrN+Zzwy/Mrx9EPeu59Y5vSJOx/z6OUImD/GhX7Xvkt3kq Er5KTrJz3++B6SH9pum9PuoE/k+nntJkNMmQpR4MCBaV/J9gIOPGodDKnjdng+mXliF3Ptu6 3oxc2RCyGzTlxyMwuc2U5Q7KtUNTdDe8T0uE+9b8BLMVQDDfJjqY0VVqSUwImzTDLX9S4g/8 kC4HRcclk8hpyhY2jKGluZO0awwTIMgVEzmTyBphDg/Gx7dZU1Xf8HFuE+UZ5UDHDTnwgv7E th6RC9+WrhDNspZ9fJjKWRbveQgUFCpe1sa77LAw+XFrKmBHXp9ZVIe90RMe2tRL06BGiRZr jPrnvUsUUsjRoRNJjKKA/REq+sAnhkNPPZ/NNMjaZ5b8Tovi8C0tmxiCHaQYqj7G2rgnT0kt WNyWQQ== Organization: Red Hat In-Reply-To: X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspam-User: X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: B538A1A0015 X-Stat-Signature: w1t5eozkj615sjiymjoc96uo1hdiuywc X-HE-Tag: 1717166620-653549 X-HE-Meta: U2FsdGVkX1/JJHiC5bLteI3IJQy44j+QIsYy76rJ7JLmeeP3aFJ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JmmS19NQ3PMMbzV1FGMivn+xkuJb0LUxW2y3wGyB0vJNDd9I0HG1eiAkPpFlO6QdhCHcIkgtOeRbaFbyHw+ECX+EJc79Mujl1K0Ji49q0ymE/7GiVdrF7eUDcK//WeTd2gvcDl+kVyUEDbzRze63g5Sobz/ZZn8Xgo6s4ct6HPC5mIQHwS8VrN0EKlZPpgYfJ9OkcvWAlxHR/B5OEKFKdI246D/cc7mk0rFKiU4E3lI+UEAIGXF7OcQg/LeYFsA9yx7wy0afg/DM0kYt6SRSfgkqYZlfbq49M7tiTILMVHWRi638JxmUekcq92NZjtEMhazHPqaxE+o6+6i+mVFQZTM+qck+Pz+/zaylIvEf1bTg25XOOATcR X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Hi Daniel, >> Let me summarize the takeaway from the bi-weekly MM meeting as I understood >> it, that includes Hugh's feedback on per-block tracking vs. mTHP: > > Thanks David for the summary. Please, find below some follow up questions. > > I want understand if zeropage scanning overhead is preferred over per-block > tracking complexity or if we still need to verify this. > >> >> (1) Per-block tracking >> >> Per-block tracking is currently considered unwarranted complexity in >> shmem.c. We should try to get it done without that. For any test cases that >> fail, we should consider if they are actually valid for shmem. > > I agree it was unwarranted complexity but only if this is just to fix lseek() as > we can simply make the test pass by checking if holes are reported as data. That > would be the minimum required for lseek() to be compliant with the syscall. > > How can we use per-block tracking for reclaiming memory and what changes would > be needed? Or is per-block really a non-viable option? The interesting thing is: with mTHP toggles it is opt-in -- like for PMD-sized THP with shmem_enabled -- and we don't have to be that concerned about this problem right now. > > Clearly, if per-block is viable option, shmem_fault() bug would required to be > fixed first. Any ideas on how to make it reproducible? > > The alternatives discussed where sub-page refcounting and zeropage scanning. Yeah, I don't think sub-page refcounting is a feasible (and certainly not desired ;) ) option in the folio world. > The first one is not possible (IIUC) because of a refactor years back that > simplified the code and also requires extra complexity. The second option would > require additional overhead as we would involve scanning. We'll likely need something similar (scanning, tracking?) for anonymous memory as well. There was a proposal for a THP shrinker some time ago, that would solve part of the problem. For example, for shmem you could simply flag folios that failed splitting during fallocate() as reclaim candidates and try to reclaim memory later. So you don't have to scan arbitrary folios (which might also be desired, though). > >> >> To optimize FALLOC_FL_PUNCH_HOLE for the cases where splitting+freeing >> is not possible at fallcoate() time, detecting zeropages later and >> retrying to split+free might be an option, without per-block tracking. > >> >> (2) mTHP controls >> >> As a default, we should not be using large folios / mTHP for any shmem, just >> like we did with THP via shmem_enabled. This is what this series currently >> does, and is aprt of the whole mTHP user-space interface design. > > That was clear for me too. But what is the reason we want to boot in 'safe > mode'? What are the implications of not respecing that? [...] > > As I understood from the call, mTHP with sysctl knobs is preferred over > optimistic falloc/write allocation? But is still unclear to me why the former > is preferred. I think Hugh's point was that this should be an opt-in feature, just like PMD-sized THP started out, and still is, an opt-in feature. Problematic interaction with khugepaged (that will be fixed) is one thing, interaction with memory reclaim (without any kind of memory reclaim mechanisms in place) might be another one. Controlling and tuning for specific folio sizes might be another one Hugh raised. [summarizing what I recall from the discussion, there might be more]. > > Is large folios a non-viable option? I think you mean "allocating large folios without user space control". Because mTHP gives user space full control, to the point where you can enable all sizes and obtain the same result. > >> >> Also, we should properly fallback within the configured sizes, and not jump >> "over" configured sizes. Unless there is a good reason. >> >> (3) khugepaged >> >> khugepaged needs to handle larger folios properly as well. Until fixed, >> using smaller THP sizes as fallback might prohibit collapsing a PMD-sized >> THP later. But really, khugepaged needs to be fixed to handle that. >> >> (4) force/disable >> >> These settings are rather testing artifacts from the old ages. We should not >> add them to the per-size toggles. We might "inherit" it from the global one, >> though. >> >> "within_size" might have value, and especially for consistency, we should >> have them per size. >> >> >> >> So, this series only tackles anonymous shmem, which is a good starting >> point. Ideally, we'd get support for other shmem (especially during fault >> time) soon afterwards, because we won't be adding separate toggles for that >> from the interface POV, and having inconsistent behavior between kernel >> versions would be a bit unfortunate. >> >> >> @Baolin, this series likely does not consider (4) yet. And I suggest we have >> to take a lot of the "anonymous thp" terminology out of this series, >> especially when it comes to documentation. >> >> @Daniel, Pankaj, what are your plans regarding that? It would be great if we >> could get an understanding on the next steps on !anon shmem. > > I realize I've raised so many questions, but it's essential for us to grasp the > mm concerns and usage scenarios. This understanding will provide clarity on the > direction regarding folios for !anon shmem. If I understood correctly, Hugh had strong feelings against not respecting mTHP toggles for shmem. Without per-block tracking, I agree with that. -- Cheers, David / dhildenb