Message ID | 20221221170436.409732339@redhat.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 82F24C4332F for <linux-mm@archiver.kernel.org>; Wed, 21 Dec 2022 17:10:51 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id DCE1D8E0002; Wed, 21 Dec 2022 12:10:50 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id D7E188E0001; Wed, 21 Dec 2022 12:10:50 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C465B8E0002; Wed, 21 Dec 2022 12:10:50 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id B14D28E0001 for <linux-mm@kvack.org>; Wed, 21 Dec 2022 12:10:50 -0500 (EST) Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 7939C4079A for <linux-mm@kvack.org>; Wed, 21 Dec 2022 17:10:50 +0000 (UTC) X-FDA: 80266953060.18.5552E48 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf21.hostedemail.com (Postfix) with ESMTP id C8CD41C0013 for <linux-mm@kvack.org>; Wed, 21 Dec 2022 17:10:48 +0000 (UTC) Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=O0Masb6Y; spf=pass (imf21.hostedemail.com: domain of mtosatti@redhat.com designates 170.10.133.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=1671642648; 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: references:references:dkim-signature; bh=GqbgBqzYEO8PAbvMLoGoPX+4TxxqLWlHdIHKhW7PgDE=; b=Sga9Qpa5OcSwRGbQtpRzbzdNVu5Xf/gXAaFSHi3Bt8/BQYnb7yIwUDwL6hAA98TJa+Jnkq XRk/zJpkS+bhFbQ7suOSboVUU4IDRof42xNBCRuM/BzhKBj5ymNzlqHHuUBa91eQgKN+XU rCLzM4DShuKB8p06MI6tp7fwn1kOmsM= ARC-Authentication-Results: i=1; imf21.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=O0Masb6Y; spf=pass (imf21.hostedemail.com: domain of mtosatti@redhat.com designates 170.10.133.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=1671642648; a=rsa-sha256; cv=none; b=lrp6+3dIXqqwmTKzIgtIquh/Q6EyxJKKtk1crzHH15p89b25/3P+9yRlLuVajYsKvGgfhZ xedq6jiKu87Sh/aAGLS61hn0Jj74dLfZppBlcf1p2tfOCQVrAGVLi5Asrb0sxHIXx05Xdt 5rxdTPscjzZd68+5TR8f3Jtn+mXgi18= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1671642648; 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: references:references; bh=GqbgBqzYEO8PAbvMLoGoPX+4TxxqLWlHdIHKhW7PgDE=; b=O0Masb6Yk0IMtdbflG3P7HVsGy/A3UdYPBqcEoRT2gZhB5Wsc8CNES5m6hn9aKGMqdBy+o zqsgIE1ct/dl1hOArsAZPBMhPe3zd+UdfxVwytd9uj7OY7FAdcrW+dJSNHwH4vZV8mhpJP mfeH8/CfDdIUY9UHBz37YG9zMiUL0AE= 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-306-91eF53Q9Mv229HhI4Py33g-1; Wed, 21 Dec 2022 12:10:45 -0500 X-MC-Unique: 91eF53Q9Mv229HhI4Py33g-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 3EA4F882823; Wed, 21 Dec 2022 17:10:45 +0000 (UTC) Received: from tpad.localdomain (ovpn-112-4.gru2.redhat.com [10.97.112.4]) by smtp.corp.redhat.com (Postfix) with ESMTPS id CADD92166B26; Wed, 21 Dec 2022 17:10:44 +0000 (UTC) Received: by tpad.localdomain (Postfix, from userid 1000) id ADC4340408D5E; Wed, 21 Dec 2022 14:09:34 -0300 (-03) Message-ID: <20221221170436.409732339@redhat.com> User-Agent: quilt/0.66 Date: Wed, 21 Dec 2022 13:58:06 -0300 From: Marcelo Tosatti <mtosatti@redhat.com> To: atomlin@atomlin.com, frederic@kernel.org Cc: cl@linux.com, tglx@linutronix.de, mingo@kernel.org, peterz@infradead.org, pauld@redhat.com, neelx@redhat.com, oleksandr@natalenko.name, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Marcelo Tosatti <mtosatti@redhat.com> Subject: [PATCH v11 5/6] tick/sched: Ensure quiet_vmstat() is called when the idle tick was stopped too References: <20221221165801.362118576@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: C8CD41C0013 X-Stat-Signature: m4wbbqgmss8pnparffpu3fyb5migfza7 X-Rspam-User: X-HE-Tag: 1671642648-456134 X-HE-Meta: U2FsdGVkX19uFx50IQN8bfybrVW4qFrx8Gk7j2uv38jTBYZtNWG2UVDkOy8fwNP70kcp0HcUd0majhG4Ol1ERuUJuCHD4Z+1Ienq6e0rWHWKXJhVPm0QLjIzSA/AH1iJoegCIsUoPJIkAJ5lUqHFZPL45bFQkyxlsvwmbaFj42y/WsynptSO+uqcbihUHFnMMbLvPHyjmqMTDYP3NnsNugbHVjzK8MMosyMBZhWszsQEWsksHhhVLuBm+sxGhu0LvnzaZlX30yjGenBDOLAQuF0hfk8e8rHQyzbqBIZubArxrTrSPMY+UHIhAbD+DHL2ZLJDSzK/Vyk3f+YnAqlEZqLnV1MprXLDtQFmfH0Vhq4z4UjJk8Tz6UXS6l3VZaA+93/jHABUH+JQoTgLG5rv8v+a5lLvrZ4ZLxQnJ8f59IBdDli3plMolecDRqT1dfQWVUoQsUzE6GjvNqlm3mPV7n7/lMPU9CPaDqr/nRldtxiSgRGyIPiVAuW441NY4PRN82sWKdIPQwXieRWiDZoIkOylc7pmVvHjQvjelJzUCEqdh7YM4ylf/oxuPwuYb5fWky9tbNL6K70OfZ3RsDmwd2m2EFO0DtnMpaBVUXG0OplIvBovKptVyTBgYvtJXrtyvPHey3Iv3E1blXukRxJOj+JczqWytF1P15ct7yq8a3cHib3m3/3YH1x3EhhQzFOh8PdlrKR9WgYg3/+1RcC4fiAAzbGd1t7b1k08m1WhfyhqBWCRob0jUnF5fM5CWamouNCC5DKlVtfAiZu9VWJF1Hvu7BRTN9BGd7bliWMErzTTxGZzOVLZkQpiIFIwvjyMW4Xv20oRYx2RTE7hmeLhDWq9qgCEmQ7Q/ix4wCHIEC2ABygIazqr2LSWZGJdpaNOiZX2SdbA3zc2zTdmztrjaZw5vRXMDqXzlLCJHYOCthQ= 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: <linux-mm.kvack.org> |
Series |
Ensure quiet_vmstat() is called when returning to userpace and when idle tick is stopped
|
expand
|
Index: linux-2.6/kernel/time/tick-sched.c =================================================================== --- linux-2.6.orig/kernel/time/tick-sched.c +++ linux-2.6/kernel/time/tick-sched.c @@ -928,13 +928,14 @@ static void tick_nohz_stop_tick(struct t */ if (!ts->tick_stopped) { calc_load_nohz_start(); - quiet_vmstat(false); ts->last_tick = hrtimer_get_expires(&ts->sched_timer); ts->tick_stopped = 1; trace_tick_stop(1, TICK_DEP_MASK_NONE); } + /* Attempt to fold when the idle tick is stopped or not */ + quiet_vmstat(false); ts->next_tick = tick; /*