Received: by 10.223.176.5 with SMTP id f5csp367249wra; Thu, 8 Feb 2018 23:55:59 -0800 (PST) X-Google-Smtp-Source: AH8x226L0peFzon+qdfRVC5AcyQXPnMoomaa6yG2G6+zQr++VMbiPhw7DUd4FgBw1eG7sRg98p5J X-Received: by 2002:a17:902:f83:: with SMTP id 3-v6mr1720579plz.287.1518162958930; Thu, 08 Feb 2018 23:55:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518162958; cv=none; d=google.com; s=arc-20160816; b=IG7UggEQt1HXdrGINVcya8CHAJNdj5Y8b0YaDklfw39RKzdxXY72lGjsVQgp9u+5h/ CpzbdYLUvTpuNnQd3pNttTSMQi15wRNRye1VA+yYBfZnegd65CSHfvopWziPl8VZQtB+ Z85AAVyn5ORiHn6Axjga/npgUEldfEAhBWRJ2fKdnDGK14Y6caVIVP4ejtu5KQwJM6ss h3tuyRho08zv0L3SAKf+RqLlbJ6OhgAR+NVddQp3qo3+bBqoMW2n+/z/e7SR6ACambwt jQ21QJu0J5WFq+ufQ206z9XUCnfNx/aJ4zNPVOizvv6GxaCcDTbTOPh+85rLoC1S4xNo 27qQ== 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:mime-version:user-agent:date:message-id :cc:to:organization:subject:from:arc-authentication-results; bh=ILf1YwUWkpyWFHJF5ZjfGGS1ynH37N720bv9gdA7Cr4=; b=VS2H14rob9Ydsqn+3/PItPGmWrQnVmgHnEONiUgQK25zD2pI7bmi+ZVO01P75NYht8 X3HPce7MSS3cnWbfiMLH2FGMzRBVfMV1GqcH6X7SFIwq1ZuqO4SzR+MA4TWQDldyRIxU 7z/2P+Fo6TXt/rgZjpFnbPfqBvL3gRfI+XhoVVs6mmm9qGJf1AYoo7SyyppLka4QRub7 qFCTPprpnusEkkLYj5DlJ8cMo/mOlAjcV6BGqkBFsTWRAZbuqatONbKIaVvs/b+ymAD5 Hn0LUHf5mqNgS9MacK9VMgYSmmMlydMHI/bLeohH8x50e8Hr7qBqc76YUlekFhN9FMps KXKw== 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 u8si1077725pgp.78.2018.02.08.23.55.33; Thu, 08 Feb 2018 23:55:58 -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 S1750925AbeBIHyF (ORCPT + 99 others); Fri, 9 Feb 2018 02:54:05 -0500 Received: from mail.cn.fujitsu.com ([183.91.158.132]:60218 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750778AbeBIHyE (ORCPT ); Fri, 9 Feb 2018 02:54:04 -0500 X-IronPort-AV: E=Sophos;i="5.43,368,1503331200"; d="scan'208";a="36952545" Received: from bogon (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 09 Feb 2018 15:54:02 +0800 Received: from G08CNEXCHPEKD02.g08.fujitsu.local (unknown [10.167.33.83]) by cn.fujitsu.com (Postfix) with ESMTP id F364348AE761; Fri, 9 Feb 2018 15:54:00 +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; Fri, 9 Feb 2018 15:54:01 +0800 From: Li Zhijian Subject: [kselftests] compaction_test is blocked Organization: fnst-ulinux To: CC: "Li, Philip" , , "Li Zhijian(intel)" Message-ID: <700acd92-2b0b-d2da-615e-1f228708d216@cn.fujitsu.com> Date: Fri, 9 Feb 2018 15:53:59 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 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: F364348AE761.AB2B7 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 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 NOTE: 0Day can reproduce this issue in 20% on 0Day. Anybody can help have a look? Thanks Zhjian