Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2123512rwb; Wed, 5 Oct 2022 09:18:38 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7kqy5DSalSkAU6SWRzVGhDvDtinAJzRs/QAZh3usc6UkbnY3JtNJwwuCM1od+FkTPM0GUZ X-Received: by 2002:a17:902:6acb:b0:17d:c267:2ad9 with SMTP id i11-20020a1709026acb00b0017dc2672ad9mr340472plt.10.1664986718633; Wed, 05 Oct 2022 09:18:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664986718; cv=none; d=google.com; s=arc-20160816; b=h4GpvqvG9XAq7dTQvev0jgqmPYJcuk/3yiEhkyPQVrXhiKrf4VVSvMD0gpLOYBUw+J kG7x/GgypGWyz3ZOLminrvGvtKIbeWOUarQN3zkpZAvWAx2M1dwyVPamChniBMQ/56kn EtmK2YM1lBX44FdcdMcPVPrE/7mqw62F0GKCw9khMJKBvPfdJfNskNKtibhYrC4U1i6/ oR1AIY4teFRLVtqYkjXOZJvexiFDuTGIh8TxWbtsy4tnNyHmwTVN/hNY/FWpbtsEhchf gPmEKt22GXksV8bOgYuYgb10NHINYiBAAGSSI0YA7YfGH3AlKwKfUhOfQAoA0GQkX4iF 7Tgw== 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; bh=R+ASHLYw/AJIqlcnHT5/+G9FNaZHC8WVlpHIQ66wMlI=; b=x73y8Q+xKGqt5sG73IVFxM9tYnuP9N2V99X+O8KIJIVXZZ+X5RqaL6HXgWfGSXH02d qOY76RGHNQh1QYBHN5aiKNbrDrR95bys4IthbkB9waBOOQgr0LHmQL7IAfcA0/zPQA2t VNL/HHxdgaDFOqBHUoJPHXm0BNuDGM82ziLoTn8Xk/Xd0xhepVZqhhRRztfHmIN9BLwO W3JGK1XeXFwVn9FxYg6I9kyZX327ACfOqYVnoW490TmAW7zqDiXfVSNeHHQueiI4w8ov /mJxnQWo6eBTdWOA0+NyUacBjSeUS6eUs229l+2ILjFfsd/8EdF/eM3TYU9pTegttL5K +QSw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x9-20020a17090a970900b001fafaf2e8fesi2174255pjo.104.2022.10.05.09.18.27; Wed, 05 Oct 2022 09:18:38 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229985AbiJEPq5 (ORCPT + 99 others); Wed, 5 Oct 2022 11:46:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229588AbiJEPqx (ORCPT ); Wed, 5 Oct 2022 11:46:53 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1B58878BE3 for ; Wed, 5 Oct 2022 08:46:52 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9D066113E; Wed, 5 Oct 2022 08:46:58 -0700 (PDT) Received: from wubuntu (unknown [10.57.32.122]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 752CD3F67D; Wed, 5 Oct 2022 08:46:49 -0700 (PDT) Date: Wed, 5 Oct 2022 16:46:47 +0100 From: Qais Yousef To: David Laight Cc: 'John Stultz' , LKML , Connor O'Brien , John Dias , Rick Yiu , John Kacur , Chris Redpath , Abhijeet Dharmapurikar , Peter Zijlstra , Ingo Molnar , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Thomas Gleixner , "kernel-team@android.com" , "J . Avila" Subject: Re: [RFC PATCH v3 2/3] sched: Avoid placing RT threads on cores handling long softirqs Message-ID: <20221005154647.vok6unu3vnzxp74d@wubuntu> References: <20220921012550.3288570-1-jstultz@google.com> <20220921012550.3288570-3-jstultz@google.com> <20220928125517.ei64pxfucaem55cr@wubuntu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, 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 10/04/22 09:50, David Laight wrote: [...] > > That's fair. Digging through the patch history in the Android trees, > > the first pass was for all softirqs but then restricted to remove > > known short-running ones. > > From the bug history and what I can directly reproduce, the net and > > block softirqs have definitely caused trouble, but I don't see a > > specific example from TASKLET, so I'm ok dropping that for now, and > > should we get specific evidence we can argue for it in a future patch. > > > > So I'll drop TASKLET from the list here. Thanks for the suggestion! > > I've also seen the code that finally frees memory freed under rcu > take a long time. > That was a workload sending a lot of UDP/RTP from a raw socket using > IP_HDRINC - each send allocated a structure (fib?) that was freed from > the rcu (timer?) softint callback. I'm assuming this is a network driver that using RCU callback to free some memory? > > But, actually, one of the biggest causes of RT wakeup latency > was a normal thread looping without a cond_resched() call. > In my case some graphics driver doing page flushes of the > display memory. Were these drivers that cause these problem in-tree or out-of-tree? Thanks -- Qais Yousef