Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1051193rwb; Wed, 16 Nov 2022 11:14:11 -0800 (PST) X-Google-Smtp-Source: AA0mqf711deCqm5o+lnqRFCkNTlIDruRXkq8rk3u87n7MmGfCU5qjg7Z75bM98AAsc03+DWq6mxS X-Received: by 2002:a05:6402:2483:b0:461:be33:ad25 with SMTP id q3-20020a056402248300b00461be33ad25mr20444123eda.138.1668626051580; Wed, 16 Nov 2022 11:14:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668626051; cv=none; d=google.com; s=arc-20160816; b=sVnAppnNw19V5N9Ne4uC6Okhyq7EXnRdKg4ImWJTAr/cqI+wXtOST+McC6/r70F1Wq JqqZBG+bLRPyr1dMXBqnvaeMimGC+71Icp/CW/7nOPMvWhXgJf0UKvXs1kqDqDbhgjgH kkwc4alphGppbKFZ2U4FQnouf+w/6bhPHUfGoD2TUoWUbFRfi3d3OH2vmPIsM3nsxRYB fdNQG7rjs1tfouMBPZcmWAlPYNqn/fChBbhLDz4KgAVuJSegicWoo+Oi8pjpI88tGH0I ne6y0rEpU1GzsCUUTqME5/RtXE3B0f7mO7SBwvk5S6StmfBpT11GXwh70rFKjfpDux1h 40Dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=iQh/dm/l5pZ34/VZO2TmQSqjFgee06I/tw8Wk6CAbGE=; b=r/xCkj8wmCKPy0edDKfxEClRazyjcksWplap2AsEAGm7udFkzYWtFFIT8Rz3F1jLvf vzX2fzSKnkIKLyMhGe3Xd9Ho9aX89BXerBPgKzxkRf2XJaV6PzNRicGZ2PhDwOVrxIFV YrZGRiWSTGGCZPoam2fgm7jDCT0jhW+YtRU5GgP/WTln3nXEWuvCw5s0IiTtHxxl3ovX ZQld3DlDhBw91Y7KuWQUI3atBntM/O5mvTHuyOSmngLw0ZeOhJXnP/xiTRaVsPpPOW8g otq6EMXT7PRukhCbovv0wt4o4HBPQVs2YMt3CyBdxCvTWio9Ric5awBWfZYFglBvvJB0 BNaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=VMQ2GiJP; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jg9-20020a170907970900b0078db6f56d51si13519667ejc.808.2022.11.16.11.13.49; Wed, 16 Nov 2022 11:14:11 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=VMQ2GiJP; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239021AbiKPSxL (ORCPT + 90 others); Wed, 16 Nov 2022 13:53:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239387AbiKPSwb (ORCPT ); Wed, 16 Nov 2022 13:52:31 -0500 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56B9265877 for ; Wed, 16 Nov 2022 10:50:17 -0800 (PST) Received: by mail-lf1-x12c.google.com with SMTP id b3so31006851lfv.2 for ; Wed, 16 Nov 2022 10:50:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=iQh/dm/l5pZ34/VZO2TmQSqjFgee06I/tw8Wk6CAbGE=; b=VMQ2GiJPZTloLJ15Oad3ZmSx/jY0iKbZmunImFEiSgchUzsWVfOKANFOFcj9J6FjdJ u29vBA31eP1jzFvRjiO1WaX2hCj/3ve7bUe2kClBs0VXQSo2N/cMjHWBCAB722PHM8XI VKf+t2hia/Txsw2uzXUv5Byi5sY0/eVD5kfPd/Z5eDR+8OXRFUNiN3lDsIDLqYWWSZMN kEaPr8ZST68N6MaOK1BoBCMiGjfsilSmaMaAHLdIXjZuQDbm+b87c4rU4lYmE/fdktrP MQEVkqJyj2HJNh+EtydAgUx1+NVp9X+h745a4oVQfG+1zhnLreHaWz2LwTavtmF8gdJD jB4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=iQh/dm/l5pZ34/VZO2TmQSqjFgee06I/tw8Wk6CAbGE=; b=54VMmx7vB1weoFLLaLsNqP/vHSzpG94j316kkmkPvYsrw0E65RL53Kbx8V5Hq7dUF6 /9RNmbnz9TaOKUU9KfIOT+/uwSsfd5gUeKxdC6OOf6caJcXn03qWa1/Jcd7M9ExBCLv/ 2qM69g1P2irIRHSTRLtITlYjtlDa2GRhrK9Mh6aZ4iTGqwUxLsuSG2tJ6RB7KNwtaVeu PO1C8UScqWGPwLon0Ob5f4dq5p291vwNMNLuiF7yiVBjalKZ3nC2cefyhVcdDnzK63Oh 2kMEV/62SqsOfnHtlpjU4Y6qQnlzX6ChwAttQWRgZJHqSm+8qPXQDO3dEoUcoV91hTNl JEpA== X-Gm-Message-State: ANoB5plEHc1taqBlaWJjVxjo/YIkk17g+Lvm1rFpqGVh5R8Ldke+LhQ3 MdAo9gD+72E+gPlhdZOJxf2CL+IxjQPIJpNFq+g= X-Received: by 2002:a05:6512:258e:b0:4a2:500e:2bfa with SMTP id bf14-20020a056512258e00b004a2500e2bfamr7192966lfb.629.1668624615210; Wed, 16 Nov 2022 10:50:15 -0800 (PST) MIME-Version: 1.0 References: <20221027202603.670616-1-avagin@google.com> <20221116105725.6hyyexgwexo52i5j@suse.de> In-Reply-To: <20221116105725.6hyyexgwexo52i5j@suse.de> From: Andrei Vagin Date: Wed, 16 Nov 2022 10:50:03 -0800 Message-ID: Subject: Re: [PATCH] sched: consider WF_SYNC to find idle siblings To: Mel Gorman , kprateek.nayak@amd.com Cc: Peter Zijlstra , Andrei Vagin , Ingo Molnar , Juri Lelli , Vincent Guittot , linux-kernel@vger.kernel.org, Dietmar Eggemann , Steven Rostedt , Ben Segall , Daniel Bristot de Oliveira , Valentin Schneider Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 Hello Mel and Prateek, Thank you both for running tests and publishing results here. On Wed, Nov 16, 2022 at 2:57 AM Mel Gorman wrote: > > This is not too surprising as UDP_STREAM is blasting packets so there are > wakeups but the waker is not going to sleep immediately. So yeah, there are > cases where the patch helps but when it hurts, it can hurt a lot. The patch > certainly demonstrates that there is room for improvement on how WF_SYNC is > treated but as it stands, it would start a game of apply/revert ping-pong > as different bisections showed the patch caused one set of problems and > the revert caused another. I agree with these conclusions. The situation is more complex than how I saw it initially. Thanks, Andrei