Received: by 10.223.185.116 with SMTP id b49csp841065wrg; Sat, 10 Feb 2018 21:46:14 -0800 (PST) X-Google-Smtp-Source: AH8x226Q9QjYVQ3pSsEL2eek1cGTt610ZPsqY6631rQmvAwDNHZLVGDv55eMgGs7vNm7IxYPgkig X-Received: by 10.99.113.94 with SMTP id b30mr489042pgn.228.1518327974360; Sat, 10 Feb 2018 21:46:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518327974; cv=none; d=google.com; s=arc-20160816; b=EajFX2ESubZMTbmHgRITEpyl6wHA0kNhb2eYUrB/Rx50N3xiitu7JjgHHQLZOKiCjz xBaQAs+POAmuicH4tApQdf2/iVh1uUneB82j+hQg7BVQdpmyfgrdXPc6rqad7XonkqL6 vpxiit12baw0wSmd3AFFjY/uEZvSogFIHF4+LM+25mvE6XumP75X32N85JheXmtRq2v6 1s1rwNPVKnrGd6+u6VE8S2ww6j5eTueNlYKQPYknu5ocO6Hr6ONgDhHaLZd3Vf1FdypO 9fb5xLjzZCxXv7ZzOuTnBVAU1yoWwzNjrXiYmy7+y4cZp44oisnXhKFYhc5np4GeiQ0E ph8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :arc-authentication-results; bh=2Z77VAJa04N7WYqdVRa0CYeNBBMqe+I5hIjtHQwHOqM=; b=VAY9ZzyH/5dohvUfQPdjKIxWfJvEaM/PvD2bDEDt8EkKafL/A71idovXVlufi40DQ8 LBtU4Rl/sn5IgzacoIGbTEb1pD8lkShQCzPJS6zC/CsU9AY4lKjco7gi+BZg9NdrCDfZ 903bNPRBuxbMbDD1OmHljkZ6xdSofBAPAciYJmxhOtd7zN42VUo9eGyhUUv9Rn2OjHqt /v4/dCEFYyjCVAGQNz8ee5SvM5yI/6VJ61E9a5VK3eXd+rLApBxuFKM8zmYGvdtz2kB/ Kb9XOTLl9Q8BNfgZnVBU8blvlBu31DxzXJLyBKMkr87CaKVws5triRgRHDRpyAzueJmY RBzg== ARC-Authentication-Results: i=1; mx.google.com; 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 x14si2044708pgq.11.2018.02.10.21.45.49; Sat, 10 Feb 2018 21:46:14 -0800 (PST) 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; 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 S1752484AbeBKFou (ORCPT + 99 others); Sun, 11 Feb 2018 00:44:50 -0500 Received: from mail.cn.fujitsu.com ([183.91.158.132]:41056 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750739AbeBKFos (ORCPT ); Sun, 11 Feb 2018 00:44:48 -0500 X-IronPort-AV: E=Sophos;i="5.43,368,1503331200"; d="scan'208";a="36981209" Received: from bogon (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 11 Feb 2018 13:44:47 +0800 Received: from G08CNEXCHPEKD02.g08.fujitsu.local (unknown [10.167.33.83]) by cn.fujitsu.com (Postfix) with ESMTP id DD39948AE761; Sun, 11 Feb 2018 13:44:43 +0800 (CST) Received: from [10.167.226.45] (10.167.226.45) by G08CNEXCHPEKD02.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server id 14.3.361.1; Sun, 11 Feb 2018 13:44:44 +0800 Subject: Re: [kselftests] compaction_test is blocked To: Dan Rue CC: , "Li, Philip" , , "Li Zhijian(intel)" References: <700acd92-2b0b-d2da-615e-1f228708d216@cn.fujitsu.com> <20180209211119.xbch2eok6holyvel@xps> From: Li Zhijian Organization: fnst-ulinux Message-ID: <7c95e7cc-1955-ba99-9aa5-4bf5d994bd58@cn.fujitsu.com> Date: Sun, 11 Feb 2018 13:44:41 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180209211119.xbch2eok6holyvel@xps> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [10.167.226.45] X-yoursite-MailScanner-ID: DD39948AE761.AD3F4 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: lizhijian@cn.fujitsu.com X-Spam-Status: No Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/10/2018 05:11 AM, Dan Rue wrote: > On Fri, Feb 09, 2018 at 03:53:59PM +0800, Li Zhijian wrote: >> Hi >> >> kselftests is integrated Intel 0Day project. >> Sometimes we found compaction_test is blocked for more than 1 hours until i kill it. >> >> Try to figure out where it is running, i added some log to this case. >> >> the test log is like: >> ------------------- >> [ 111.750543] main: 248 >> [ 111.750544]- >> [ 111.750821] check_compaction: 98 >> [ 111.750822]- >> [ 111.751102] check_compaction: 105 >> [ 111.751103]- >> [ 111.751362] check_compaction: 111 >> [ 111.751363]- >> [ 111.751621] check_compaction: 118 >> [ 111.751622]- >> [ 111.751879] check_compaction: 123 >> [ 111.751880]- >> ------------------- >> 118 fprintf(stderr, "%s: %d\n", __func__, __LINE__); >> 119 lseek(fd, 0, SEEK_SET); >> 120 >> 121 /* Request a large number of huge pages. The Kernel will allocate >> 122 as much as it can */ >> 123 fprintf(stderr, "%s: %d\n", __func__, __LINE__); <<<======== the last line we can catch. >> 124 if (write(fd, "100000", (6*sizeof(char))) != (6*sizeof(char))) { <<<<============ blocking position >> 125 perror("Failed to write 100000 to /proc/sys/vm/nr_hugepages\n"); >> 126 goto close_fd; >> 127 } >> 128 >> 129 lseek(fd, 0, SEEK_SET); >> 130 >> 131 fprintf(stderr, "%s: %d\n", __func__, __LINE__); >> 132 if (read(fd, nr_hugepages, sizeof(nr_hugepages)) <= 0) { >> 133 perror("Failed to re-read from /proc/sys/vm/nr_hugepages\n"); >> 134 goto close_fd; >> 135 } >> ------------------- >> >> According to above log and code, it most likely it is blocking at the writing operation. >> >> my environment is like: >> OS: debian >> kernel: v4.15 >> model: Ivytown Ivy Bridge-EP >> nr_cpu: 48 >> memory: 64G > Hi Zhijian, > > Please try this patch in mainline: > > 4c1baad22390 kselftest: fix OOM in memory compaction test Hi Dan Thanks for your replies. I run this case on v4.15, looks this patch is already merged to v4.15. lizhijian@inn:~/linux$ git describe 4c1baad v4.15-rc2-2-g4c1baad223906 Thanks > Dan > >> >> NOTE: 0Day can reproduce this issue in 20% on 0Day. >> >> Anybody can help have a look? >> >> Thanks >> Zhjian >> >> >> >> -- >> To unsubscribe from this list: send the line "unsubscribe linux-kselftest" in >> the body of a message to majordomo@vger.kernel.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html > > . > -- Best regards. Li Zhijian (8528)