Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp121095rwr; Wed, 19 Apr 2023 04:25:42 -0700 (PDT) X-Google-Smtp-Source: AKy350aNwLD2KhY07NwVJH683/nZi6IjPNtX8uJMBCCcmaRijEXQzBBWHiDCyB9/6xy19u9IxlJH X-Received: by 2002:a17:90b:4c52:b0:246:fdad:28ca with SMTP id np18-20020a17090b4c5200b00246fdad28camr2282933pjb.38.1681903541733; Wed, 19 Apr 2023 04:25:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681903541; cv=none; d=google.com; s=arc-20160816; b=BsZwpQ5oBVEPzgk+31WIrsfeCCA9B4njEQSI0GDiHk8O9x3bHLjYaVHjdkBjXcfgRt UI3ocb5R/LAmYsxrgnm5w+H5+2wd/9ihjz2hgojkZfCforJ5MBv02Yuc4VrG6avQtRoe Sxrr8FF55JwH0KN6QRNfOiZPOMi1zGhfpC7W1fIYmAsxdBcxd6D6r6S5T1VC/Nnqigzm fgBL0yeCSjMw9d8XKfPbudWmZmmHwcXvnDfO7tXgUxoFU6xrtIEUo3TGZGWT4eLxuuHJ RNk45xAy0+dcYj54+HMmBaa1AoI61xCc8vInFq6NZkXPzD7LUdj40sXnzLnBEtYnFb3o SFzA== 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=W4Ui46Ta0P2TP7Rwzqo3VE9KCOz5jOSMpJOW/7SNy88=; b=IjAN2MGnblWQzQpvtamapSxKmsDzqrhmw11LBo9D0Dt2uu03yU7pmrP/+JU9c+rJ9B U5CJMobd2y3ExFKWKtO8oTgSkyhNSGGOvPYMGhX0QBJXxC+1Jn1ze3u/TpLbVxhmqDLQ NYBRoG/dcjzEiuBAVF6xYpAKJd0e3ZDeobomH/b2N1/ZfZ0e7VMlgMM+viFZ+4rgpNr+ S/OyBXz/kFREMRahE+lYxEOz7lFgEtbOFLNK7PZeSEH7q2CZFdlDX+laFjFQr46chuR8 WusmcEhkzprodfIjzZeFmVNsFcDDZv7VcLWmA3xytrHiK6hxYPDEWofUJYjOkzCugtCv I0OA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=i2t8YS6+; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ch15-20020a17090af40f00b00247b1a05438si1604351pjb.16.2023.04.19.04.25.29; Wed, 19 Apr 2023 04:25:41 -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=@redhat.com header.s=mimecast20190719 header.b=i2t8YS6+; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232821AbjDSLUk (ORCPT + 99 others); Wed, 19 Apr 2023 07:20:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232296AbjDSLUe (ORCPT ); Wed, 19 Apr 2023 07:20:34 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C16415445 for ; Wed, 19 Apr 2023 04:19:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1681903132; 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=W4Ui46Ta0P2TP7Rwzqo3VE9KCOz5jOSMpJOW/7SNy88=; b=i2t8YS6+0TK0+y7y7kqLlmO37JvPTI5x/QLEUEVMXYTJ8LEEVBJPTZ6irOyfki1BBahmIo tsYPyxLD/UsP06in4x9cEk2fbWwYJd37xceNhi/F8hCXosi/DcBSl5keYBh+wUIpr9AEWm PpkbmXmu8kt16qgfceYXIiu88NgeM/Q= 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-595-FiNbAEzrNVuVLWm7VGa_LA-1; Wed, 19 Apr 2023 07:18:49 -0400 X-MC-Unique: FiNbAEzrNVuVLWm7VGa_LA-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 981FD811E7D; Wed, 19 Apr 2023 11:18:48 +0000 (UTC) Received: from tpad.localdomain (ovpn-112-2.gru2.redhat.com [10.97.112.2]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 61EC340BC799; Wed, 19 Apr 2023 11:18:48 +0000 (UTC) Received: by tpad.localdomain (Postfix, from userid 1000) id 04C00401CA8CB; Wed, 19 Apr 2023 08:15:56 -0300 (-03) Date: Wed, 19 Apr 2023 08:15:56 -0300 From: Marcelo Tosatti To: Andrew Morton , Andrew Theurer Cc: Christoph Lameter , Aaron Tomlin , Frederic Weisbecker , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Russell King , Huacai Chen , Heiko Carstens , x86@kernel.org, Vlastimil Babka , Michal Hocko Subject: Re: [PATCH v7 00/13] fold per-CPU vmstats remotely Message-ID: References: <20230320180332.102837832@redhat.com> <20230418150200.027528c155853fea8e4f58b2@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,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 Wed, Apr 19, 2023 at 08:14:09AM -0300, Marcelo Tosatti wrote: > On Tue, Apr 18, 2023 at 03:02:00PM -0700, Andrew Morton wrote: > > On Mon, 20 Mar 2023 15:03:32 -0300 Marcelo Tosatti wrote: > > > > > This patch series addresses the following two problems: > > > > > > 1. A customer provided evidence indicating that a process > > > was stalled in direct reclaim: > > > > > > ... > > > > > > 2. With a task that busy loops on a given CPU, > > > the kworker interruption to execute vmstat_update > > > is undesired and may exceed latency thresholds > > > for certain applications. > > > > > > > I don't think I'll be sending this upstream in the next merge window. > > Because it isn't clear that the added complexity in vmstat handling is > > justified. > > From my POV this is an incorrect statement (that the complexity in > vmstat handling is not justified). > > Andrew, this is the 3rd attempt to fix this problem: > > First try: https://lore.kernel.org/lkml/20220127173037.318440631@fedora.localdomain/ > > Second try: https://patchew.org/linux/20230105125218.031928326@redhat.com/ > > Third try: syncing vmstats remotely from vmstat_shepherd (this > patchset). > > And also, can you please explain: what is so complicated about the > vmstat handling? cmpxchg has been around and is used all over the > kernel, and nobody considers "excessively complicated". > > > - Michal's request for more clarity on the end-user requirements > > seems reasonable. > > And i explained to Michal in great detail where the end-user > requirements come from. For virtualized workloads, there are two > types of use-cases: > > 1) For example, for the MAC scheduler processing must occur every 1ms, > and a certain amount of computation takes place (and must finish before > the next 1ms timeframe). A > 50us latency spike as observed by cyclictest > is considered a "failure". > > I showed him a 7us trace caused by, and explained that will extend to > > 50us in the case of virtualized vCPU. > > 2) PLCs. These workloads will also suffer > 50us latency spikes > which is undesirable. > > Can you please explain what additional clarity is required? > > RH's performance team, for example, has been performing packet > latency tests and waiting for this issue to be fixed for about 2 > years now. > > Andrew Theurer, can you please explain what problem is the vmstat_work > interruption causing in your testing? +CC Andrew.