Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp187263rdb; Fri, 5 Jan 2024 06:52:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IGagSdWev0H/ahKYv/sg8phGm+JXmSMEBLkaMl+9HEyYnxmEmqZ6qjTuVocjDvecwb+xK4C X-Received: by 2002:a05:6a20:4285:b0:199:5073:c955 with SMTP id o5-20020a056a20428500b001995073c955mr443610pzj.29.1704466324255; Fri, 05 Jan 2024 06:52:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704466324; cv=none; d=google.com; s=arc-20160816; b=e/cx1F1IW+Pe7OWaK90boh77of7cFS0KVhc3lSVNuC5EO+BsJIq9cFPykULUtP9Goh jQVpWauLB5GgnAvBZ+3zHtglKusJBn91w0nhSKjKavb2Yu3C7WgVvcYz2PRUGcR2KTH4 jAIxADLNUuKXQBVodjWCDukka+JbUgbOzFdjJ9goXX5eVCfDlpTwkIDJQ7W/JJm5WFsp UnvRkiZfc4DNnM2VKEOg6vbR70DXBJPTV+UjOtmGZskmmSgo+gVbXRk+tChm82g3Uf40 QNvOzeWCPjxjXQIRG1Nnx4SzOTE6VPIFk4+p/TdLT65IrAWBPn6yomeVQRDQEkfjqF6N XC4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:in-reply-to:subject:cc:to:from:date :dkim-signature; bh=JF1aSc64LWeupLUmhqppZtU612Ye+is04mh5J5L6T7M=; fh=WuLomYDyAW/aYAkZdiGMRXhA3UBMDOVvFe0bJPpPH3o=; b=h+6UDRZVNF4otlQDlRJSfeVG+FThL1XPjK0Y3kxv/jUGsUGdJOgPQG+pmmKj3LnnZw 2KBeEbw0cA8dArfhsu7xKQiPB99NceTPo96Q+RaIWFOed6X83uF3bxRpCy6aRsEU51O8 QnyJLwKamKZoLC/raGEyIr3fWVYHxgSn/VSUsivM8D2wPfMt51dox7QfE/X56WcXLcFa xVBB+7Lr/6IDYKA/L5OSMrlvrOorGxU2cg0iVzgq2ul41C/PC9eYwaEnGJ9PcprJ7msb teZEaalq392YR/UsPK/vdJYRBk6CIKjrIjF2+mk1ak87ExYLRJMB1vkvAD5s6TlU2HIY ooeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@inria.fr header.s=dc header.b=SoMPbgil; spf=pass (google.com: domain of linux-kernel+bounces-17969-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17969-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=inria.fr Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id i184-20020a6254c1000000b006d9a094cf29si1360523pfb.160.2024.01.05.06.52.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 06:52:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-17969-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@inria.fr header.s=dc header.b=SoMPbgil; spf=pass (google.com: domain of linux-kernel+bounces-17969-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17969-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=inria.fr 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id BF5ED28244F for ; Fri, 5 Jan 2024 14:52:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2EBB32E3E5; Fri, 5 Jan 2024 14:51:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=inria.fr header.i=@inria.fr header.b="SoMPbgil" X-Original-To: linux-kernel@vger.kernel.org Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 31E0028DDA for ; Fri, 5 Jan 2024 14:51:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=inria.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=inria.fr DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=JF1aSc64LWeupLUmhqppZtU612Ye+is04mh5J5L6T7M=; b=SoMPbgil+i1vrzct20kWFea6a+pjeq/rHQBX4tfAe/q0vvX5qTIl7HvW al6jfonSRfWTHrZBgASjINm0uWP1Yf4CZ8YQQRlNmsRM04pImH0oIPGFR E8TNztNvYlp8MgjLJQe+0dOwh4KmNVl7JESllOr7x8yyMpZVK1cggdYTG E=; Authentication-Results: mail2-relais-roc.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=julia.lawall@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="6.04,334,1695679200"; d="scan'208";a="145104196" Received: from dt-lawall.paris.inria.fr ([128.93.67.65]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jan 2024 15:51:50 +0100 Date: Fri, 5 Jan 2024 15:51:50 +0100 (CET) From: Julia Lawall To: Vincent Guittot cc: Peter Zijlstra , Ingo Molnar , Dietmar Eggemann , Mel Gorman , linux-kernel@vger.kernel.org Subject: Re: EEVDF and NUMA balancing In-Reply-To: Message-ID: References: <98b3df1-79b7-836f-e334-afbdd594b55@inria.fr> <93112fbe-30be-eab8-427c-5d4670a0f94e@inria.fr> <9dc451b5-9dd8-89f2-1c9c-7c358faeaad@inria.fr> <2359ab5-4556-1a73-9255-3fcf2fc57ec@inria.fr> <6618dcfa-a42f-567c-2a9d-a76786683b29@inria.fr> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII > Your system is calling the polling mode and not the default > cpuidle_idle_call() ? This could explain why I don't see such problem > on my system which doesn't have polling > > Are you forcing the use of polling mode ? > If yes, could you check that this problem disappears without forcing > polling mode ? I expanded the code in do_idle to: if (cpu_idle_force_poll) { c1++; tick_nohz_idle_restart_tick(); cpu_idle_poll(); } else if (tick_check_broadcast_expired()) { c2++; tick_nohz_idle_restart_tick(); cpu_idle_poll(); } else { c3++; cpuidle_idle_call(); } Later, I have: trace_printk("force poll: %d: c1: %d, c2: %d, c3: %d\n",cpu_idle_force_poll, c1, c2, c3); flush_smp_call_function_queue(); schedule_idle(); force poll, c1 and c2 are always 0, and c3 is always some non-zero value. Sometimes small (often 1), and sometimes large (304 or 305). So I don't think it's calling cpu_idle_poll(). x86 has TIF_POLLING_NRFLAG defined to be a non zero value, which I think is sufficient to cause the issue. julia