Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp1073685lqt; Fri, 19 Apr 2024 22:58:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXfQN84FLt/nM/vAQGIO5+LjkOvfF3mldxIdhnnTNcqA9QGQLSwdOqJhEfSyZt5UxsndUaBQnZt6U/hXkg6pzzbj4F/G8Nf4+J06U4PPw== X-Google-Smtp-Source: AGHT+IEP5/64Nr62VXVXUbcZcX2KaFLHsy2MsRvNq10cFMA91uS+nzfPloG63nPDTi517myfqWlr X-Received: by 2002:a05:6a20:6a0a:b0:1a5:6be8:2d70 with SMTP id p10-20020a056a206a0a00b001a56be82d70mr6867106pzk.21.1713592695482; Fri, 19 Apr 2024 22:58:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713592695; cv=pass; d=google.com; s=arc-20160816; b=DMuDBN2RQWZCcO/7L9/VjLutwhymaBLXlaTO+FnM9CWYSbsLs0lOTFu997ffKwoPPU sdZEU4Nvy/45abnp3rqU/+SmlZ4M6czZz3ZCOJdxR17QStoZhiBeXRnITtvWk5QB9D5c fmlsiXHrPQxdW6DsogIaPdgB5NhUwh2DKJb8OeesXRG1gK++bc6YDjNT/dv5fhQPqJWt 0S/PBFevVXtFGJ1wEXx7IbZeRCsNvHiBI0TAsd32sdXWUqAn+RjaW5VpYTgcljb4q4Kj ZkxCsHi8iFJBNwUf9im8qS2Y9Uv6JoY5++BiKyjdZ04+XMkv+dygIS7VVQp6OgLjQNIE fAKA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=ui-outboundreport:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:user-agent :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=LjfTmEV4dNI6LexaD35ltYWeUzSMwN0iQ8POX1r7Vs8=; fh=XugxiRUU5lwxOpY/9+incgQyjZ2ouMKnuGejW8rKqQY=; b=G7g1NjLwc3xgVpb5n2yrdYp3/cihZy3U9bKQkUcRp4G+gV0cDVopI5dOcfBNEIRbfh NV6ZRncKSPoHVT7mr1ePpd9PPwvGatddtxw0nJXn1IQjUX3X7jw8NrCoHQ/FJ6GeRR9j QlfYahr+uksSzQ/YwDqiwxqttnON3C21EbALo13xtPf5BNsAThLKLJRyCwcqyT8aC8Nd ySxrdSxot2pi/c6wToCl9xIFzUIEx4zodmquaeELey/eNGW5DbFHACRx+9vZwY/4hNg+ eU/+VVNWxYO+G6fVbNs7D4EeXrQmkHJmYNnq7MEy9oGXWaKK8g9O7Eo+6DNgRNQx4ayh F5ow==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=TXaqhKH6; arc=pass (i=1 spf=pass spfdomain=gmx.de dkim=pass dkdomain=gmx.de dmarc=pass fromdomain=gmx.de); spf=pass (google.com: domain of linux-kernel+bounces-152152-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152152-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=gmx.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id l13-20020a63570d000000b005dc9404f489si4440646pgb.338.2024.04.19.22.58.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 22:58:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-152152-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=TXaqhKH6; arc=pass (i=1 spf=pass spfdomain=gmx.de dkim=pass dkdomain=gmx.de dmarc=pass fromdomain=gmx.de); spf=pass (google.com: domain of linux-kernel+bounces-152152-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152152-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=gmx.de 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 23330281799 for ; Sat, 20 Apr 2024 05:58:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DDE60101CF; Sat, 20 Apr 2024 05:58:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmx.de header.i=efault@gmx.de header.b="TXaqhKH6" Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) (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 137637465 for ; Sat, 20 Apr 2024 05:58:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.227.17.21 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713592688; cv=none; b=Z1lBaQh7LNEcjA8Tkg5FsvE7cZzdvBeo+F9Ff66DY4WEflHjwzDXvEGLfMTN2Kkkb3+LOc9otAWE3brqbIhyJMoqNr8Zu4l9Za2ZTavzk6IikgLIhRtPahSs9Yqp40mJ9LEiLbCsD9tsm/+egi1tZeXMy+dfexZCldfiag84gqA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713592688; c=relaxed/simple; bh=SkGSZ7gMisUTlLlglammovEf9aExQFDJOL0lbghMVC8=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=uBdor+MsrxK9YqT+k1HQMrUHSVKVW3ztPMFsPAvBRWqfR8NCl9jTjd83ibmrBoWV3+G6b2mn/dDO5w9+uIRNflqZycExziaSJpw2RKI5UnGDouykgfG5QzNm/Pquab5shg36au5GFqQolP+0Tw96/1FRta6d+Ag6KcJRapS43VE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=gmx.de; spf=pass smtp.mailfrom=gmx.de; dkim=pass (2048-bit key) header.d=gmx.de header.i=efault@gmx.de header.b=TXaqhKH6; arc=none smtp.client-ip=212.227.17.21 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=gmx.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1713592642; x=1714197442; i=efault@gmx.de; bh=LjfTmEV4dNI6LexaD35ltYWeUzSMwN0iQ8POX1r7Vs8=; h=X-UI-Sender-Class:Message-ID:Subject:From:To:Cc:Date:In-Reply-To: References:Content-Type:MIME-Version:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=TXaqhKH64pcodV/2YvHXZ45gqZsytwWKrBkD2gX7duB2JLLPRTqhfz9EgZYxWLEL Zj0gB9TC5RPytVFn5D0WqmKbQ3wwimLTTvKDGPUknScIVRTI4/MtC5fLXt2yp06wL YuH0eUDijj+rOdztijhF0IfVcyM+b3S/9uV30Vp4jzmdjsFnZ30KbmdULhJu+1gEF lU3NBb/ofjCJfvVMNg5ipzRDKZYywJo1BMRDfmm5AGP3b7pIgG6+hdpwUekV48LBo HaxcIITHH4dZKKZLx2WnX3pvnlsvtFN1ThnuXcPfWAYKz1TcO6Ku2XKFhDvk1ynmT oWm561k3Irm3wwp+0g== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from homer.fritz.box ([185.221.150.222]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MPokN-1sJ9DV3FwZ-00Mql2; Sat, 20 Apr 2024 07:57:22 +0200 Message-ID: <6b2487403dafb09fbdfb0075123fc3fda8ab7636.camel@gmx.de> Subject: Re: [RFC][PATCH 08/10] sched/fair: Implement delayed dequeue From: Mike Galbraith To: Peter Zijlstra , mingo@redhat.com, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, vschneid@redhat.com, linux-kernel@vger.kernel.org Cc: "kprateek.nayak" , tglx@linutronix.de Date: Sat, 20 Apr 2024 07:57:21 +0200 In-Reply-To: <20240405110010.631664251@infradead.org> References: <20240405102754.435410987@infradead.org> <20240405110010.631664251@infradead.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.4 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:2We3pv0AW+IyFfYhCJeXsxkWmLBS4NCWgJOo7Ibml0tb5B3kvwe +oMabgLW7MHC/ApSYo4h+T7xZ7jTnNMCKG5TqHbUbMEUg+VojSblIXUvsaYeUygilI3qylG G1zkQ8mgocvANiNDJwt0wHMRHAYWErq+4jBsBug14fOsPz17Cjgnb6T5sv1lkLc0IPbEUr8 ChGu2JlWUY5zUMQMX9Pnw== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:toGnqYiqh2M=;UdCW03HA+SW2hkNU6yJbikJDfKd R0llb77tczDkenXy5gSHIJgf54UaIlQA7Q2U1oqb5+mZwLyPzVyMh0jR5vlSCl9dHRenN2b9a qUm471hqTyU7sB9wktILlNV1Z6TsxLcNDURxOuHYjhxXOtFeK+BOkc0hrNjt4xRMDwYYmJ2O3 audpWF7tOYHqr81MBb6OpHdRJbAQ86+9Vy2uvS9OfVmLhIh9Vl/j/cOevpp7k6VthsEdOuVSP f1HPnb4KYtNj5ByKFtZti96Ts5qNWp2/nRB/LYBotcgv0BmmmEebGpx0OEd8srUzO0Yo856Hs f4JFGqza/rvSdewk0/ore5IoyZHDkbqY5pmGio9lUoJm+LPHW8/pe/RlQJXsVojzLRsslpTam ZN5Rc0+w/8cv8gRFo60vkVQKOAMN/51HLj2Bu/f8wzX93mc+tpcvOSpczuuyQfkroP/eQnqUe rxKwiHXnnq4cNObOPxvnDw4BlinTiSeuv2IeRWbkn2Bx2V5V/aXSV8j5amhaT2zJdVVxkSwHG mInMSstIyAPD4dpnrd44FEiivfGewgY2dYaBIHY4ztMUOiIwpRq3icGMeww+HzQ1C9NU5BKse RXFPDlVkdW2WOEQMFPcrZCv4Ef2im5vofLNCvL5aQ8yDBMGOWSa6F1bhz5Hm9lE/CdgOvhvvi 8OJ47GAB4FnJ6I1/sLLSyDT6xCMxt/Q3bnuagdM5Z7MTHKuy21oEJ9yMKsR/Vh77yFUrLvjVn aYZEvOSbrqAs/phrmOyoe53RK/BxTCkg1/kLg2svn6g54xKMJT+n+AbZWolFFmdFGa/eosTTL g5VBEoCbTaRgKK9VIfqJad7E/8/T2xd6VEUEjucD3cvok= (removes apparently busted bytedance.com address and retries xmit) Greetings! With this version, the better CPU distribution (for tbench synchronous net-blasting) closed the CFS vs EEVDF throughput deficit. I verified both by rolling the previous version forward and back-porting to 6.1 where I've got CFS and EEVDF to re-compare, now with both dequeue delay patch versions. As usual, there will be winners and losers, but (modulo dead buglet) it looks kinda promising to me. Distribution of single pinned buddy pair measured in master: DELAY_DEQUEUE -------------------------------------------------------------------------= --------------------------------- Task | Runtime ms | Switches | Avg delay ms | Max= delay ms | Sum delay ms | -------------------------------------------------------------------------= --------------------------------- tbench:(2) | 6277.099 ms | 1597104 | avg: 0.003 ms | max= : 0.129 ms | sum: 4334.723 ms | tbench_srv:(2) | 5724.971 ms | 1682629 | avg: 0.001 ms | max= : 0.083 ms | sum: 2076.616 ms | -------------------------------------------------------------------------= --------------------------------- TOTAL: | 12021.128 ms | 3280275 | | = 1.729 ms | 6425.483 ms | -------------------------------------------------------------------------= --------------------------------- client/server CPU distribution ~52%/48% NO_DELAY_DEQUEUE -------------------------------------------------------------------------= --------------------------------- Task | Runtime ms | Switches | Avg delay ms | Max= delay ms | Sum delay ms | -------------------------------------------------------------------------= --------------------------------- tbench:(2) | 6724.774 ms | 1546761 | avg: 0.002 ms | max= : 0.409 ms | sum: 2443.549 ms | tbench_srv:(2) | 5275.329 ms | 1571688 | avg: 0.002 ms | max= : 0.086 ms | sum: 2734.151 ms | -------------------------------------------------------------------------= --------------------------------- TOTAL: | 12019.641 ms | 3119000 | | = 9996.367 ms | 15187.833 ms | -------------------------------------------------------------------------= --------------------------------- client/server CPU distribution ~56%/44% Note switches and delay sum. For tbench, they translate directly to throughput. The other shoe lands with async CPU hog net-blasters, for those, scheduler cycles tends to be wasted cycles. -Mike