Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp7245597rwl; Thu, 23 Mar 2023 01:13:40 -0700 (PDT) X-Google-Smtp-Source: AK7set/wsZV8nTiyqmlHf18o2/FrfxmAxXktGM4UtB2+h97yPzhPE/np2Ub8QYGmsl3244lR5qD/ X-Received: by 2002:a17:906:851a:b0:930:e2c:ddc3 with SMTP id i26-20020a170906851a00b009300e2cddc3mr10194625ejx.72.1679559220549; Thu, 23 Mar 2023 01:13:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679559220; cv=none; d=google.com; s=arc-20160816; b=rRWvLNyspPsW1BKH15LmBdsD5w+stmziwYm2Yv9MSRLUhu0Y4psKi2lie2ojQ6IZyY x4Q5qMYOlHeEGWj8ttfS0PQaJAglvm9zfUie7b0u0gF9pussrzU0Z/biEwIaBlj6R6y4 /YhlE4iSNtVwoshpwJq2MsMTCdHVxiw+fW3kKvrtwq61OQbwGYYyub3nqMZUzaWSm8M9 FnDSSPWe0n7TKDwzSJo+ECsENTj57AnA11j/TpA4i1V2NDOg46NiPIsvgAd1WnavxtYm /y7x7thFAQrJB3NDXDtXRnIl/xPn+IfRJ74/Drmt4e74VBEYmtrDiDaMrduu0+lSkWJw 9+7Q== 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=xFRffw+9SvcdtX5CuPeFnJlovLn9+suOg3bbTvNjZ/k=; b=io1Xqt4g1DTtwmiJ6nA8c+QBP/9K2kUzsRBnliur1ngqv1jopd86x//4KK/CR7v7qe C/5vHPrm4ijJTmGooVaFSfVPVw5vE+S+BFxmr/C62zkoeMDLfQEKAMMmh+paLNZNzE7N nIgJGX04a9BvDj3XEQUE/T9Olqu5VI+6E1ngJZZLNVvm0q4kKQZF7LI0VkrJ8v2B9R4T 7hoB608KIPl+3zqQn61cVoGh0j7zMgiuj+dx+O63kqk7pJhplwLvFgNgB0X7GZ++oTBe V5O2HNT08QipyBNpWTPR5/9oXDiBboN1AqapseQZIhQOQNPKWRcFpu3uJYATlUjSAdWm 0ziQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=PMZwY6SC; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k19-20020a170906159300b008b90d160acbsi16902011ejd.579.2023.03.23.01.13.16; Thu, 23 Mar 2023 01:13:40 -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=@suse.com header.s=susede1 header.b=PMZwY6SC; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231313AbjCWHvV (ORCPT + 99 others); Thu, 23 Mar 2023 03:51:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231311AbjCWHvS (ORCPT ); Thu, 23 Mar 2023 03:51:18 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9D4620A10 for ; Thu, 23 Mar 2023 00:51:16 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 3CB2D339C9; Thu, 23 Mar 2023 07:51:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1679557875; h=from:from:reply-to: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=xFRffw+9SvcdtX5CuPeFnJlovLn9+suOg3bbTvNjZ/k=; b=PMZwY6SCQEocvy4dhNouktfWgxmXrsBQGWar+MXVsF+3wdLQAWq/f+cnwsZf1abMaQf6vT 3xAia7Kt3CgmVfx1BMnUnZK4qFTdr5YJNfvZZbTpKEfWM7OkQZUXg7h+gGU3M9lsaWcXEt 9jNm2ZL1edCXAkBy6P9EEMaVRZu4il0= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 199FB132C2; Thu, 23 Mar 2023 07:51:15 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id iqDPA/MEHGRvDgAAMHmgww (envelope-from ); Thu, 23 Mar 2023 07:51:15 +0000 Date: Thu, 23 Mar 2023 08:51:14 +0100 From: Michal Hocko To: Marcelo Tosatti Cc: Christoph Lameter , Aaron Tomlin , Frederic Weisbecker , Andrew Morton , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Russell King , Huacai Chen , Heiko Carstens , x86@kernel.org, Vlastimil Babka Subject: Re: [PATCH v7 00/13] fold per-CPU vmstats remotely Message-ID: References: <20230320180332.102837832@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 22-03-23 11:20:55, Marcelo Tosatti wrote: > On Wed, Mar 22, 2023 at 02:35:20PM +0100, Michal Hocko wrote: [...] > > > "Performance details for the kworker interruption: > > > > > > oslat 1094.456862: sys_mlock(start: 7f7ed0000b60, len: 1000) > > > oslat 1094.456971: workqueue_queue_work: ... function=vmstat_update ... > > > oslat 1094.456974: sched_switch: prev_comm=oslat ... ==> next_comm=kworker/5:1 ... > > > kworker 1094.456978: sched_switch: prev_comm=kworker/5:1 ==> next_comm=oslat ... > > > > > > The example above shows an additional 7us for the > > > > > > oslat -> kworker -> oslat > > > > > > switches. In the case of a virtualized CPU, and the vmstat_update > > > interruption in the host (of a qemu-kvm vcpu), the latency penalty > > > observed in the guest is higher than 50us, violating the acceptable > > > latency threshold for certain applications." > > > > Yes, I have seen that but it doesn't really give a wider context to > > understand why those numbers matter. > > OK. > > "In the case of RAN, a MAC scheduler with TTI=1ms, this causes >100us > interruption observed in a guest (which is above the safety > threshold for this application)." > > Is that OK? This might be a sufficient information for somebody familiar with the matter (not me). So no, not enough. We need to hear a more complete story. -- Michal Hocko SUSE Labs