Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp695027pxb; Thu, 9 Sep 2021 09:53:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2D1zt6Cf6W610BKNNM+B53ktCPuG0OCteRNUX1vxWs3Qm3WAB0x6ajdki8ChSIDre/wSV X-Received: by 2002:a17:907:9604:: with SMTP id gb4mr4568711ejc.142.1631206396665; Thu, 09 Sep 2021 09:53:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631206396; cv=none; d=google.com; s=arc-20160816; b=ENBwUwse/yfguDipZ4PXbijZVN9Ajgc4JCcEngAA7gIkzZwDRuut0eaJqkXBqd4m9B fxe1DGPJPA5prrsHzY2+AxQdGLIgvoYMjku6lPcz2oV1PiBeFbX/SNp6I40/zJ9Bsa0g PRfW5X/Cv5pwh/a8tD/eeJEe4s3mt9vpTQJ0H8ygouhYWB5QGzDoCqwR7tw00iCd3tbq pmUp5vIE9n1213BBgE6YiOyvYHsmpCZoXJ0Qn6MsMuTTc3ektCFMGwm41XFo/9/hFThL wCV1jiy1Dob5EfPRsjVeYFo5eKUhT+uzrafoQPYBfi04Li/u/i4QaVULp65znt6SXcX/ xOHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=I16UVI1xVNxqcbO392QGXtKnK4wf/LUEXByP19oIeTk=; b=VJBrxPiFr2QaRXI1+wD5DfDB7bbFXjRgHuTkYhlUiCAF8P875ls2MxJYECDsYdSus/ Z5rPWkNSW/Ot9VETncGA3cIIRLquoC5PUr+6o92Hl+GfMrQeRgz2nuSW7PWalAs9SV90 zz3OhY8yKjHDcAfvoVICPfC1RyMqfmmIJ7gDlcyh1Lfoml3CZzfcYmQRBJdnoO1z13K6 4HosKNOkOv9HVY7erg81rpGzuZBp8h3CH1WHWp0rI/lRMQdmqAh4RPZtYTbjxKNsCW57 CxQBd9Mjcqy5QY0SdWWXU3itCZMvnwA62vRmOViY0vLzirvL5E4wNvT/kKjKAaDHodyj El5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=Ts2msjDf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h14si1746576ejl.480.2021.09.09.09.52.52; Thu, 09 Sep 2021 09:53:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=Ts2msjDf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231316AbhIIQvq (ORCPT + 99 others); Thu, 9 Sep 2021 12:51:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234524AbhIIQvo (ORCPT ); Thu, 9 Sep 2021 12:51:44 -0400 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA5BAC061575 for ; Thu, 9 Sep 2021 09:50:34 -0700 (PDT) Received: by mail-lj1-x22d.google.com with SMTP id s3so3978360ljp.11 for ; Thu, 09 Sep 2021 09:50:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=I16UVI1xVNxqcbO392QGXtKnK4wf/LUEXByP19oIeTk=; b=Ts2msjDfBeODNwvVyn3lwhkrQzPDGDljScDheKIeHLjMmkvMh7yGfx688Vm87Hv5D/ RF65aHED9Q5juZc+DoS23IdDOeQgwYzCoXIrXr5Fw4VOE7FTPw3mx+H/yRoXJ4YoKHRk 2toWXQn8T84Uwzeqeh0micHUDl6U5YT3P2zgfa2f/NNEwx0LV36LXvFpCPDXLbr8V7fM 5YRQrdmhm2pTpZdbRv39VwXOMaJ52wXaSiRHqj4TVSIb7KgrDhxfRfxzCXtoi+dTr2nd j8hZGk/fqXUJadr8sgos3olZOpt8LLlGqPp2jOdwOpHYO6Ovzu0YNtoyoutkl6jMzO/0 mCQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=I16UVI1xVNxqcbO392QGXtKnK4wf/LUEXByP19oIeTk=; b=f8gKL8iWAq+oghTxdSViMC+OgThdfQu7hzaVNc0ev+XggK2z/EFJXd+FpZEtTKDk33 0iO+6GFxHfgLz7wnYOkbj9JV46FlpnJ4ayhmA4KIukBi6/ea479k7rCRamxgIeWUlEKY z6bEBMuDoW8vTqfPNXKIMcsITXMWS41jiWq1wnkmTgiJzgao6wfm/KgD3bXr/phHvPUd oNpVIxSHq5kj/m+NRU3prhJqLiD20rsdLHtNurZMtB7el4yuEBc+Kw8jNEFN/XvqymRm LTyqo5RMnB/7ajKGszOSiXOSAGaS8OYwssCOpCm5WWB53OtcMDEiEvovbFjq1v7NXIYa JNbQ== X-Gm-Message-State: AOAM5315aFS7VYWBw/n9n90U6qujTIBWsxw9q9MAK1W1oA7XDqlkkDsx bImTlXt5REq1I5aWkKnVmWZbPRAm2zk0bZJbNs2eNA== X-Received: by 2002:a2e:858e:: with SMTP id b14mr656887lji.508.1631206232900; Thu, 09 Sep 2021 09:50:32 -0700 (PDT) MIME-Version: 1.0 References: <988f340462a1a3c62b7dc2c64ceb89a4c0a00552.1631077837.git.brookxu@tencent.com> <86e89df640f2b4a65dd77bdbab8152fa8e8f5bf1.1631077837.git.brookxu@tencent.com> <20210909143720.GA14709@blackbody.suse.cz> In-Reply-To: <20210909143720.GA14709@blackbody.suse.cz> From: Vipin Sharma Date: Thu, 9 Sep 2021 09:49:56 -0700 Message-ID: Subject: Re: [RFC PATCH 3/3] misc_cgroup: remove error log to avoid log flood To: =?UTF-8?Q?Michal_Koutn=C3=BD?= Cc: brookxu , tj@kernel.org, lizefan.x@bytedance.com, hannes@cmpxchg.org, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 9, 2021 at 7:37 AM Michal Koutn=C3=BD wrote: > > On Wed, Sep 08, 2021 at 01:24:36PM +0800, brookxu = wrote: > > So there could be two type of events (not referring to the v1-specific > failcnt): > - max - number of times the cgroup's misc.max was hit, > - fail - number of times operation failed (rejected) in the cgroup. > > The former would tell you which limit is probably set too low, the > latter would capture which cgroup workload is affected. (The difference > would become apparent with >1 level deep hierarchies.) We are adding two files in this patch series, misc.events and misc.events.local. I think "fail" should go in misc.events.local and its name should be changed to "max". So, both files will have "max" entry but the one in misc.events will refer to the failures in the current cgroup and its children, and the one in misc.events.local will refer to the originating cgroup. > > Regards, > Michal > > [1] https://lore.kernel.org/lkml/20191202191100.GF16681@devbig004.ftw2.fa= cebook.com/ >