Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4026284rwr; Sat, 22 Apr 2023 18:35:08 -0700 (PDT) X-Google-Smtp-Source: AKy350av8QH0OxsEoUETwMgdwR851gNPd7flrE/N12BXI0qpHqwD3XRWXou6Zz52ynpvgovKJ6h8 X-Received: by 2002:a17:902:f54b:b0:1a3:e67a:4bd6 with SMTP id h11-20020a170902f54b00b001a3e67a4bd6mr11775169plf.5.1682213708153; Sat, 22 Apr 2023 18:35:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682213708; cv=none; d=google.com; s=arc-20160816; b=y2DnTqbH5abcYUbxqsH8ECQIWHVDDAANcsTgqFrb1XWG9IEk24jd3nQ6AV87b4I1Bl TNeHiIad9Qh43TODesWvNWfC/GN0T8cUS8x7IZ8ct3/D7OwJXdFkh3GKyoCkNE3TdSs+ nTusOeSHuV5MPsHCaCymBPK+GrXt6RmiPoLBFtppEvS3UY1DHnyCABLfJrc+DlmDoMfN 1s9GMpDDmhxPAUEMQ4VAVRbb4lBzNNTcW6BlON1sDO5aTOsY+tpwxpaFhTIf1Smrbr23 AweOLs+lH2uymTfTciP9KlfsY2MGDLc2NSPKKJcszbprLGmq3eyzpEprpiHbEdlQTKNH VzPA== 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=09Pqr7rDFYYz3FncrOkQc8pLBhiqcgYn36BtmrtOB5A=; b=OSdHVlDDJ+VBIDKAJFhlp4V68gVquHH4nMTTs4WLMFp71qcRKCMC/vRohd7EfnEhFv MVmOd49yng7yc5+8hjb8eF+QACxSGJo+4MoxKzrj9XsgbaaEb6qXF85tHZ4nklwBG8+o KzZ0FU3z4FL0qXhpbFYZsuLmH4By8pU391HkLA55R0IEbs44EvYr1WJvhwxNCOpDU5c7 KfN+de9EzsiZvDTpc2vmLNqMrux44o+q80HighKU53RhKDaQaUnQggUwA80aFJHhXpRP GTlciMHN+WnjfW6PAEaQNWcesvekELYziYjfd5ZlCbe0DwWh+TRO/m1Kq6aUwtCu2/Yi VbFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=RhLuodqJ; 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 w2-20020a1709026f0200b001a95c7e5ad9si2638145plk.352.2023.04.22.18.34.56; Sat, 22 Apr 2023 18:35:08 -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=RhLuodqJ; 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 S230009AbjDWBek (ORCPT + 99 others); Sat, 22 Apr 2023 21:34:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229556AbjDWBei (ORCPT ); Sat, 22 Apr 2023 21:34:38 -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 3862F1FE3 for ; Sat, 22 Apr 2023 18:33:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1682213634; 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=09Pqr7rDFYYz3FncrOkQc8pLBhiqcgYn36BtmrtOB5A=; b=RhLuodqJxNfaTAe+b8kflTIseP/rftgKnoDIcwis7LXCnBQ6Q0IL7hy6lzGz10ocnqbesl Q48FEUdijBaHkbOTKkqmmoqTscmaPbNUgma2ktEVYgTRY0oBDN7/+Tna+wivFuSumS8wUR Hh/21aNrCwhvDH6h3jiQPtFAzrJArtw= 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-127-2Xeptx0oPzu-RVqHESuNgw-1; Sat, 22 Apr 2023 21:33:50 -0400 X-MC-Unique: 2Xeptx0oPzu-RVqHESuNgw-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id BDCFF85A5B1; Sun, 23 Apr 2023 01:33:49 +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 7FB9F4400C; Sun, 23 Apr 2023 01:33:49 +0000 (UTC) Received: by tpad.localdomain (Postfix, from userid 1000) id CCFF2400DC5BC; Sat, 22 Apr 2023 22:25:01 -0300 (-03) Date: Sat, 22 Apr 2023 22:25:01 -0300 From: Marcelo Tosatti To: Michal Hocko Cc: Andrew Theurer , Andrew Morton , 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 Subject: Re: [PATCH v7 00/13] fold per-CPU vmstats remotely Message-ID: References: <20230320180332.102837832@redhat.com> <20230418150200.027528c155853fea8e4f58b2@linux-foundation.org> <98E08059-6607-43FF-84E3-BFF3FF193D09@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.5 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 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 Thu, Apr 20, 2023 at 09:55:40AM +0200, Michal Hocko wrote: > On Wed 19-04-23 08:44:23, Andrew Theurer wrote: > > > On Apr 19, 2023, at 6:15 AM, Marcelo Tosatti wrote: > > >> Andrew Theurer, can you please explain what problem is the vmstat_work > > >> interruption causing in your testing? > > > > > > +CC Andrew. > > > > Nearly every telco we work with for 5G RAN is demanding <20 usec CPU > > latency as measured by cyclictest & oslat. We cannot achieve under 20 > > usec with the vmstats interruption. > > Are you able to get those latency requirements with PREEMPT_RT? What do you mean, exactly? PREEMPT_RT allows for the preemption of tasks in kernel context (so that higher priority tasks can interrupt lower priority tasks). It also enables IRQ handling to happen in thread context (so that a given thread might be given higher priority than executing a particular IRQ handler). If the question is: "Are you able to achieve <20 usec latency while allowing switching between different tasks ?" The answer with current processor and memory speeds is probably: no. But with more performant processors, you might. However, with a fully isolated processor which does not require switching between tasks, yes you can achieve < 20 usec latency.