Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4566624pxj; Tue, 22 Jun 2021 03:15:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyTKA2fb6FMWd7ydTTS6ev0G22PnSIwI7TeITxUVtqrSvtm6X/VGGlGV/1Hpjva490+yO15 X-Received: by 2002:a05:6402:49:: with SMTP id f9mr3840104edu.178.1624356950563; Tue, 22 Jun 2021 03:15:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624356950; cv=none; d=google.com; s=arc-20160816; b=fAgA9vP/euz8wpCyY187EqJmOoY3MhH1CdogC9GUxjJLxxivc0NaqnYxZo52JzvrmQ iu0F4jWDlevheqoofl+USKYvgpqWHkH/ERaW1BeAO+ROCplkIKGPUneAKPSg1k5EIF1F SvTSBI7r2Z0JUyZ2ZJD17DbyBmlvFPB+pVsUGVZvWFjVpoTkJE2P8KBhebmaw5vw1inw uAHm0pK2Jv1S9JBv+w+6hu74QqzgYd0Kij7hAx0ZNPRcNRDg8eglc7AtkPKaYNJfwnLx hV2CLMB58M1y69McwUWYfXJTFhah6EyLo7DFb3PGZtkqdKpa8sEszgvDx4/Doq/h7lFc ZMCA== 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:dkim-signature; bh=m/PNF9zOtViCXqnWeK+U2jCbj/bcShwTNGJrfBL+REo=; b=QwTaupGkli+LofvmYCE02bilYsCBUR/ElclgmIdF5mJNA6Dq+SmMs2aGtYw7tY6MB7 tukUJ3GpkroUdC0XSftYo+2nSYtuQ5OkRilFQaEYQcmzHZwisQsAb1NnRyNedqEr1FL9 9E/HUDgFpz8R6My5U8gCcM7raUI8EHI5djUWidBDNCJOuftK7TDj/9fLlhr+mkQP+x0d 7wfVS6ujudZPUSEGWHopqlqEOwHQSfovT6xQWqsbhSyVl1+bPc4f3niq4xCfktz94arK 1mKEolkb69wCowFOA53z53b3IKCHJtVvdDb3wahNzLdKSByowGRidEQfTZPPRkx0RJRI iA2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=cfXGRgJ7; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id di2si10341311edb.558.2021.06.22.03.15.27; Tue, 22 Jun 2021 03:15:50 -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=@linuxfoundation.org header.s=korg header.b=cfXGRgJ7; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229825AbhFVKQv (ORCPT + 99 others); Tue, 22 Jun 2021 06:16:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:38006 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229674AbhFVKQv (ORCPT ); Tue, 22 Jun 2021 06:16:51 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 190266109E; Tue, 22 Jun 2021 10:14:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1624356874; bh=cMy6BBj1ibQ2XrT7h06HDmFSBOdtVkwQnDCm39eQh2U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cfXGRgJ7YCVRmoA5dMcNPixzJVbFk61JDKbEVwwzcZz2CyhjCAUD9xtEn8Rt4LjyL R6s9tSxAqW+mCo/eoBDpsc43MfgErstbtFc1j51eXSv+CVf4SLUMFuB+MayqgHeJiC b/p/+oCuAmxBTlhC5PlFXNr1sBpHHiy5Z/9hcsDo= Date: Tue, 22 Jun 2021 12:14:31 +0200 From: Greg Kroah-Hartman To: Peter Zijlstra Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Odin Ugedal , Vincent Guittot , Sasha Levin Subject: Re: [PATCH 5.10 095/146] sched/fair: Correctly insert cfs_rqs to list on unthrottle Message-ID: References: <20210621154911.244649123@linuxfoundation.org> <20210621154917.185551238@linuxfoundation.org> 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 On Mon, Jun 21, 2021 at 06:57:58PM +0200, Peter Zijlstra wrote: > On Mon, Jun 21, 2021 at 06:15:25PM +0200, Greg Kroah-Hartman wrote: > > From: Odin Ugedal > > > > [ Upstream commit a7b359fc6a37faaf472125867c8dc5a068c90982 ] > > > > Fix an issue where fairness is decreased since cfs_rq's can end up not > > being decayed properly. For two sibling control groups with the same > > priority, this can often lead to a load ratio of 99/1 (!!). > > > > This happens because when a cfs_rq is throttled, all the descendant > > cfs_rq's will be removed from the leaf list. When they initial cfs_rq > > is unthrottled, it will currently only re add descendant cfs_rq's if > > they have one or more entities enqueued. This is not a perfect > > heuristic. > > > > Instead, we insert all cfs_rq's that contain one or more enqueued > > entities, or it its load is not completely decayed. > > > > Can often lead to situations like this for equally weighted control > > groups: > > > > $ ps u -C stress > > USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND > > root 10009 88.8 0.0 3676 100 pts/1 R+ 11:04 0:13 stress --cpu 1 > > root 10023 3.0 0.0 3676 104 pts/1 R+ 11:04 0:00 stress --cpu 1 > > > > Fixes: 31bc6aeaab1d ("sched/fair: Optimize update_blocked_averages()") > > [vingo: !SMP build fix] > > Signed-off-by: Odin Ugedal > > Signed-off-by: Peter Zijlstra (Intel) > > Reviewed-by: Vincent Guittot > > Link: https://lore.kernel.org/r/20210612112815.61678-1-odin@uged.al > > Signed-off-by: Sasha Levin > > This one is currently known to cause some LTP fail, fixes are being > discussed, please hold off for now. Now dropped from all queues, thanks. greg k-h