Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp834745imm; Wed, 23 May 2018 06:21:22 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrseHggXtlTiKyOJLq+qxgt8BM5Ic2oWxYhG9yhXmZYUd8kNAFS+E9CQ9A4lCat9gYAuBRQ X-Received: by 2002:a65:4d08:: with SMTP id i8-v6mr2333884pgt.51.1527081682374; Wed, 23 May 2018 06:21:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527081682; cv=none; d=google.com; s=arc-20160816; b=mCIIFX8HsCaw+Fhe4zUBwcDGe2CU0WW1JqVdZek/qOrq3yVggsSUur4uxugWtP8RJR eMlj4/S04+iBnYJmcQ+VgG5XuoCDHUjNQomoU/V9RdYEAWCgqx/noV6SzFveR+oc9ZMi 3xbSpZ8sh3iEP7TfRDGUg+hTIt9iwk9y3ENrzFjok9QdjLdh73+c0meoKB6QFWLjbatt /sx2nd5KZfGL4xjSrrieQMCHf7JS+c+UGKJK58qJvVb9l57ItcS1GTLn7PhwOMNkBGZw N7xeeUQR7xoOlm9TMQBGYcDC4h4mvHxMM6fTOHk9yi2WadWMRAQL9QtOcgrHyOS3xpu9 0XYQ== 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:from:references:cc:to:subject:dmarc-filter :dkim-signature:dkim-signature:arc-authentication-results; bh=X4RWvrwwvUd/KD7A4B2eRgFJQMzYybOFh9rxG+vec7c=; b=L/0djJkkUIbuoIg8ps9Mqpn2e0QNGzJgcqvIBc9ond6VEp5edgVJkqqUMBzfNNzvS/ B3cmwkKvKy/Um5KEa6519AXnxF7tGJu85DQJFvbqyrYgxdlNMOJtnmEB+Ds8JhPkgGem b+q2TryJXsQgvmWmQXlasA5hQzsqHitC7aL5pPN81zYXggpCukh8M1TddFhVtFCsT5pH Y9ZDmfRse+yYD5ELRdRf4oTlTIqNGC6UwaJjaOgzVlFfJ8vJvuo7x9Dre9MuMIMyl7xj i3F0Rud92fYXF9gmiCB3nLhtF/UvDDbZYy2g0NwGhkzC3HXqNjR5ifCDmRVtxRCMxiam VAPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=PA690Rar; dkim=pass header.i=@codeaurora.org header.s=default header.b=pAy3+03n; 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 y21-v6si18928574pll.353.2018.05.23.06.21.07; Wed, 23 May 2018 06:21:22 -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=@codeaurora.org header.s=default header.b=PA690Rar; dkim=pass header.i=@codeaurora.org header.s=default header.b=pAy3+03n; 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 S933014AbeEWNTh (ORCPT + 99 others); Wed, 23 May 2018 09:19:37 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:52570 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932988AbeEWNTe (ORCPT ); Wed, 23 May 2018 09:19:34 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 394DB60C64; Wed, 23 May 2018 13:19:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1527081574; bh=Y7gzwCVHHPtVifw+NFE5nMBx/GjYEo7NB+YkMBG8UZM=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=PA690RarXKFW6FuJQTXdc1Ot3GhbgGITq+c0L7Ihf4AKfY+ai07rEsaCFkyW2ruyF 2vT0F11NF3Knge4JeOqtE9/BdqolG4AttoUaa2+eIolzj+CTOS+Ms8Ys9YDmThKoVX lKQDgWg0VhumfVrBqf79jcFoUWGM04KxgiULjt6U= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from [10.204.82.12] (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: vinmenon@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 48D57602BC; Wed, 23 May 2018 13:19:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1527081573; bh=Y7gzwCVHHPtVifw+NFE5nMBx/GjYEo7NB+YkMBG8UZM=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=pAy3+03ngotlVe4t5SkqJr1AgeBuflaAZkh+/jAhoiqZQUsC0R5IYnNEFR1CLXrm5 pdKQl+XSNjMM+zA81N8SEz+z2vPn6chhDKdEJ+HNecI/w4JwDu2oMuuCo6dsHcIMhg 8pcOLjp2x3XOIKfjZ+LetA3UjG6U/rJaoYOJauhE= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 48D57602BC Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=vinmenon@codeaurora.org Subject: Re: [PATCH 6/7] psi: pressure stall information for CPU, memory, and IO To: Johannes Weiner Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-block@vger.kernel.org, cgroups@vger.kernel.org, Ingo Molnar , Peter Zijlstra , Andrew Morton , Tejun Heo , Balbir Singh , Mike Galbraith , Oliver Yang , Shakeel Butt , xxx xxx , Taras Kondratiuk , Daniel Walker , Ruslan Ruslichenko , kernel-team@fb.com References: <20180507210135.1823-1-hannes@cmpxchg.org> <20180507210135.1823-7-hannes@cmpxchg.org> <87060553-2e09-2e2a-13a2-a91345d6df30@codeaurora.org> <20180523131747.GA4086@cmpxchg.org> From: Vinayak Menon Message-ID: <47beeaa6-74aa-35d0-2808-e5c54be854a6@codeaurora.org> Date: Wed, 23 May 2018 18:49:25 +0530 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180523131747.GA4086@cmpxchg.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/23/2018 6:47 PM, Johannes Weiner wrote: > On Wed, May 09, 2018 at 04:33:24PM +0530, Vinayak Menon wrote: >> On 5/8/2018 2:31 AM, Johannes Weiner wrote: >>> + /* Kick the stats aggregation worker if it's gone to sleep */ >>> + if (!delayed_work_pending(&group->clock_work)) >> This causes a crash when the work is scheduled before system_wq is up. In my case when the first >> schedule was called from kthreadd. And I had to do this to make it work. >> if (keventd_up() && !delayed_work_pending(&group->clock_work)) >> >>> + schedule_delayed_work(&group->clock_work, MY_LOAD_FREQ); > I was trying to figure out how this is possible, and it didn't make > sense because we do initialize the system_wq way before kthreadd. > > Did you by any chance backport this to a pre-4.10 kernel which does > not have 3347fa092821 ("workqueue: make workqueue available early > during boot") yet? Sorry I did not mention that. I was trying on 4.9 kernel. It's clear now. Thanks. >>> +void psi_task_change(struct task_struct *task, u64 now, int clear, int set) >>> +{ >>> + struct cgroup *cgroup, *parent; >> unused variables > They're used in the next patch, I'll fix that up. > > Thanks