Received: by 10.223.176.5 with SMTP id f5csp1139172wra; Fri, 9 Feb 2018 13:12:16 -0800 (PST) X-Google-Smtp-Source: AH8x224OORlA81OLH2+SdR3iTDW6wakINn5J+aVWcu9JVz/DQpKcgt0H3Y3oY2hoKCmhgh9zRcym X-Received: by 10.98.190.11 with SMTP id l11mr4162695pff.32.1518210736098; Fri, 09 Feb 2018 13:12:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518210736; cv=none; d=google.com; s=arc-20160816; b=xke4gMWnKhCu51w5AjDrUWwZMvVFLrXko9n0/kxWL8YWikhTuUXCP85FACET7TtVsC RHkvd9buA5h8iXOp7iJ3OphlIHNsmpEwN2jxJ+o+XQKvFVY1MPB5jAwHgAGY4i0IqiS5 bDxX0d4UkCVFdKRHsu8QVO2tnaStE63ZviFTtVc866pJ9ovwC5jhCslbZd8ixZGH0HhF Wlbu90g1QUj8ik4GGK1WDSPhFL78xEDGq9eU/0br//Ci4cKBnu0YMxBRm0RfSqgl9g2B 6D+GFbUI6k1U0Jp5vLMsam+AJfD83Vcbq+kYGjBNaJHK2zPxetzmnmioA9BNTCYKY4+p bKUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=jxdXJwzOxKp8LnQVy1HeTux9woHVoBBuonj2fPmHm3U=; b=xLoQOWF8Mlfnd5H9yk9QN//1oVNpOOuPMqXf1unNgPjbhiY3aQ8BRugO7W3efe7BZc dcyC4/O54hVudEgETTquzlr/RAc+KRBwkJgzEI02zcP1+Dt+tXuTWN546GOkVNeUlK+1 7n9MT6Up8quuvLJTeoo74l9K4rGOVvfzc07JAqHasDoisrdiV924R3arDOy/ynREYZ9m whYKfoK+L4v+Za4vf4rRnjR0qqnUTd1IIrpF2lWNG4gTYDBgyhdQL9tcE4kZ1fv3d4Gz OTEVaiMqtwAqRuEwaeOJ09GepYBua7RL16HE8UUGRFWD1gyC6eh5z8JvSH3d9u0POJ1S UXBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YNU66keI; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j12-v6si844397plt.13.2018.02.09.13.12.01; Fri, 09 Feb 2018 13:12:16 -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; dkim=pass header.i=@linaro.org header.s=google header.b=YNU66keI; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752807AbeBIVLW (ORCPT + 99 others); Fri, 9 Feb 2018 16:11:22 -0500 Received: from mail-io0-f195.google.com ([209.85.223.195]:39713 "EHLO mail-io0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752409AbeBIVLV (ORCPT ); Fri, 9 Feb 2018 16:11:21 -0500 Received: by mail-io0-f195.google.com with SMTP id b198so11116214iof.6 for ; Fri, 09 Feb 2018 13:11:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=jxdXJwzOxKp8LnQVy1HeTux9woHVoBBuonj2fPmHm3U=; b=YNU66keIFquWeGnAMOwfMsIugiiFKXFBNr+KcQTgKSnNciG1WkUzvuYTcKpUZrcaw2 UOP243PJkwJn15DsimW5JwC2/1XD1UBFFb40R1JG8TQRgG0po+z/qgFYSgatsYuw//b+ VnWjtBSUHMKr4vRocR1/VVgWMFwFbQdSQtArU= 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:in-reply-to:user-agent; bh=jxdXJwzOxKp8LnQVy1HeTux9woHVoBBuonj2fPmHm3U=; b=fFOzIvRk9iHq0GGb6TGWkmRSb357rR+q9XJHIMWSxgNJFCvE5711ZnXPsPtroqQ/zS ePELemlEKVTwy9symuv0SEDB+zwT5PJLEm2JRb1mbhg9BYNyPLjuVo1IjujWSipeb/sw /UccJZ0ION77ky8fQ7zaGXbCGYRm5LpBuzgdu0PxdEjy5n63/8hxd1qmJTEHxAAQvja/ s+ElAydrocSsmdIcIEYN29yRCpQoyG4NYG0xpHu9+QZi0C80SH4lX1VawlCqtF5Ds10Z +7KBm8RXXQr8ZagN0r1k179ItbcSkq14co+EGr/y8r4noa2hfdPF8GhuAJ2WBc36LRTL mRew== X-Gm-Message-State: APf1xPDoLHlRHbMK22Ck+2JcA9IqKLOVPy1+ZxTFSq4Ri+pdVtgEhHRt Gf3U9S6M2u2HSN+ibRmw4d8sjw== X-Received: by 10.107.17.27 with SMTP id z27mr4920122ioi.254.1518210680423; Fri, 09 Feb 2018 13:11:20 -0800 (PST) Received: from localhost (c-68-47-89-210.hsd1.mn.comcast.net. [68.47.89.210]) by smtp.gmail.com with ESMTPSA id i127sm3787997ita.42.2018.02.09.13.11.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 09 Feb 2018 13:11:19 -0800 (PST) Date: Fri, 9 Feb 2018 15:11:19 -0600 From: Dan Rue To: Li Zhijian Cc: linux-kselftest@vger.kernel.org, "Li, Philip" , linux-kernel@vger.kernel.org, "Li Zhijian(intel)" Subject: Re: [kselftests] compaction_test is blocked Message-ID: <20180209211119.xbch2eok6holyvel@xps> References: <700acd92-2b0b-d2da-615e-1f228708d216@cn.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <700acd92-2b0b-d2da-615e-1f228708d216@cn.fujitsu.com> User-Agent: NeoMutt/20171215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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