Received: by 2002:a05:7412:85a1:b0:e2:908c:2ebd with SMTP id n33csp54248rdh; Mon, 30 Oct 2023 13:37:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGJVYRyWzx6p1WGHZaNUd7WFNdbH2AixuhmqDbyUlynKN4yVQReJAG32v8zoJkIv0D8PLb0 X-Received: by 2002:a17:903:41d0:b0:1cc:5273:2105 with SMTP id u16-20020a17090341d000b001cc52732105mr3917705ple.47.1698698236022; Mon, 30 Oct 2023 13:37:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698698236; cv=none; d=google.com; s=arc-20160816; b=xnERq3X8/2mNjzenSdHf/mIjrOZEo5PqxFXVqYytgxJKEtsHB2VyvMaRlaByy3l2+4 1WsO9yeHmTIG9ahJqubU/AJFPdwNs6cLmfIeWOr0WITvlqMC+NhuYt03zmVk2XopRej6 lO+hzsQDgVM3VrGhsAF6N1i336yZQZ8xLjc5rz9tS9uSFa9mO21H55gUUuEMBN9s69AR kxVK4ZRG9vlTpQS6SG4WmOKvPmrlNV7NFzWAo+YomJiGg/zZWfULKTN2seb9yyA4w+qk KWrkrmWLmtRWBUTD1j9RRRKvJoCbNNqcpHEb16NaITrUZhx+bEhgJvKOcCJSizTbT5Rl SD5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=HQqQywcIq3pleqCdkmZJnvq+aD96AGHUCBNW1Pk+bxA=; fh=kG662odMJ0WGm3Ewws3x+ZkLxJAE5EntYad9jgGZYfA=; b=yWTQ/JED6JcGNdWfaENNMxeF783tTmIavKq3ABoEspwQRi4psPihMPm34mgYHedHMb jkf6NhHE/8Kv2qSykEUxqaNki1ZqGfHrb8D3fL1x7q3EgyDAgZkl5TrMWvtO9X/zGI+a zc3qZ6hURwgD5xyoTG4V04Ukct+ZAdpDji4+Z9/wljn4zrTnxmi8sfKXxghUM+JRGVqz uDDVk65MjVV1PGz/rSkoelc57ZqqLB+rjSU7w/p0dMoT00Bn/G+r1mfVChKkONCizSAs 0NBoPzQPM6jGexjxYYpUGAinCy8mSnyhyErlLfYKd05xSqgR/LFreilFPe/tRS/jUQbP msgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=jTv9qTE7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id p3-20020a170902f08300b001c88fc3c593si5384113pla.560.2023.10.30.13.37.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 13:37:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=jTv9qTE7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id C74268087265; Mon, 30 Oct 2023 13:36:34 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231395AbjJ3UgY (ORCPT + 99 others); Mon, 30 Oct 2023 16:36:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231267AbjJ3UgX (ORCPT ); Mon, 30 Oct 2023 16:36:23 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81FB5AB for ; Mon, 30 Oct 2023 13:35:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1698698132; 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=HQqQywcIq3pleqCdkmZJnvq+aD96AGHUCBNW1Pk+bxA=; b=jTv9qTE735qA/8NkivTkXNfj9jrlyyHF3nHgMfpY7CH1Z7iNfO2q2+Wtd/ynKrow2dk+2N aCcPWe8cPolgNfpo4HQLRoZnd+P+1t7Fst7bCEVXh7Q0jr6y0lhFgvCkgxY3qtCBRkUL+n AvkdwlfjYgn1zBp7uzYQHKo5tytyGFE= Received: from mail-qv1-f72.google.com (mail-qv1-f72.google.com [209.85.219.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-696-IgetNjjdPJupucQiGK7jJQ-1; Mon, 30 Oct 2023 16:35:31 -0400 X-MC-Unique: IgetNjjdPJupucQiGK7jJQ-1 Received: by mail-qv1-f72.google.com with SMTP id 6a1803df08f44-66ffa15d354so9910026d6.0 for ; Mon, 30 Oct 2023 13:35:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698698131; x=1699302931; 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=HQqQywcIq3pleqCdkmZJnvq+aD96AGHUCBNW1Pk+bxA=; b=WXXKiWRDV1XEMYoKUKE6I302nkxE/HaBDdDUbVVuDoUsrLbFzSfRMcVxA41A+RtzYm QACitkjW1ZECC7SpMEZW1EPI7lQ4M31EGljJxkOX1ySjviPnQ71Ajt8TsI+vy3xGb6RX Pv6qk143zHzAuOuEnPyzbnjd6pGcaz+0L0U0CHBX+CCDP4sXwTHpfvDRuhl8+QEDg/PK LFgiEcrp99ehRKLQGyodu2YjvItUSoZ3kzMeGHN/x9Q6cIaNluJ3Ln3cMnbjvk9X2q+o ipHFBYden6SaTfeeyPY46tnLQZjNQbXoDbLh7RYoyK7/DEOMr8x5aaAK/you70eIgb6N cjGw== X-Gm-Message-State: AOJu0Yw7hJciRs0X76eODjaXyOOp+nVTNRxRvHJ7PIkKbmcV5gLlayXr TYSRxmWC0mK0eAZDm7TkyOP2TW+u2B79VC6FKEJInBU1GOXV8AS8v6n7TuKr9HlxV9f7QLs9bH/ GmcZO9mumrT4GYJu6gxW/uGns X-Received: by 2002:a0c:f78c:0:b0:66d:6111:5c5c with SMTP id s12-20020a0cf78c000000b0066d61115c5cmr11465043qvn.3.1698698130993; Mon, 30 Oct 2023 13:35:30 -0700 (PDT) X-Received: by 2002:a0c:f78c:0:b0:66d:6111:5c5c with SMTP id s12-20020a0cf78c000000b0066d61115c5cmr11465017qvn.3.1698698130723; Mon, 30 Oct 2023 13:35:30 -0700 (PDT) Received: from x1n (cpe5c7695f3aee0-cm5c7695f3aede.cpe.net.cable.rogers.com. [99.254.144.39]) by smtp.gmail.com with ESMTPSA id cx15-20020a056214188f00b0066cfadfb796sm2362777qvb.107.2023.10.30.13.35.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 13:35:30 -0700 (PDT) Date: Mon, 30 Oct 2023 16:35:27 -0400 From: Peter Xu To: Suren Baghdasaryan Cc: akpm@linux-foundation.org, viro@zeniv.linux.org.uk, brauner@kernel.org, shuah@kernel.org, aarcange@redhat.com, lokeshgidra@google.com, david@redhat.com, hughd@google.com, mhocko@suse.com, axelrasmussen@google.com, rppt@kernel.org, willy@infradead.org, Liam.Howlett@oracle.com, jannh@google.com, zhangpeng362@huawei.com, bgeffon@google.com, kaleshsingh@google.com, ngeoffray@google.com, jdduke@google.com, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kernel-team@android.com Subject: Re: [PATCH v4 5/5] selftests/mm: add UFFDIO_MOVE ioctl test Message-ID: References: <20231028003819.652322-1-surenb@google.com> <20231028003819.652322-6-surenb@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Mon, 30 Oct 2023 13:36:35 -0700 (PDT) On Mon, Oct 30, 2023 at 01:22:02PM -0700, Suren Baghdasaryan wrote: > > > +static int adjust_page_size(void) > > > +{ > > > + page_size = default_huge_page_size(); > > > > This is hacky too, currently page_size is the real page_size backing the > > memory. > > > > To make thp test simple, maybe just add one more test to MOVE a large chunk > > to replace the thp test, which may contain a few thps? It also doesn't > > need to be fault based. > > Sorry, I didn't get your suggestion. Could you please clarify? Which > thp test are you referring to? The new "move-pmd" test. I meant maybe it makes sense to have one separate MOVE test for when one ioctl(MOVE) covers a large range which can cover some thps. Then that will trigger thp paths. Assuming the fault paths are already covered in the generic "move" test. Thanks, -- Peter Xu