Received: by 2002:a05:7208:3003:b0:81:def:69cd with SMTP id f3csp4235981rba; Tue, 2 Apr 2024 10:58:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV82Es4O0uB0C9Anko2NS8O3dZFZlL3DdUDl6J7O2G3z2Pe4VZQKZqvnUuVSjbNOaSVkd1WpyaGkwohY3/MUfg+pI/876m2K6g3gXwWww== X-Google-Smtp-Source: AGHT+IEmsR5WIltYAm9bZO1WW0ChFi4gcE2VYOJdz8EFEY+sdpwFMlnbDCvYNQM6Mym0MH4lXGsF X-Received: by 2002:a05:6808:d50:b0:3c4:f582:59e4 with SMTP id w16-20020a0568080d5000b003c4f58259e4mr2183447oik.30.1712080712355; Tue, 02 Apr 2024 10:58:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712080712; cv=pass; d=google.com; s=arc-20160816; b=NYZVTlLKWvC+9Ny6i6mssJKK2Z/SFyO912zojMXqcpskbu9jPU2mGeWb4u36mx8RYh Jqhd3djQ6VMWDbZzjUOBkDDTJg2lXb2B2wsK+a/tMFgYEpVTovHinL7q0/CmSTDNziRb 5n25MPImZ+ph3df6uc4OcecYp0ZdBRRKXcSEjxV967jn+y+pTOEAScOKPwDPVsqs+3kJ SFZjh39R+OH56qcQhVrpBKYUlrbA3bOLtqmdXOFEhprFYsjz3IMhU/ATGAMIlF1O/hiE zmw1yYV70/dQA26XxBzFCdB3VMWlqvm5WdhdAnzCpOVoRfBqLxwq7ZuufgJZwhDGxDrI DRLw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=QbOtfO/Dg9m2AlUnDgJHatWmb8CbT3I2rXBSbFfhdJY=; fh=QjyhXJpL6blM7jYJvF7x1RzQlJU/Q9SHuUy1qhR8ciY=; b=XmoMDi+/OPDPgWVEs02aXnBPDAt2ahunf7Z9woXnfiQ3nsSEuua4aYAF7vjiPsiQ/1 lPXyK+RXWv7Jyr1gcm7MNDscq3lKPwqvu2aJ9Smbpst3YXSvQ4WVNb+7jnpk5JfQ8AcC FjAEe1y5Qamb+SkeGvF5bx5yyUsgPC+XjrUAhU+m01A5YmpfHCoYVchjfXbAl8aHum87 +dONGM7KaCbKeC0niGfQ9bztvvOByjnkDgw4TzSvy4cI+pwol93g1k9xgnf5Gmv5ep46 qYOD//zkHaj92IKRgffE+ifPtvMn6bGid2LhkswOupbHqXYPp1Qri0TN1HsyHXzifCfu /lAg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="UhTNg/XP"; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-128470-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128470-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id u16-20020ac858d0000000b004313fb72cd0si12520468qta.354.2024.04.02.10.58.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 10:58:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-128470-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="UhTNg/XP"; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-128470-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128470-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 125941C20962 for ; Tue, 2 Apr 2024 17:58:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 90C8815AAC8; Tue, 2 Apr 2024 17:58:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="UhTNg/XP" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 5641D15AABA for ; Tue, 2 Apr 2024 17:58:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712080704; cv=none; b=mV4WJF2dA1hK317evuqfqO0TB23qTq982zIY5ayK4ClucOOCq8LArXKTgm7tsr42FsBifXWWIdu6mx4kEzIex7xuKppWiUSvbImplvhi2soQSmB6tbz/1dAZBJFvt+xHoeqrDLFVrlXBw3uRmdtQqy0v+2BnN3NqmZiK421G0Fg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712080704; c=relaxed/simple; bh=FBUk2UKTm5C5jiObsig5cVysbNmOkY70P/QraBD/Y7Y=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=kyHJSrsy1+7gwtXxSV/K8jbqSGESITTYuXoJ4z2LHLw3eKY7trFCNtcsRo1ewibOHOJVsMiRHo+E2a5I1TM+OQeLSG4Eva/U6H2lR8UXpWNCM1w2q0T4Tkp2tUiwY0oNkSJ/2gMM+b/BDi9RFFzkIJFun3DzS5g6DrVvAIGpsLo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=UhTNg/XP; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1712080702; 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: in-reply-to:in-reply-to:references:references; bh=QbOtfO/Dg9m2AlUnDgJHatWmb8CbT3I2rXBSbFfhdJY=; b=UhTNg/XPtc7hgQsz8u4FV1NdMiuxMAnM/F9vzyvMFTahGOWlBYPy2RK1YiDt3E5/r5wvnx uU4FBhVU+oM39GSFc9thnjr/lEqz+8k4yBd1NE3QsNCPsH8/vBJJZG0dctaC/Vo6VdOKE9 8Okvzgp112eqIkOqRtmGjrOA+QgL/eA= Received: from mail-vk1-f199.google.com (mail-vk1-f199.google.com [209.85.221.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-572-6VvuqlXcPYWRqDozlribJg-1; Tue, 02 Apr 2024 13:58:18 -0400 X-MC-Unique: 6VvuqlXcPYWRqDozlribJg-1 Received: by mail-vk1-f199.google.com with SMTP id 71dfb90a1353d-4d455b9df33so333458e0c.0 for ; Tue, 02 Apr 2024 10:58:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712080698; x=1712685498; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=QbOtfO/Dg9m2AlUnDgJHatWmb8CbT3I2rXBSbFfhdJY=; b=dG1T2tqCt8ud0OuuN2hq2CuLJT3WvXe0lWhH3S060LFwUOCcMmzepQJ+tkne/1w/d5 KwNDo1kiFtemttM8lO+Pov5bt5jS3QuXTd8+dpx4xV7Rvw1XcofGk3aEkX79OaOG3e8U q8J4s99HTckgSWqL7H8ipT5Copo856sQqjeocDLuOiGzDBwP9SLTrE98zp5P9vhSeO1T hiOuJlapb1q+yWbLCAUHNuTSJEBExqAico4FOaKOradzS+Lju1WiuZ0czv1E7qytSTyJ ak6kRB7wofQGVnn/zZrMVyPjopiUO8+w7UTndpI4OSQH/lkL/3KKc/pNQvR4cvysgWmh H67A== X-Forwarded-Encrypted: i=1; AJvYcCXeK1fK8x+pYoGUMdAiv9JBzrRj5W3xaVmaAteFwpAX2crm8bQekZt87qkEdii325tKLZOBxW2vtG38bJMM/WAcQQk7JlTjY9rFgjvd X-Gm-Message-State: AOJu0Yxvd5qJpmalmXOaCeSXPxUal+3dZiNfpkC8aa0kEQ0xtZib5Km2 DH1wLW/3Sra+08zMYMVCZk+93c03L7ZOajgAis9S5gxY9cGO1PbFz4dnSQO/+ucfcfvvTHTPzDR YlNLnde07E/H3EduOoGeY76YevjqjJfliK1vg9xOHXH6IN/pimnQNTlKnn2bmeQ== X-Received: by 2002:a05:6102:93:b0:476:e72e:94ef with SMTP id t19-20020a056102009300b00476e72e94efmr9650791vsp.3.1712080697546; Tue, 02 Apr 2024 10:58:17 -0700 (PDT) X-Received: by 2002:a05:6102:93:b0:476:e72e:94ef with SMTP id t19-20020a056102009300b00476e72e94efmr9650757vsp.3.1712080696946; Tue, 02 Apr 2024 10:58:16 -0700 (PDT) Received: from x1n ([99.254.121.117]) by smtp.gmail.com with ESMTPSA id kk15-20020a056214508f00b00696a78b9cc6sm5720428qvb.53.2024.04.02.10.58.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 10:58:16 -0700 (PDT) Date: Tue, 2 Apr 2024 13:58:12 -0400 From: Peter Xu To: Ryan Roberts Cc: David Hildenbrand , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Yang Shi , "Kirill A . Shutemov" , Mike Kravetz , John Hubbard , Michael Ellerman , Andrew Jones , Muchun Song , linux-riscv@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, Christophe Leroy , Andrew Morton , Christoph Hellwig , Lorenzo Stoakes , Matthew Wilcox , Rik van Riel , linux-arm-kernel@lists.infradead.org, Andrea Arcangeli , "Aneesh Kumar K . V" , Vlastimil Babka , James Houghton , Jason Gunthorpe , Mike Rapoport , Axel Rasmussen Subject: Re: [PATCH v4 13/13] mm/gup: Handle hugetlb in the generic follow_page_mask code Message-ID: References: <20240327152332.950956-1-peterx@redhat.com> <20240327152332.950956-14-peterx@redhat.com> <5d9dd9a7-e544-4741-944c-469b79c2c649@redhat.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=utf-8 Content-Disposition: inline In-Reply-To: On Tue, Apr 02, 2024 at 05:46:57PM +0100, Ryan Roberts wrote: > I'll leave you to do the testing on this, if that's ok. Definitely. I'll test and send formal patches. > > Just to make my config explicit, I have this kernel command line, which reserves > hugetlbs of all sizes for the tests: > > "transparent_hugepage=madvise earlycon root=/dev/vda2 secretmem.enable > hugepagesz=1G hugepages=0:2,1:2 hugepagesz=32M hugepages=0:2,1:2 > default_hugepagesz=2M hugepages=0:64,1:64 hugepagesz=64K hugepages=0:2,1:2" This helps, thanks. -- Peter Xu