Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp12063708rwd; Fri, 23 Jun 2023 00:27:30 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Jhn4tmzT84yw7GITKMoEd6jEzbIuMagm4wnKk7HbvOAxOaDkJBya05uEzYW61/P6euemw X-Received: by 2002:a05:6358:7059:b0:132:d3c1:6d20 with SMTP id 25-20020a056358705900b00132d3c16d20mr2955386rwp.6.1687505250653; Fri, 23 Jun 2023 00:27:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687505250; cv=none; d=google.com; s=arc-20160816; b=OkoPrid2G+pq2HwDUpIqbA6tmS8XE9xnh3DArY0dC8sAs1hvJwmpw6iRNqGuy6pDSF RQE/k1Gi05dBDrCb9zZDhjsaj8xfGfTBGES+i6rk4AL14yfCtI0abYLeYAQu1uwC7FfX i7JBl5GQSXq5OlTpXvBFFh//WcVQmAOMyk7585XRrtRjP1BP95z7PVi3lzine+b1Vv4k 6hEbbn3LNM2WdacguOn0sTYWRfDyJbOxQDvMxud9xWkXjbItqRDsXOlRYVEmyOVNnGH6 1a3lLD2WoSySVGWUg/0s6yH+xMiywhqdUt4z2JQydMVsmQonWrAnFXJjk3yRmEaePhUk VEjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=73AceqojPXWStCY0HStziMfBPTlnRPdDZenbiyAd+Oo=; b=XBj4vsiVFpx4UIsgdEZ2ixrwcWwcfyAR5qOeK9QuA1WhSdygZXEYn0JwnC3aGYR/ds Sq1L92AthJq8oWgmu5nT9jssxTaFQ0L/Esli0jh3odknzbEL9tLYml1M4w2TzxPf8rRl 7L1dQw8379AaobySrBsn8dsr3qNThRpAGEPFOWhilP3oODmVpaS320naeprwtvRWf40v H4FX5gp7tTbkfj8EB7j0yAgi1IctQHmKWZB75SuibK+7KkcWwnJvn9uJuVFd/3QS+kxI xA1Rk1oGTaWVKhStfTeDrOrR5oXdwbXwGsBKXYgyJEnZZo+S4qon/eUcZIrBtFbkSZPK EKrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=inaS1mDl; 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=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c189-20020a621cc6000000b0066a44ce266dsi5030735pfc.39.2023.06.23.00.27.18; Fri, 23 Jun 2023 00:27:30 -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=@canonical.com header.s=20210705 header.b=inaS1mDl; 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=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230330AbjFWHQv (ORCPT + 99 others); Fri, 23 Jun 2023 03:16:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229445AbjFWHQs (ORCPT ); Fri, 23 Jun 2023 03:16:48 -0400 Received: from smtp-relay-canonical-0.canonical.com (smtp-relay-canonical-0.canonical.com [185.125.188.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CF04212F; Fri, 23 Jun 2023 00:16:41 -0700 (PDT) Received: from [192.168.192.83] (unknown [50.47.134.245]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-0.canonical.com (Postfix) with ESMTPSA id 1F1703F25E; Fri, 23 Jun 2023 07:16:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1687504600; bh=73AceqojPXWStCY0HStziMfBPTlnRPdDZenbiyAd+Oo=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=inaS1mDldoyLsr0oGvlk+7v19hoXWqAp3uzBB8vV4pgI90utpfUi4WZ85HmTfgxmo bD2vY5t5spga5+lamnMxe6l0zak37VvD+EW5IaY/1B/yebqlPF4NP4zQVpC+Ue/hXo SwNVtM9Ul6HDhA1GxxYvNqjr0E80ELD5z19wfCFAo3yiWLelwa/SosBFn8C+nn1BdI uTVQKg9cfU7uFxMuUUVK3IH0FBvoDCHBiiWFh2eKjz37W9wW3LyY1tPO29q4uzfi42 A8V/Gzt8GZqbsCQMNRxgTOMlZbSGgULiVS7GITh/X4UmXV/2AE9gZrpQ4Dp8UuXLRx HKxlE9OIXRiXA== Message-ID: <1d8d0032-261f-fe35-0c12-23043083e676@canonical.com> Date: Fri, 23 Jun 2023 00:16:35 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [tip: sched/core] sched: Fix performance regression introduced by mm_cid Content-Language: en-US To: Sebastian Andrzej Siewior Cc: Mathieu Desnoyers , Swapnil Sapkal , Peter Zijlstra , linux-kernel@vger.kernel.org, linux-tip-commits@vger.kernel.org, Aaron Lu , x86@kernel.org, Andrew Morton , Thomas Gleixner References: <168214940343.404.10896712987516429042.tip-bot2@tip-bot2> <09e0f469-a3f7-62ef-75a1-e64cec2dcfc5@amd.com> <20230620091139.GZ4253@hirez.programming.kicks-ass.net> <44428f1e-ca2c-466f-952f-d5ad33f12073@amd.com> <3e9eaed6-4708-9e58-c80d-143760d6b23a@efficios.com> <6c693e3b-b941-9acf-6821-179e7a7fe2b8@efficios.com> <20230623063726.ejuc6v9D@linutronix.de> From: John Johansen Organization: Canonical In-Reply-To: <20230623063726.ejuc6v9D@linutronix.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 6/22/23 23:37, Sebastian Andrzej Siewior wrote: > On 2023-06-21 16:59:31 [-0700], John Johansen wrote: >>> Which turned a per-cpu cache into a global memory pool protected by a spinlock. It may benefit RT, but it does not appear to be so great at scaling. >>> >> it is not. And I have a patch that needs some more formal testing for some stats. >> Ubuntu pulled it in last cycle so it has gotten a fair bit of use and is looking good >> on that end. There are probably some tweaks that can be done to improve it. The >> backoff in particular is something that has mostly been adjusted in response to some >> basic benchmarking. >> >> anyways patch below >> >> commit e057e9b47f1749882ea0efb4427d6b9671c761ab > > I think I've been looking at this patch, or a former version of it, and > it looked good. > so, I am not satisfied with the way the scaling works, it feels like it is more complicated than it needs to be. I also wanted to see with the percpu caching if it was worth dropping the global pool and just going to the allocator. With that said the patch does work, and seems to be stable in the broader testing it has gotten. Its more complicated than I would like, and wanted to play with ideas around improving it. I also wanted get some better benchmark data. All things I just haven't had time for I am also not opposed to using some version of this patch now, to solve the immediate needs and working to improve it after the fact.