Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp515977ybb; Fri, 10 Apr 2020 04:50:07 -0700 (PDT) X-Google-Smtp-Source: APiQypJQZP9afy/T7F1W8GMDnnuDdBcqia0np8gaTLBP/hFSx8mQ9djFpuLztkqashLdnw6LK9SJ X-Received: by 2002:a05:620a:341:: with SMTP id t1mr3617889qkm.356.1586519407759; Fri, 10 Apr 2020 04:50:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586519407; cv=none; d=google.com; s=arc-20160816; b=ziy9TwJ7C08gFk+CW1XRNoqM8Wins1No5+nqxpmqjK+LOEdQufDGFn4qxP7MFqDIgX 13jTKqw65U4Z09Zh1HChmy0pZZ+Vpe7uXfZw749Aave05o4ahs6ej9sEF6lE7NHhe+Qc piIJKyeRLvN0hQBWCYsfmARmPCpo1H/meFcrAkfPl9r9FqwWNDMZpjCfVR12rnb5f/LX 8igh8ziNEYzTq2Qs8iEsqgAiJ9XIuPxgGHvwWOqXJuDlEh5Tm24dLK46tKy6TZamC8JB 2O+gOY/FmD2Uk6M+HqflMJbf+IHcKjPWu6LupgNHstDZErfPGfSgFXpZSxbXn13J8V2D nrSw== 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=sIKZKvkKOfKVnvhnn37sRvniOncPpFeTUBs3cOx0KS8=; b=fRu1G69ubssAlJdmiJ9xba7wcyGfqi4XAVEM/oKXh9vZM0q4Csv1rJ9E8KmHZpvs2M pBvE9tb28Q1tsKAOno0LlaRPnNy4fM5ocR5+o+EkFiTbyELd12KTBp1TYurBF0trPrkA zxHAzeVTMjRACjnCfRaKJdBvgOQMYXa5pTFh5Aq/cc01H/rfpcCymGkw7VTC7JR5r3/b 8rjjerbI7vvWW7R701x3ijHp0kAW8/xYwki2elqDwaqbiCrhC9EcCyImi6aGyBUHDUeA DyHCJthDzZx3Y1OsQ0tWcJtI4H8+YMhkvGAfPDf+FPrEnG/OnTr7f84eUCOfbYnVQcqK nLlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=FGTYd9ZK; 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 x49si989613qtb.351.2020.04.10.04.49.52; Fri, 10 Apr 2020 04:50:07 -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=FGTYd9ZK; 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 S1726716AbgDJLrm (ORCPT + 99 others); Fri, 10 Apr 2020 07:47:42 -0400 Received: from mail-lj1-f181.google.com ([209.85.208.181]:46695 "EHLO mail-lj1-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726651AbgDJLrl (ORCPT ); Fri, 10 Apr 2020 07:47:41 -0400 Received: by mail-lj1-f181.google.com with SMTP id r7so1655719ljg.13 for ; Fri, 10 Apr 2020 04:47:40 -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=sIKZKvkKOfKVnvhnn37sRvniOncPpFeTUBs3cOx0KS8=; b=FGTYd9ZKEK/G10jkYdyhx6Ch8co8upFEhZBInbBuLHwsCb+Gv40W6obVDIRr5TcOMd rQUFvvHkvylwZw+kD8fGzIeWEDxt4Zy3RROcolQ7Ex2G4Bmw5pD21ExjoWnCTQyAwU0c blFpxTRNbFD3o1gh0nGU24kNPNt6SETZM2zC+buToQRFM8WZsT2RiSGYuLq3jJqhM/N9 knMGY+8tzpEhfZnwV5KrxaKO4vZ9BSdOldFoU5rEi1KiC28inzKNItecFvPM/6YjL4k8 4hWSunh+vSDlrOOWSUk4BHLyyTWYsuh+3uhQPYfx9PuU5jQh1wAZK6Ho/JRRpYr6saWE 9GvQ== 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=sIKZKvkKOfKVnvhnn37sRvniOncPpFeTUBs3cOx0KS8=; b=VaOigQad+2puLUL68L2WvpiU4qiZNclfcZhFNoF48P4Ak6gXmeB8rm29YkI+cKX0vd 1y1dxHfVcmyY9sQbvsITKdrJZUoeO9cmg+ofTlM4x4vw9kGd/Hxv3AD4U+pMnrmgqcBS qJeUNtGtjoUOxjMIrEYmTg+R/EkYa0jfzlQXfRzSjyuthZlWkYNSieufStE9Fuv0e6JN 3MXdGYDSafwQOnjThGJC7nutKcUH2t5hdRDBAuqozhFKQCQNMhNQA38VBTi9nLhA6CNe Am3vb1OulQxR6sVH+zEUqvmSx3Qo/C5xQyOFI2hcJmmPEF1l1wYtSo3It2H8t/JV6YUu IeFA== X-Gm-Message-State: AGi0PuYej35LnYoEi7VvAEqNegdWBsawHld2IX5KVcRqXzrt5YG72usF 6z4mFlUmcts3YcJggZFodpYXdQ== X-Received: by 2002:a2e:8795:: with SMTP id n21mr2883563lji.71.1586519259791; Fri, 10 Apr 2020 04:47:39 -0700 (PDT) Received: from box.localdomain ([86.57.175.117]) by smtp.gmail.com with ESMTPSA id c8sm956193ljd.70.2020.04.10.04.47.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Apr 2020 04:47:39 -0700 (PDT) Received: by box.localdomain (Postfix, from userid 1000) id 11813102110; Fri, 10 Apr 2020 14:47:39 +0300 (+03) Date: Fri, 10 Apr 2020 14:47:39 +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: <20200410114739.b2ndracbyhsdmanv@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? > The config file is attached. Let me know if I miss anything. BTW, I am running in a VM. > > Thanks. > > The output: > > ➜ ~ sudo ./khugepaged > Save THP and khugepaged settings... OK > Adjust settings... OK > Allocate huge page on fault... OK > Split huge PMD on MADV_DONTNEED... OK > Collapse fully populated PTE table.... Fail I was able to reproduce the issue. And it's fun failure mode. How did you get the test case inside the VM? Copy-paste source using 'cat' or something similar inside the VM? It screwed up CHECK_HUGE_FMT and CHECK_SWAP_FMT for me. Double back slash was converted to single. As result check_huge() and check_swap() gave the false-negative result all the time. Could you check that the source of the test-case is not mangled and re-test if it is. -- Kirill A. Shutemov