Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3406809ybb; Mon, 6 Apr 2020 08:21:27 -0700 (PDT) X-Google-Smtp-Source: APiQypJmo3Pon0v1ql/5BHC7Zz+8cQfa+p/svXZmkqddzEo4wsGaxEu76qzl0wIAH3LV18ZTq88C X-Received: by 2002:aca:dc44:: with SMTP id t65mr13409711oig.176.1586186487332; Mon, 06 Apr 2020 08:21:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586186487; cv=none; d=google.com; s=arc-20160816; b=ytNSNnWyFyxfKxp+IwZuD4dh6kcBK/lJ1JG0oeit0gJlF/IeX4ygdpsK0pMIOPR5mM B/m75a+ASKtmFWSDG9d0k2SMOD9CcR4EUDmYUzjFS6gaGgnDaWtJkIjBMRo2SY0Y7Q4r XJ6Uj4SVO2ewFSwNZUlDy6FI3Y2Lq3O//CewBTQ4DaP+t6BSfa/T3X5Pzi3RTh1EFt8H LdY3oWGDeuSySlCHCQzkiTyVOYgtYHFmjahzArWFpXMGiUo+wvIB0caHPc9TVhM/3nhO N8JetFKfN3hjKwyTyrGOXSK5xZMThmZUn/oACS9YQkM9PdcC+tVK89hIUx0mzhS1S6eU 6jcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=VN7tXM9WpWG9Sex4ME8LHgSGrAm2umkz7YNU7j8s4/s=; b=bOCDLdYfx3/7ZthOgrclK4clUdHBhkRfMubcB09AD+e7PTfFVkZnd6pwQCDMvBTFUf CEWsLeThLgbwB3AbaFWc8kbITqkWcYRJoJ15IU+qftW8mHJ5NbIUlzYMnYIhjImw8mIN 8iIJ3+reiqCGaKwjjPtKzKS4amEeZCMYaXrj9bPYVS7Xan5oqY0tR6/dxfyejOMZKt06 iTWZfshxQP9rIOJeNCsC0cSMlbR+f6EzqnwGAhmxvpHLA9IV1U7giMy2BtKdxzNr3Dgg Xr4idTLEE9hZa7DiFdVrnwfJmtAV1GWNxpzzT2+4TmYUO6q4THTpZTtD+7gKSL+lfyyM pVEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=fDjftacl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b187si7744671oif.221.2020.04.06.08.21.03; Mon, 06 Apr 2020 08:21:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=fDjftacl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728891AbgDFPUf (ORCPT + 99 others); Mon, 6 Apr 2020 11:20:35 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:40003 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728761AbgDFPUf (ORCPT ); Mon, 6 Apr 2020 11:20:35 -0400 Received: by mail-lf1-f68.google.com with SMTP id j17so12167074lfe.7 for ; Mon, 06 Apr 2020 08:20:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shutemov-name.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=VN7tXM9WpWG9Sex4ME8LHgSGrAm2umkz7YNU7j8s4/s=; b=fDjftaclnJNAHgUIzctyYVGlJOYjK1zg48mQXrNidXzE6ENUWI3HD+BbyQeXUlv0pb pwhmdsJ1ZJSbOf1kpPXSNz/juf7ho7MUfcvHZXuyREAMAFQ+mu5ANmmtturoYtr9+NXj QPYvB9/hZRG2qd6Z/PpdpH48ZWjwUXQ5pXDZMuEyDtnqUmEUjYJ3lz6oR8j5QkOeGZME InccEQclxTn0Wk0It5QjzItTZmOiC6lyK0/Vn7d7F6jPDksRIdubxO94etUl4hg5AMa0 jp7U6MQ3Qmdo4cU/6rqv8xesBYLZ1rMZGCdoAwhDd3+vornfy5zK1kQ5vtVjrdAYnsVU jpIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=VN7tXM9WpWG9Sex4ME8LHgSGrAm2umkz7YNU7j8s4/s=; b=uG01FDQhZex2g/4zfH3JgEkgZxirr3bHpMRU7E44Jl6nCLg5XbynLVrXcrwIMo6XUB qBaUXtKAJDtpbRF/YT9jLSN0Y0rXcKmDZyJa9Mpd4Lts04nTEA9WY3kkqEq4KoB3HLl4 j9LjUuspmH6jOA3H/4laq6VmdUzRdGiepob6HB4uAwEiIMkB4PuHyhUnnihIvHHNrzoJ UVhlDyx0BJqHllf/8KKb7jYIJoePma76fZkSpY5VKqWy5Xw6T59byPveiuGdGYj6zk1H j3hDsP1bHkyf9DCYWtigZnI9ftZmIGPVT2BgZ/uOmxiO+O12QbiSpSJ2W1wCccpZRZ5B Vi3g== X-Gm-Message-State: AGi0PuaQbbyq9l8l2hnHLCh/P/M4rps1SoB9CPyRmUyBwxSVpAJr3YPE EDvmM3V5t1ONnDut8GM21k2eig== X-Received: by 2002:ac2:545a:: with SMTP id d26mr13913427lfn.85.1586186434219; Mon, 06 Apr 2020 08:20:34 -0700 (PDT) Received: from box.localdomain ([86.57.175.117]) by smtp.gmail.com with ESMTPSA id z9sm9454960lfd.9.2020.04.06.08.20.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Apr 2020 08:20:33 -0700 (PDT) Received: by box.localdomain (Postfix, from userid 1000) id B505F1017CF; Mon, 6 Apr 2020 18:20:35 +0300 (+03) Date: Mon, 6 Apr 2020 18:20:35 +0300 From: "Kirill A. Shutemov" To: Zi Yan Cc: akpm@linux-foundation.org, Andrea Arcangeli , Yang Shi , linux-mm@kvack.org, linux-kernel@vger.kernel.org, "Kirill A. Shutemov" Subject: Re: [PATCHv2 1/8] khugepaged: Add self test Message-ID: <20200406152035.ga7hk6jfaqzvlete@box> References: <20200403112928.19742-1-kirill.shutemov@linux.intel.com> <20200403112928.19742-2-kirill.shutemov@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 06, 2020 at 10:59:52AM -0400, Zi Yan wrote: > I ran this test with all patches from this series applied to Linus’s > tree, but still see several failures. Is it expected? [Thanks for catching all my typos] No. It works fine for me. Well, occasionally, it fails to swap out a page, but nothing like you have here. Could you try to trace it? I used script like below after mounting tracefs. You may want to comment out all tests but a failing one. #!/bin/sh -efu echo > /sys/kernel/tracing/trace echo 1 > /sys/kernel/tracing/events/huge_memory/enable while ./khugepaged; do echo > /sys/kernel/tracing/trace done cat /sys/kernel/tracing/trace -- Kirill A. Shutemov