Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6038891rwd; Mon, 5 Jun 2023 12:02:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4WPfVHa3xX6/hfd3/vUF/+pSpkOOHSkpzPXJaGlWRLxEe37RmHuErGUcZmmBNoCbVhnx6Y X-Received: by 2002:a05:622a:1882:b0:3f7:ff3a:f878 with SMTP id v2-20020a05622a188200b003f7ff3af878mr8201697qtc.52.1685991770132; Mon, 05 Jun 2023 12:02:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685991770; cv=none; d=google.com; s=arc-20160816; b=LL/PkMtkrmPkKDjKet8gKvvnVOuctRGDZmQg7PzkuynGpGrYr/eUamvNELl+3sDmA8 gAS5YBH7YgYMWk0MsECUFwr9BZXvxyyN5QJwJT7HW3xpiW+Wklcdah9rMubUYrRvs0Pc uqbdgJweextAqYVAFue71Q4JDaLpYGJDFlOBWVi8H23PZWlb6c+eEWV+l20x48544spH HPzkewr1QmYMi2pahTbydiF54O46PqtT4zYKOBUznnrWdcbYttE2WI4X5CnBvl7X4JBo 3EBCK9d6lM5jq5wJTfyoHh9r2lMtztPC57G8xRnGv6aqKcTBjsSVkTkXpwRNW68x5CME CmEw== 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=5lAK74wKICjZKq6Z1wMe75zwa0jIR4popokcZA9WPsQ=; b=oaVKuVOstKsF0emddKhvefNtGMgy2eSaGUugH9T1vUKbopb2V3WbTOK99aJyywRHxt B3uqcUnnFaiQ26eUeIKDanJ8o/HsACtekfOoo5wPnsDSnJnRwCF2srBrHCd/n7FDstJR qFNjOwtEf7I7JHJamzeSTaAGkkE7OB6fzgQtTbtDc+5+Mn22ug5D7b9iqLEsEXa5FBoC i4S7ZYraMh8pakKKCR3swF0l+90TRVXjG/dyliezQ/NqM1/8/bXui+2/HGnu2Tukw6OU d+0uTnQm+GZ/DaJsbaSmDlguXnNNSasuuvSL+VGJxh+xfG2cLJv9JAJLGeqgYwHCfvWs 9pxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=IXge6bvJ; 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 c12-20020a05622a024c00b003f6bc90e461si4971209qtx.232.2023.06.05.12.02.29; Mon, 05 Jun 2023 12:02:50 -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=IXge6bvJ; 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 S232029AbjFES5a (ORCPT + 99 others); Mon, 5 Jun 2023 14:57:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232362AbjFES5S (ORCPT ); Mon, 5 Jun 2023 14:57:18 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93491EA for ; Mon, 5 Jun 2023 11:57:17 -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-out2.suse.de (Postfix) with ESMTPS id 4E1241F461; Mon, 5 Jun 2023 18:57:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1685991436; 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=5lAK74wKICjZKq6Z1wMe75zwa0jIR4popokcZA9WPsQ=; b=IXge6bvJ5/bto22JVellUOlgLvXI6vAEu+lJslBeEQmtUfXdSQJZfwG/4BgeW5mzBeYj3f HDmpysr4G1EjVaJlukImmfjA2S8khlcgUoymLwHdVcZcb7hSNO4Qzn0au2fn2GLgn5aexu 4ICWGBLzcNG++SrurBBlOOatMrmSVz0= 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 33FE9139C8; Mon, 5 Jun 2023 18:57:16 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id Q4iDCgwwfmQCXQAAMHmgww (envelope-from ); Mon, 05 Jun 2023 18:57:16 +0000 Date: Mon, 5 Jun 2023 20:57:15 +0200 From: Michal Hocko To: Marcelo Tosatti Cc: Christoph Lameter , Aaron Tomlin , Frederic Weisbecker , Andrew Morton , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Vlastimil Babka Subject: Re: [PATCH v2 2/3] vmstat: skip periodic vmstat update for nohz full CPUs Message-ID: References: <20230602185757.110910188@redhat.com> <20230602190115.521067386@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Mon 05-06-23 14:35:56, Marcelo Tosatti wrote: > On Mon, Jun 05, 2023 at 05:55:49PM +0200, Michal Hocko wrote: > > > 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. > > > > > > The isolated vCPU can perform operations that modify per-CPU page counters, > > > for example to complete I/O operations: > > > > > > CPU 11/KVM-9540 [001] dNh1. 2314.248584: mod_zone_page_state <-__folio_end_writeback > > > CPU 11/KVM-9540 [001] dNh1. 2314.248585: > > > => 0xffffffffc042b083 > > > => mod_zone_page_state > > > => __folio_end_writeback > > > => folio_end_writeback > > > => iomap_finish_ioend > > > => blk_mq_end_request_batch > > > => nvme_irq > > > => __handle_irq_event_percpu > > > => handle_irq_event > > > => handle_edge_irq > > > => __common_interrupt > > > => common_interrupt > > > => asm_common_interrupt > > > => vmx_do_interrupt_nmi_irqoff > > > => vmx_handle_exit_irqoff > > > => vcpu_enter_guest > > > => vcpu_run > > > => kvm_arch_vcpu_ioctl_run > > > => kvm_vcpu_ioctl > > > => __x64_sys_ioctl > > > => do_syscall_64 > > > => entry_SYSCALL_64_after_hwframe > > > > OK, this is really useful. It is just not really clear whether the IO > > triggered here is from the guest or it a host activity. > > Guest initiated I/O, since the host CPU is isolated. Make it explicit in the changelog. I am just wondering how you can achieve your strict deadlines when IO is involved but that is another story I guess. -- Michal Hocko SUSE Labs