Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp715031pxb; Fri, 14 Jan 2022 14:49:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJyjKdrh9s5c6kOH/3H4ymdecEHH+oLpXsgR8jSxAwaPD67O9O08iSf1hD/Cp+eOqpaXzdZ0 X-Received: by 2002:a17:903:20d1:b0:14a:28ee:9009 with SMTP id i17-20020a17090320d100b0014a28ee9009mr11269853plb.21.1642200565249; Fri, 14 Jan 2022 14:49:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642200565; cv=none; d=google.com; s=arc-20160816; b=UQ/IZaKgKvEjl6Ok6Gu7O+VHX/CEqd/o20Jd9CXmQdEtYiSNYPgiT2WzGmRdDcLpF5 aLlZj5UuUD9JdsXDH8Jaf08t23CHVYfLHccxg7je9aOpPCZOFtj0bQU693jBoA8ZW1HT aWjPSAhYG89scROZzElxd36RP74oCoHvtEQR3JqNbLnYE0iTDhzCkm3STHLOMrSFVQNl 1okHI/WSHKcD8UTR4BJQ8WNi0FfAPW/fjTpQmIs6RwAazgxNWzk/X2SQcIBJLD+ct4ts XYGi6CEz0jBw8nw7ZxHPSnpwVvQGG867xSVn4cdgR6RIbTErdkdIuNbXnayhFEbu7GDj p6AA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=McBFRt0xW8oYX4Ag1XsMER97DYFpCs3j7XG1ixU4FDo=; b=MORVLddi0t0fcZSZiqsp2jRIcR0q6DPP+kII83C1w7XNc4KbnME2RftzpPHP4JKNUO wqTuSFpp7Ww64R0jKR/ysit4Xn+s4rNYXQQycV97/qGP94AtvXKHNbP9KKW9zu1WQFwc Vymlcd7sMNZftgI9DZD15sR/cpFiMERT0lWnhAUlQudFdipIFrLznQZLbXBHcU7VGHC3 UQy/Jm00TDrMMvkJd+aiV+G4/Jg5AIyVS7lE5kZXX0fgBZOLj75a2/Hju6RJKubH6BwH gCxYjsts5hBIeylVfo6j2g9McohbS5r0u0D9+/R622VwN1rpUE7q6qDndnI0ngk7l4Im W9UA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=a9EtpM5f; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v20si1877973pfm.262.2022.01.14.14.49.13; Fri, 14 Jan 2022 14:49:25 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=a9EtpM5f; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243356AbiANQaj (ORCPT + 99 others); Fri, 14 Jan 2022 11:30:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230367AbiANQah (ORCPT ); Fri, 14 Jan 2022 11:30:37 -0500 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90006C061574; Fri, 14 Jan 2022 08:30:37 -0800 (PST) Received: by mail-pj1-x102f.google.com with SMTP id i8-20020a17090a138800b001b3936fb375so22555173pja.1; Fri, 14 Jan 2022 08:30:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=McBFRt0xW8oYX4Ag1XsMER97DYFpCs3j7XG1ixU4FDo=; b=a9EtpM5fZyStOorZ4XyDyPTTWIeWJp1m8rgkblkXI5QBqLyAlDS/obdGP5LXqJFSow 8jsE4B0lacFd6PDobxJQvYbHD4LbtZMs8mDWi8mUGjVis9URF6QoLBaDQt7qRfKmXDlO y5li58aUPUzGbX+fndZEpo/2O5/QaD4bx9dTWoJFvua9UJp0UhNcjRjbSdG+sBkeRemN jj+rCUF8G/zyfGHLNeYnZqAKzVvgx2YTM9Yow8dcg5y6LhH1dr9S7E+2EQQ5v9H9bcHh bhCa+ZRyNhFuzP/4I4CFRWYZ7baOQtlV1HhUt+SRvfA1/CgwR38MDGkr3Bpr6hE7GKyK GRIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=McBFRt0xW8oYX4Ag1XsMER97DYFpCs3j7XG1ixU4FDo=; b=zkS1/+ISaEly+kBEEnygW9RTZjM5+EU4FyC4m5L9tkNZ7FZbiSuuNt9hvA0DLj+qds KqYOX4mQFPd4Dc7+oelyDwybcjZEpAiKHyPh5opcfsjI0OKhbpzcIBiJMBY5fynN8KNa BxAIiemog21tmsopzlY5Uo/eXHep9w8GNaYjDK8uhaSZAfxA9VAmjTmsrV5n3rkI5xMw TiHo+5Ex26CPonZ4u/+LRugJ5M49YbuDYgY0mLkKsU36S1cnI/Lh1W/L8nnQa2eooJWr 3YFxmKGEbtjohXDPlw2QPpBMSytSiJPZlK0nAD5E9/7cTzvW3qlklPQpvM1f7wNpWjE8 oJtg== X-Gm-Message-State: AOAM530j4DiHRK7LUsLqbq9uZ5tkbhaNw6uHHFcIkRpkrdPYvs3OKbpI UvLYCZ0Ff1HVLT+D1+e7Xgc= X-Received: by 2002:a17:90a:748:: with SMTP id s8mr334066pje.139.1642177836736; Fri, 14 Jan 2022 08:30:36 -0800 (PST) Received: from localhost (2603-800c-1a02-1bae-e24f-43ff-fee6-449f.res6.spectrum.com. [2603:800c:1a02:1bae:e24f:43ff:fee6:449f]) by smtp.gmail.com with ESMTPSA id z16sm5017479pgi.89.2022.01.14.08.30.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jan 2022 08:30:36 -0800 (PST) Sender: Tejun Heo Date: Fri, 14 Jan 2022 06:30:34 -1000 From: Tejun Heo To: Peter Zijlstra Cc: Daniel Jordan , Alexander Duyck , Alex Williamson , Andrew Morton , Ben Segall , Cornelia Huck , Dan Williams , Dave Hansen , Dietmar Eggemann , Herbert Xu , Ingo Molnar , Jason Gunthorpe , Johannes Weiner , Josh Triplett , Michal Hocko , Nico Pache , Pasha Tatashin , Steffen Klassert , Steve Sistare , Tim Chen , Vincent Guittot , linux-mm@kvack.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org Subject: Re: [RFC 15/16] sched/fair: Account kthread runtime debt for CFS bandwidth Message-ID: References: <20220106004656.126790-1-daniel.m.jordan@oracle.com> <20220106004656.126790-16-daniel.m.jordan@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On Fri, Jan 14, 2022 at 10:31:55AM +0100, Peter Zijlstra wrote: > So part of the problem I have with this is that these external things > can consume all the bandwidth and basically indefinitely starve the > group. > > This is doulby so if you're going to account things like softirq network > processing. So, anything which is accounted this way should slow down / stall the originator so that backcharges can't run away. In many cases, these connections are already there - e.g. if you keep charging socket rx buffers to a cgroup, the processes in the cgroup will slow down and the backpressure on the network socket will slow down the incoming packets. Sometimes, the backpressure propagation needs to be added explicitly - e.g. filesystem metadata writes can run away because something can keeping on issuing metadata updates without getting throttled neither on memory or io side. So, for situations like that, we need to add an explicit mechanism to throttle the originator asynchronously. Thanks. -- tejun