Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp672302rwi; Mon, 31 Oct 2022 06:19:09 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6t5Geecdm7ruR2emhHJjHRYvw2Fxq8bQjeaWUu3heISYWxyhEBtEtNx5gAE55zTgoklIpf X-Received: by 2002:a05:6402:204d:b0:463:153d:6790 with SMTP id bc13-20020a056402204d00b00463153d6790mr10614373edb.293.1667222349512; Mon, 31 Oct 2022 06:19:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667222349; cv=none; d=google.com; s=arc-20160816; b=mdYWFwChJRjiUCbFJxpai1iykDzHvZ74+XAkVWo9oXsTAJVq1FBoezKJq7bfOnH6B6 3amGLlO/XqMe+bfVXyuqebhj+iI/ECKD7k3oN/50iUeIWY5YLuaxGdyuq9fmgxBZIdDW W6SDkJ8DVzp5vz4r7Bo+K6M/xfpAuq8FyBGV2mB50y5vWnXLD+N2sR3dwpmpUeTeY5LP KmILeFXFc01JiuKuII/g/kRExcrgXuXPktHkD7p8XX1QlSXdCSkKPEE2GD0+zdG/BK9i RiVyK8RJVOd4YWvyMaPbsXi0sWSrEgFoQvNzH/IbuKiDWWQlYOpTEoaXgoJQyHbgYDxP 9i0Q== 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=9aBywTwEBQKb2gzcgaRgyZsi2EZSM4ZEWUFJjjtFqMs=; b=UG478DfravzuX03tl31sqd3CiCccp1iRJ3TpQIxUWCH919sSVaDcxV35vJLxXOGmiD k8ZBIzgBI9M6w6wiCy2+9FfelCdKrGV9hfANyyV1Ue7LmS1gxBu3zMItmdfL0/sE5PMh OeSHF8XC/+1+ieiCddoXVzTrNIjNDjh0cLfHB1byxsyvvmHw8eTNFBZ0qzEwjj9Jp/kZ 1JUH1fgAIXXPX+xPm6ODihN/c5wbUg8paJ48jHDpAsnRVvANE27wrBeu5xIL2+9zQKWr luRDgDVK/hh7kE5dyaJoKbn+X3IIa4vBRTP9poFzKMPZQHuld2vXCDqSA1ms0SRmwoqO iTaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=gdz2pKtg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s19-20020a170906455300b0078e11a20640si6141510ejq.2.2022.10.31.06.18.43; Mon, 31 Oct 2022 06:19:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=gdz2pKtg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230519AbiJaM5o (ORCPT + 99 others); Mon, 31 Oct 2022 08:57:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230297AbiJaM5n (ORCPT ); Mon, 31 Oct 2022 08:57:43 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8CCA3F5B5 for ; Mon, 31 Oct 2022 05:57:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=9aBywTwEBQKb2gzcgaRgyZsi2EZSM4ZEWUFJjjtFqMs=; b=gdz2pKtgNOiMLJL3AfPt64lx87 3ZiKv0c9OvAxLl/oxXAgGaVQS/KOfxjApfZTdRvZ5X6uqY0B/PvmUeFykRRKN6/4hZiLT87fhli1k IGOu7BhNs+uI3aUSNn6aKK+t81baGEP53Tx6bC6dtqJLg47u5Wn4uaB0A/KvlQMte1jUSZAUHDhcv fv3qNJjENZBvXTeKHsQ/Oue5zvp3/aWFtRwuT9GauKCuU+B/oSvdeO/+1pLVvUV885aisrLqBVvHZ gQJ5TndC0sU6wWK6Qz5fgeYdZuge0er/x3guh9zXEmsAfSe3yznTT0dE46NUUZSoBlUFoLCUk7Ksv 2Ff4eNuA==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1opUM8-007sDe-RH; Mon, 31 Oct 2022 12:57:33 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 28CA130029C; Mon, 31 Oct 2022 13:57:32 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id E4DAF2C74B23D; Mon, 31 Oct 2022 13:57:31 +0100 (CET) Date: Mon, 31 Oct 2022 13:57:31 +0100 From: Peter Zijlstra To: Andrei Vagin Cc: Ingo Molnar , Juri Lelli , Vincent Guittot , linux-kernel@vger.kernel.org, Andrei Vagin , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Valentin Schneider Subject: Re: [PATCH] sched: consider WF_SYNC to find idle siblings Message-ID: References: <20221027202603.670616-1-avagin@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221027202603.670616-1-avagin@google.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 27, 2022 at 01:26:03PM -0700, Andrei Vagin wrote: > From: Andrei Vagin > > WF_SYNC means that the waker goes to sleep after wakeup, so the current > cpu can be considered idle if the waker is the only process that is > running on it. > > The perf pipe benchmark shows that this change reduces the average time > per operation from 8.8 usecs/op to 3.7 usecs/op. > > Before: > $ ./tools/perf/perf bench sched pipe > # Running 'sched/pipe' benchmark: > # Executed 1000000 pipe operations between two processes > > Total time: 8.813 [sec] > > 8.813985 usecs/op > 113456 ops/sec > > After: > $ ./tools/perf/perf bench sched pipe > # Running 'sched/pipe' benchmark: > # Executed 1000000 pipe operations between two processes > > Total time: 3.743 [sec] > > 3.743971 usecs/op > 267096 ops/sec But what; if anything, does it do for the myrad of other benchmarks we run?