From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 21E7E10E0 for ; Wed, 25 May 2022 15:38:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1653493082; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=VRInkexwmTuHc361ogc4GS6wqKsIpJYzH/kvwhGn+HE=; b=UyjDq2Z0DGDKUPun1fGa9xulO64dz0jsQQ1Fn0dh/iC7ZM3rUKQuGaCsMC39ijmgnFXmsg E/Zy6BIbqOMTHWRT65gvd0D/AcnOyMwdgHiUjAI+D9YG5awlYNJF52kKq0rLSagHEZh70y SxedOcH4nfrqR4T+zdQSl1CpV9+g+KU= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-642-8ncsaPV6M6upaOrK2Mv4sg-1; Wed, 25 May 2022 11:37:59 -0400 X-MC-Unique: 8ncsaPV6M6upaOrK2Mv4sg-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 9544619705BA; Wed, 25 May 2022 15:37:58 +0000 (UTC) Received: from fuller.cnet (ovpn-112-2.gru2.redhat.com [10.97.112.2]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0541A400F38; Wed, 25 May 2022 15:37:58 +0000 (UTC) Received: by fuller.cnet (Postfix, from userid 1000) id 529E5416F574; Wed, 25 May 2022 12:37:37 -0300 (-03) Date: Wed, 25 May 2022 12:37:37 -0300 From: Marcelo Tosatti To: Stefan Wahren Cc: Sebastian Andrzej Siewior , Andrew Morton , Nicolas Saenz Julienne , Borislav Petkov , Minchan Kim , Matthew Wilcox , Mel Gorman , Juri Lelli , Thomas Gleixner , "Paul E. McKenney" , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Linux ARM , Phil Elwell , regressions@lists.linux.dev Subject: Re: vchiq: Performance regression since 5.18-rc1 Message-ID: References: <77d6d498-7dd9-03eb-60f2-d7e682bb1b20@i2se.com> Precedence: bulk X-Mailing-List: regressions@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 2.85 on 10.11.54.10 On Wed, May 25, 2022 at 04:07:47PM +0200, Stefan Wahren wrote: > Hi Marcelo, > > Am 25.05.22 um 15:56 schrieb Marcelo Tosatti: > > On Mon, May 23, 2022 at 09:09:07AM +0200, Sebastian Andrzej Siewior wrote: > > > On 2022-05-22 01:22:00 [+0200], Stefan Wahren wrote: > > > > Hi, > > > Hi, > > > > > > > while testing the staging/vc04_services/interface/vchiq_arm driver with my > > > > Raspberry Pi 3 B+ (multi_v7_defconfig) i noticed a huge performance > > > > regression since [ff042f4a9b050895a42cae893cc01fa2ca81b95c] mm: > > > > lru_cache_disable: replace work queue synchronization with synchronize_rcu > > > > > > > > Usually i run "vchiq_test -f 1" to see the driver is still working [1]. > > > What about > > > https://lore.kernel.org/all/YmrWK%2FKoU1zrAxPI@fuller.cnet/ > > > > > > Sebastian > > Stefan, > > > > Can you please try the patch above ? > > this was the same as Paul send. I think i need more time for investigation, > maybe there is an issue with the application. To clarify: they are not the same patches. > > All i noticed so far is that in good case the CPU usage is around ~ 60 % and > higher, while in bad case the CPU is almost idle. Also the issue is not > reproducible with arm64/defconfig. > > > > > > > > > _______________________________________________ > > linux-arm-kernel mailing list > > linux-arm-kernel@lists.infradead.org > > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel > > From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D83D4C433EF for ; Wed, 25 May 2022 15:39:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=BP/vS7mOE8JklW0jv0VgSTEUx+geyy8W+v0IWQDGCbE=; b=KIj21/yz5JX3HT HCMQb8OTuen6mN6LwowMmeC8HP9CkZz04S6WJ4x//n0j2aABkJjm9NoiC0b/uf6H+wfzJPblueq2L bx440Mf8wdmVh8uRt8FX3HDApvqKvELnraXtD8/j6kXkeGwNWsi4aTkWhS0HCMwQLJ5FGilzX6a8I 9pEbyEAWttlUNGBUKSIWx8vGrZy0KeLgtZnRk0paSUaoacasdLT9Jxo4ywZ09vjQVdPn4c+0v4vfP U1Wn8OPF3i/yj4SSK/QgBW1oWRasHlaGf4eGNXxa5QtgyN3qgWDx5F0swUpcrG8X38rizkAkf104N UcPxgs36khwbpKC/a9pw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ntt5O-00Bblx-2S; Wed, 25 May 2022 15:38:10 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ntt5K-00BbkW-Fu for linux-arm-kernel@lists.infradead.org; Wed, 25 May 2022 15:38:07 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1653493085; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=VRInkexwmTuHc361ogc4GS6wqKsIpJYzH/kvwhGn+HE=; b=ECYPVosDDEvMPwGoJL9IwKVv0AbT1DZKxBl7mCf3Q35v17+9k1SLHpp1VuKydAIFo9RYyR Cbr1xA2HJar/5D1SALNa1HNc8tyAYiVexdjnOfSbMT+P2M6qR3hdfeaMZR3t2Wk+P2BLQq 9zRdZ69Q2nepFEGLAU3aCszLasFWcG8= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-642-8ncsaPV6M6upaOrK2Mv4sg-1; Wed, 25 May 2022 11:37:59 -0400 X-MC-Unique: 8ncsaPV6M6upaOrK2Mv4sg-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 9544619705BA; Wed, 25 May 2022 15:37:58 +0000 (UTC) Received: from fuller.cnet (ovpn-112-2.gru2.redhat.com [10.97.112.2]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0541A400F38; Wed, 25 May 2022 15:37:58 +0000 (UTC) Received: by fuller.cnet (Postfix, from userid 1000) id 529E5416F574; Wed, 25 May 2022 12:37:37 -0300 (-03) Date: Wed, 25 May 2022 12:37:37 -0300 From: Marcelo Tosatti To: Stefan Wahren Cc: Sebastian Andrzej Siewior , Andrew Morton , Nicolas Saenz Julienne , Borislav Petkov , Minchan Kim , Matthew Wilcox , Mel Gorman , Juri Lelli , Thomas Gleixner , "Paul E. McKenney" , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Linux ARM , Phil Elwell , regressions@lists.linux.dev Subject: Re: vchiq: Performance regression since 5.18-rc1 Message-ID: References: <77d6d498-7dd9-03eb-60f2-d7e682bb1b20@i2se.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 2.85 on 10.11.54.10 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220525_083806_630936_9FE24567 X-CRM114-Status: GOOD ( 25.00 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, May 25, 2022 at 04:07:47PM +0200, Stefan Wahren wrote: > Hi Marcelo, > > Am 25.05.22 um 15:56 schrieb Marcelo Tosatti: > > On Mon, May 23, 2022 at 09:09:07AM +0200, Sebastian Andrzej Siewior wrote: > > > On 2022-05-22 01:22:00 [+0200], Stefan Wahren wrote: > > > > Hi, > > > Hi, > > > > > > > while testing the staging/vc04_services/interface/vchiq_arm driver with my > > > > Raspberry Pi 3 B+ (multi_v7_defconfig) i noticed a huge performance > > > > regression since [ff042f4a9b050895a42cae893cc01fa2ca81b95c] mm: > > > > lru_cache_disable: replace work queue synchronization with synchronize_rcu > > > > > > > > Usually i run "vchiq_test -f 1" to see the driver is still working [1]. > > > What about > > > https://lore.kernel.org/all/YmrWK%2FKoU1zrAxPI@fuller.cnet/ > > > > > > Sebastian > > Stefan, > > > > Can you please try the patch above ? > > this was the same as Paul send. I think i need more time for investigation, > maybe there is an issue with the application. To clarify: they are not the same patches. > > All i noticed so far is that in good case the CPU usage is around ~ 60 % and > higher, while in bad case the CPU is almost idle. Also the issue is not > reproducible with arm64/defconfig. > > > > > > > > > _______________________________________________ > > linux-arm-kernel mailing list > > linux-arm-kernel@lists.infradead.org > > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel > > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel