Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6011525rwd; Mon, 5 Jun 2023 11:34:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6dBo6PEuAnRYmYaWCN5J0HHeHs/cPi6mmyn0AQMu6uYgXD27k/DEmLgt8zP6x9OynaoUgD X-Received: by 2002:a05:6214:1c45:b0:626:1995:8d2d with SMTP id if5-20020a0562141c4500b0062619958d2dmr9271017qvb.47.1685990081880; Mon, 05 Jun 2023 11:34:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685990081; cv=none; d=google.com; s=arc-20160816; b=c+dNHcxcv8ELvPPcjfy6bvvV0Z6ot3lHvBKvjH84q6XnHrEwOyw3UGQ8rGLIr6uXeT DdY2s9v+x/bqnQeMspgTzI6lp5BdwW0tTc8u4MI8GNHbir+E4PbLF+jPi6xmEvyE/W8/ FsZH86sBuU9I2EdtPoULoKIedjkHGPRyMYFe9t6fNcgtWCwZSgjF0/5fsFijR6Voy8uE qSMDdfnM7BIma6Egu83qjmcQwAJTqVDVUR3sLRvt8SarJqEDewb6j4hXt3lYSPtqVmHZ lN9awZ1yGM0s/a83dqJUt+MnKtkVs6I8k87xN+cgbC3S/qLXIUZIqfoP4d3AbSZ5Cu6Q SIbQ== 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=F0XqFQBSCQ12L8mv/otKopJp+8rvCqAHqXXt9iU32Q8=; b=KA2JG4BEPyaZOtsZx6jmcIqBMYs7GCcuP/g/6bll+soQ6hoyiQHFcza8sZWFc3XslX b+WRGawA5dhzXWz4xow+d3z2XOW4gpilAHI6zqB8SgyXOQkckns+aCFu0W9W9ILulEPf aEPF59yk7tVDfwOY1fKxAUTvcYiad/Ba1NfT4LrDOP33MxxJCDf3R6rWxrYRk85Qdx6I 7aH8Uhg+pN2vqHQAKLYjBS7MWK8W60htWqrddLdCVGzOH+bYs3FakLkoH0hSvOjX5EzN XkuWux3JDFsdTTdi+McXaQLV80dWAQqDKql8q2wmUYgliaIXE5ByGqLjnEs+pt1lY8IC 3e9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=DFhKpvOO; 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 iw9-20020a0562140f2900b0061b5be7c8bcsi5205633qvb.226.2023.06.05.11.34.27; Mon, 05 Jun 2023 11:34: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=DFhKpvOO; 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 S235073AbjFES2h (ORCPT + 99 others); Mon, 5 Jun 2023 14:28:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235109AbjFES2f (ORCPT ); Mon, 5 Jun 2023 14:28:35 -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 5FCC7EC for ; Mon, 5 Jun 2023 11:27:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1685989669; 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=F0XqFQBSCQ12L8mv/otKopJp+8rvCqAHqXXt9iU32Q8=; b=DFhKpvOOapCSMNauQX2DeV0UNogWmjUaPRnJzJ0A+e9kdqSbij3QiXzXapcDkZBXQ5GbW2 CqZoCYairNxkYRSfgtqzHgeCOV/FXd7fuDavDhAtpC/W2tjNMi6JOsOEbuFwpWFdGb5lgE hPirvdtb4jN+LPhGEfsg4KmSfklHGAA= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-651-RrofEaTzMMyit1VcQkYoSg-1; Mon, 05 Jun 2023 14:27:48 -0400 X-MC-Unique: RrofEaTzMMyit1VcQkYoSg-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 8C4211C07543; Mon, 5 Jun 2023 18:27:47 +0000 (UTC) Received: from tpad.localdomain (ovpn-112-3.gru2.redhat.com [10.97.112.3]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5740940D1B61; Mon, 5 Jun 2023 18:27:47 +0000 (UTC) Received: by tpad.localdomain (Postfix, from userid 1000) id 11129400E7185; Mon, 5 Jun 2023 14:35:56 -0300 (-03) Date: Mon, 5 Jun 2023 14:35:56 -0300 From: Marcelo Tosatti To: Michal Hocko 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-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, SPF_HELO_NONE,SPF_NONE,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, 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.