Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp1057233lqj; Mon, 3 Jun 2024 08:57:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUvbME6UsuTeWhQku0djd8z13azEP2Wi3vM5hjPt0rVPK0MiBJ2KsV2cWQvlYmG+O17ZODTpTUGwa6KndwNqWIWNX/ICWzy2cTULtZFag== X-Google-Smtp-Source: AGHT+IErKatHKzOF2oFliIVUVU/EUZh15d6aMCk/t+jOP1KaING4RyqdITgJGCGuy2EwXVTqVOMC X-Received: by 2002:a05:6214:5a03:b0:6af:6d72:cddc with SMTP id 6a1803df08f44-6af6d72cf27mr53629336d6.13.1717430251821; Mon, 03 Jun 2024 08:57:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717430251; cv=pass; d=google.com; s=arc-20160816; b=KHoby/f+S4MLwufFRH5kPPeV6chSfjVg1boUPg8/kYp11S1lpeJISTci2ZRySnQJ3i pfcVbwzhrsB/HB9TIHKVZvpmwIkPOlxDhzcdxTCoZ8m/JAErpo8OWu+3EFHnopjBujD5 lD78kSGlNJoM/tHqqE1sIhV/fdkesULxxMsqyxlIjWqcR3D9yQAm6ES0GyWvSJ05qz1O Y+wuFSDDCJVy7BPnBplUbfnpKSJXthgz5Lp5pcGnlFCbm8PFWs3/F1S98tjjAWoqiUxz nwwYp0PCQ5oAjGUDtx1TG9j2irol9dN9D4p53phzMUpIbrqYKhldPBWiYu9w/yN7Bo3D oPEQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=gA5C3+FEeTd4/NZc8dYE1eGCcBvSNBhk69bPa/HGCWM=; fh=ymfwt9n8oK09vhN9wkMGQKlupSykkVpcbmstkP9W6bI=; b=uPjC4zY6PqhQ5S3yWrmokuNQ59oCB659H0xk8o1B2KL4+zl9jbwAP+cV0zzDkDWaPR AhXLP3XEXzahm57NN/2ysYoQEtbpOtDBB19PEw003UV4yndNr0+Ifa+KpwC8Gupd3cti gw37/TkRtXN9Ug/Dwa7TEwKRF7SK8L3qbI2EOHcN2EyYcY7D2X0oANTgKLRKnzE/zngb O5njVnHSjBjfxepgd1WM0ef6HvolhCp1OjYDm/9xAZutVlUbuH8+WkUprdNH+oDMxB3x GPJDh+6Pdj4sRcIHH9KRnVSaWJXuxcyJXF4y3yjYhkqYGMQo6ULhLxhoTnJigsfqKWi1 XvEw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-199395-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199395-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6ae4b42b6edsi80113906d6.463.2024.06.03.08.57.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 08:57:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-199395-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-199395-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199395-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 8B5D11C2166D for ; Mon, 3 Jun 2024 15:57:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CFDDF132134; Mon, 3 Jun 2024 15:57:26 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 16E3A1E525 for ; Mon, 3 Jun 2024 15:57:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717430246; cv=none; b=OzSn3hJ98BbIWRcQrsqKj2rGMRGwW4NUF51wZ8XLxmFEvJqOo5/jbWqsx1AIPfl4GU04SLhWtShYgFIlFIMaJbHR5IBgrZg4kPJzMIfIWoSA38w21Q4xbGqXeKfMVIo17kz5+qB6XQkNsB7U386dKSH4QRIEatRaSA5QkX31vnY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717430246; c=relaxed/simple; bh=2bqRqWYiVIR8h9mv7pcxawhYKpjJqXxZgnm3Padn8pM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=TIvuTn0IqMAuLXgdOEC9ewklKS4yC7nwL1DZ3hTn8eWykRfMeVZkE4w1D9yQj+awnfHPCBZ6/QoEMKpqxgfAEBNNopfYNk3R8fN7EapiYnDf3KCCdLp66XsinFrG/Ck4ECzLJ83UreObz3FOsZ2iPgW6IuT4qclvl1Q9ahzgYqI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 38D3B1042; Mon, 3 Jun 2024 08:57:41 -0700 (PDT) Received: from [10.57.87.208] (unknown [10.57.87.208]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6A28B3F64C; Mon, 3 Jun 2024 08:57:16 -0700 (PDT) Message-ID: <788a0c8a-79b9-4a06-9739-8b62498bde90@arm.com> Date: Mon, 3 Jun 2024 16:57:15 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC][PATCH 08/10] sched/fair: Implement delayed dequeue To: Peter Zijlstra , Luis Machado Cc: linux-kernel@vger.kernel.org References: <20240405102754.435410987@infradead.org> <20240405110010.631664251@infradead.org> <3888d7c8-660e-479c-8c10-8295204e5f36@arm.com> <1461277e-af68-41e7-947c-9178b55810b1@arm.com> <20240425104220.GE21980@noisy.programming.kicks-ass.net> <20240425114949.GH12673@noisy.programming.kicks-ass.net> <20240426093241.GI12673@noisy.programming.kicks-ass.net> <20240523084548.GI40213@noisy.programming.kicks-ass.net> <20240523093338.GJ40213@noisy.programming.kicks-ass.net> Content-Language: en-US From: Hongyan Xia In-Reply-To: <20240523093338.GJ40213@noisy.programming.kicks-ass.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 23/05/2024 10:33, Peter Zijlstra wrote: > On Thu, May 23, 2024 at 10:06:04AM +0100, Luis Machado wrote: > >> Booting the kernel with NO_DELAY_DEQUEUE (default to false), things work fine. Then >> if I switch to DELAY_DEQUEUE at runtime, things start using a lot more power. >> >> The interesting bit is if I switch to NO_DELAY_DEQUEUE again at runtime, things don't >> go back to normal. Rather they stay the same, using a lot more energy. > > Ooh, cute.. weird. I'll try and see if we leak state somehow. Hi. I'm working on uclamp anyway so I just gave this series (and all fixes mentioned in this thread) a go. It seems after running with this series for a while, suddenly uclamp_max no longer works. Running a task with uclamp_max of 110 still sees an rq uclamp_max of 1024. Also weirdly, the PELT signal of that uclamp_max is completely broken. It goes up to a very high value and then suddenly drops to almost 0 from time to time. I wonder if the reason Luis saw that is because he was the first one to run delayed dequeue with uclamp. I'm not familiar enough with the series to know how it could possibly affect uclamp so investigating in this front may be worth trying. Maybe some leaked uclamp state on the rq?