Received: by 2002:a05:7412:e79e:b0:f3:1519:9f41 with SMTP id o30csp60749rdd; Wed, 22 Nov 2023 09:22:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IEjwTPUbe6w9DRu6QmTW5IaU86SjAX1CY0EBryNqioiWeZdpBKzdQ7fIqK9p0rz1xu/9x4M X-Received: by 2002:a17:90b:4a0a:b0:280:235:19d with SMTP id kk10-20020a17090b4a0a00b002800235019dmr3322340pjb.36.1700673728419; Wed, 22 Nov 2023 09:22:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700673728; cv=none; d=google.com; s=arc-20160816; b=RjF6pNHBEAO/HwsT3quoV4TssISlzoL+p+rUVTBzny7rD/n0gHdTLu8dnGjPErcK5I uLBSfUTp4bJ7rY+TuwvLO5YgYdf+FWPv69fqeT3QhSUShmUwvlrb5xRmomCJ8xaVykV5 NbCDuIQBfE873HGunLi9B5tFM6AyvnHor/kr9KRZKsIjDE8xOk+rdyJgqJc3vqPMyEsd F1liZBXxURJ6ZNMp5l56Z2ieArkWZLA0zU+YdCxQ3hflbxUO2efvV1RR4BiLrOY/cbRh RiT9Mu7OHvU79nCQ04v71KBW/J96ys8W6JOZYUYcQ5HHajVJG+h2PLgtAfQ27RjYun0o V2iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:in-reply-to:date:subject :cc:to:from:user-agent:references:feedback-id:dkim-signature :dkim-signature; bh=HBA8/PFg10ymZNJDZ693U+tza3MBCER8GemTUdFxOSY=; fh=D2KdqsPN33QkhEyt4sR4ai0Uyrouqu8NBMnao8Lx3gQ=; b=df0oaZiqU/FCThE5afIZzx0xmfpAFxvZuMS9qYRpHGQXWHNMYqkJAs3APWn3GM30kd qxJknZFWCQYXU8TWRN5U6LVAOnjWkaST20eGpz9Tqc8N2zV28X1GfqS3Gmmz8WrARQZq uHhy+tMSIAC4guU0noM7DC/lId7cJjXiihclwsgQBREYwdk40SAQLn1EFsMT5ioWVigs oD/HEyIJBkgGnRlgcMjJxxNceEh31WGpx2YndYPXnHgIl7GlN7K8RjYexNAGGQDvZiNw GUfuGkHaD2d/ZYnYwT6eUHbAe6zOxzdL/mDAfaVC9oqdvxHqBD3D3jSXFgrF2gYr1arl Halg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@devkernel.io header.s=fm2 header.b=kB6PqRHM; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=RwghFZzl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id d22-20020a17090ad3d600b002683f507990si50505pjw.109.2023.11.22.09.22.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 09:22:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@devkernel.io header.s=fm2 header.b=kB6PqRHM; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=RwghFZzl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id A4B8C807BEF2; Wed, 22 Nov 2023 09:20:14 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344017AbjKVRUD (ORCPT + 99 others); Wed, 22 Nov 2023 12:20:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231793AbjKVRUB (ORCPT ); Wed, 22 Nov 2023 12:20:01 -0500 Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 728AA92 for ; Wed, 22 Nov 2023 09:19:57 -0800 (PST) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 414C93200B57; Wed, 22 Nov 2023 12:19:55 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Wed, 22 Nov 2023 12:19:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=devkernel.io; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; t=1700673594; x=1700759994; bh=HB A8/PFg10ymZNJDZ693U+tza3MBCER8GemTUdFxOSY=; b=kB6PqRHMuOJq8+yRwk Apu+hG7KQ+/+RHI96oE3S0StgmKqV5mmf22tZOYHgW9hRlZpNdIkgzfLfY5fJLKY 9P2zfPVBksW6U1pW2cmnlctW8bGx/o5h3Gw0VjIfjKGRThaDcPgDRNGqlsjMNcty Dh5qD/Z/HqG20rhZM41Pt+LaeaxmdI+VC0n97IFgo6S1i+22SLTKZ4zssVKemROE 4vbp830JmNxWbSYcUlRBjx5dfciVR9erOEvF6wmTb/ecb8nYX2+wGSYTQgr5SOAO qeJuPvbmyS2VTTNO86Fvx3hitJhu0xaCPL4z5nU1qm9zzngdLJEGzhb+5RT6o/b2 NwiA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1700673594; x=1700759994; bh=HBA8/PFg10ymZ NJDZ693U+tza3MBCER8GemTUdFxOSY=; b=RwghFZzluA72h5rDesMsi5YLfssF1 3QpqmD0qIBO6NwG3K27ii6vjYDhnf6dW3PbdCKsOJ1ZroqZFSSdlX/RFcn5bKfbD ADMkrUqWLSlNYcfErGTuW8NAbmf5MraM/qHMWEYeQMkHWSi8GaqRJsvymIhOx+0K 9cDgwzOrodGUDtoFom9ndeyL9gQc8KHWWhk7SottR/8CRYQQTyDTTeS4L4Xk0N8t hk21090Sxex9EvyQ9+D+ZvEw+tvErD1R0zCBaKMST9tAvrmLNP9yCPtwVFxiWK0F RO9c2KRqkEU6UXRYa8gUXUV6h+wQ9M/ftfjW+sEr5jBklvUYMu8ulOyrQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudehuddgleekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne goteeftdduqddtudculdduhedmnecujfgurhepfhgfhffvvefuffgjkfggtgesthdtredt tdertdenucfhrhhomhepufhtvghfrghnucftohgvshgthhcuoehshhhrseguvghvkhgvrh hnvghlrdhioheqnecuggftrfgrthhtvghrnhepvdduhfdvffduvedvkedvffejvdejuedv feejtdejtefffeejgfelhfetkedtgeeknecuffhomhgrihhnpehkshhmtddupgdurdhfrg hilhdpkhgvrhhnvghlrdhorhhgpdhkshhmtddurdhfrghilhenucevlhhushhtvghrufhi iigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehshhhrseguvghvkhgvrhhnvghlrd hioh X-ME-Proxy: Feedback-ID: i84614614:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 22 Nov 2023 12:19:50 -0500 (EST) References: <202311161132.13d8ce5a-oliver.sang@intel.com> <3540fd3e-88dd-462b-88ce-df28b7b5b148@redhat.com> <87edgo8gq7.fsf@devkernel.io> User-agent: mu4e 1.10.3; emacs 29.1 From: Stefan Roesch To: Stefan Roesch Cc: David Hildenbrand , kernel test robot , oe-lkp@lists.linux.dev, lkp@intel.com, linux-kernel@vger.kernel.org, Andrew Morton , Johannes Weiner , Rik van Riel , linux-mm@kvack.org, ltp@lists.linux.it Subject: Re: [linus:master] [mm/ksm] 5e924ff54d: ltp.ksm01.fail Date: Wed, 22 Nov 2023 09:16:47 -0800 In-reply-to: <87edgo8gq7.fsf@devkernel.io> Message-ID: <877cm9so25.fsf@devkernel.io> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.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 (lipwig.vger.email [0.0.0.0]); Wed, 22 Nov 2023 09:20:14 -0800 (PST) Stefan Roesch writes: > David Hildenbrand writes: > >> On 16.11.23 05:39, kernel test robot wrote: >>> hi, Stefan Roesch, >>> we reported >>> "[linux-next:master] [mm/ksm] 5e924ff54d: ltp.ksm01_1.fail" >>> in >>> https://lore.kernel.org/all/202311031548.66780ff5-oliver.sang@intel.com/ >>> when this commit is in linux-next/master. >>> now we noticed this commit is merged in mainline, and we still observed >>> same issue. just FYI. >>> Hello, >>> kernel test robot noticed "ltp.ksm01.fail" on: >>> commit: 5e924ff54d088828794d9f1a4d5bf17808f7270e ("mm/ksm: add "smart" page >>> scanning mode") >>> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master >>> [test failed on linus/master 3ca112b71f35dd5d99fc4571a56b5fc6f0c15814] >>> [test failed on linux-next/master 8728c14129df7a6e29188a2e737b4774fb200953] >>> in testcase: ltp >>> version: ltp-x86_64-14c1f76-1_20230715 >>> with following parameters: >>> disk: 1HDD >>> test: mm-00/ksm01 >>> compiler: gcc-12 >>> test machine: 8 threads 1 sockets Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz (Kaby Lake) with 32G memory >>> (please refer to attached dmesg/kmsg for entire log/backtrace) >>> If you fix the issue in a separate patch/commit (i.e. not just a new version >>> of >>> the same patch/commit), kindly add following tags >>> | Reported-by: kernel test robot >>> | Closes: https://lore.kernel.org/oe-lkp/202311161132.13d8ce5a-oliver.sang@intel.com >>> Running tests....... >>> <<>> >>> tag=ksm01 stime=1699563923 >>> cmdline="ksm01" >>> contacts="" >>> analysis=exit >>> <<>> >>> tst_kconfig.c:87: TINFO: Parsing kernel config '/proc/config.gz' >>> tst_test.c:1558: TINFO: Timeout per run is 0h 00m 30s >>> mem.c:422: TINFO: wait for all children to stop. >>> mem.c:388: TINFO: child 0 stops. >>> mem.c:388: TINFO: child 1 stops. >>> mem.c:388: TINFO: child 2 stops. >>> mem.c:495: TINFO: KSM merging... >>> mem.c:434: TINFO: resume all children. >>> mem.c:422: TINFO: wait for all children to stop. >>> mem.c:344: TINFO: child 1 continues... >>> mem.c:347: TINFO: child 1 allocates 128 MB filled with 'a' >>> mem.c:344: TINFO: child 2 continues... >>> mem.c:347: TINFO: child 2 allocates 128 MB filled with 'a' >>> mem.c:344: TINFO: child 0 continues... >>> mem.c:347: TINFO: child 0 allocates 128 MB filled with 'c' >>> mem.c:400: TINFO: child 1 stops. >>> mem.c:400: TINFO: child 0 stops. >>> mem.c:400: TINFO: child 2 stops. >>> ksm_helper.c:36: TINFO: ksm daemon takes 2s to run two full scans >>> mem.c:264: TINFO: check! >>> mem.c:255: TPASS: run is 1. >>> mem.c:255: TPASS: pages_shared is 2. >>> .... >>> mem.c:255: TPASS: pages_shared is 1. >>> mem.c:255: TPASS: pages_sharing is 98302. >>> mem.c:252: TFAIL: pages_volatile is not 0 but 1. <----- >>> mem.c:252: TFAIL: pages_unshared is not 1 but 0. <----- >> >> @Stefan, is this simply related to the new scanning optimization (skip and >> eventually not merge a pages within the "2 scans" windows, whereby previously, >> they would have gotten merged)? >> >> If so, we might just want to disable that optimization for that test case? >> >> Alternatively, maybe we have to wait for "more" scan cycles instead of only 2? > > I'd expect this is caused by "smart scan", where we can skip pages. > The best is probably to disable the smart scan feature for this test. > The smart scan feature can be disabled by: > > echo 0 > /sys/kernel/mm/ksm/smart_scan > > I'll have a look at it today. > If I disable "smart scan", the testcase completes successully. This is simply the case that for the testcase, it can "skip" a page (as the "smart scan" feature is enabled). The easiest fix is to disable smart scan for the ksm cases. I'll send an ltp patch a bit later to address this issue.