From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5082DC77B76 for ; Sun, 23 Apr 2023 01:33:58 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B56FB6B007B; Sat, 22 Apr 2023 21:33:57 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B071D6B007D; Sat, 22 Apr 2023 21:33:57 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9CE286B007E; Sat, 22 Apr 2023 21:33:57 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 8D81F6B007B for ; Sat, 22 Apr 2023 21:33:57 -0400 (EDT) Received: from smtpin27.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 5AA201601C6 for ; Sun, 23 Apr 2023 01:33:57 +0000 (UTC) X-FDA: 80710934514.27.06EA449 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf10.hostedemail.com (Postfix) with ESMTP id D09B2C000F for ; Sun, 23 Apr 2023 01:33:54 +0000 (UTC) Authentication-Results: imf10.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=RhLuodqJ; spf=pass (imf10.hostedemail.com: domain of mtosatti@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=mtosatti@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1682213635; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=09Pqr7rDFYYz3FncrOkQc8pLBhiqcgYn36BtmrtOB5A=; b=IX8+bcVs990TGQv5FJW5qGvWJwf5qW6b0mH43keozgy69Ih6frQv7otgxLgbTdFysUxZsG yYjetWLoKmXZyCesrj9sswFB97sCkj5FxB2bUONpdDEYr1t4p7ToiQUuX/iIbGfeOO5YU9 QRFKPuhGy/k4CYGzAxGTvsNy5QCnI18= ARC-Authentication-Results: i=1; imf10.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=RhLuodqJ; spf=pass (imf10.hostedemail.com: domain of mtosatti@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=mtosatti@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1682213635; a=rsa-sha256; cv=none; b=us8LD2YupBKOhgpekS9EMHM84oVDg0bhdkLkrAcKnIu6D7kJIEv3tZgf7PO+x/k/vJXSrW 7HZouPKXUyIy2LhECRxYjbXQ8Sops4DDyoJvkW48+H7F3OqsuIoeJRe+WMEO8vTJFw+jgN dopxPFBYnQWimxr4vfDrjUkpXW8XbAU= 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-Stat-Signature: ktubutu34s91s5ubcpeogypocri9nzdw X-Rspam-User: X-Rspamd-Queue-Id: D09B2C000F X-Rspamd-Server: rspam06 X-HE-Tag: 1682213634-599532 X-HE-Meta: U2FsdGVkX18Eor1RwyPx4bJTHaja4o9gJm2ihc4UaSSJ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VPsr3ci0eHM4jUjUbJzjfBQyFgzU0OYOHRe9W2VjKCYtrEqKhQI5n2TpR8Iyw== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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.