Message ID | 20221206162416.545596407@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 3DC1DC4708C for <linux-mm@archiver.kernel.org>; Tue, 6 Dec 2022 17:19:49 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7F5828E0006; Tue, 6 Dec 2022 12:19:48 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 691868E0007; Tue, 6 Dec 2022 12:19:48 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3FAAD8E0006; Tue, 6 Dec 2022 12:19:48 -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 27DE08E0001 for <linux-mm@kvack.org>; Tue, 6 Dec 2022 12:19:48 -0500 (EST) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 063C61A04A8 for <linux-mm@kvack.org>; Tue, 6 Dec 2022 17:19:48 +0000 (UTC) X-FDA: 80212543656.03.E2C0B0C Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf28.hostedemail.com (Postfix) with ESMTP id 89CFCC000F for <linux-mm@kvack.org>; Tue, 6 Dec 2022 17:19:47 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=i6E8k6ya; spf=pass (imf28.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=1670347187; a=rsa-sha256; cv=none; b=zeoFjCrcr4O9gyYVpIJmgCYDDZO7EDoRkyGjp3uEIdN0AY+hKH2kYUpC0miD99hcwCYkda uK8apNdotgS1pVS7kvxZgoHhLwl4lJoLd6an2+zVq5j0amQien4D3Vmy3O5P6pUG9RMzJU x19B8p4hPHh2fbiH4OY7MZLTvlnxP9I= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=i6E8k6ya; spf=pass (imf28.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=1670347187; 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=qI/FNfFK2hCaPQR7h5sQMFzBE9Rk/EKDVSD9F/Ae6dY=; b=5LvkUIHTDESBuE11/+ziW9acL2d2hZDx+pXCTQIe1sPkVVg3h+ZP9SAsH/OVSf9IYtbppI 416i4jMNkCsoYzDWKQSH7DYOBsEQWKqFiSh0FdlbuuNfOzF5oz5yQYU6jPIlU1cx7BVvpO LyFW6824yrtbiVE2239tyWyRhfkm/1E= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1670347186; 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=qI/FNfFK2hCaPQR7h5sQMFzBE9Rk/EKDVSD9F/Ae6dY=; b=i6E8k6ya+o8ym6S8A5hkoo/PMNygThnse+TL5DYkUaykmfUWNDe5KudzbBvby7BOAAUBCS OmSO3P+rHVv52LuiqpiXI31ejqSQ3G/szOXwc/1kjJBfh9dMB+KThsCpeiCLVLxySaNOyl Esm1YHoxlAQHjDsyWTBtWHykefPU+OY= 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-524-7R3jg4Q4MDqJi9lPXjtZFA-1; Tue, 06 Dec 2022 12:19:45 -0500 X-MC-Unique: 7R3jg4Q4MDqJi9lPXjtZFA-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 0F2BB3C0CD5A; Tue, 6 Dec 2022 17:19:45 +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 9B4D3492B05; Tue, 6 Dec 2022 17:19:44 +0000 (UTC) Received: by tpad.localdomain (Postfix, from userid 1000) id D9F80409005E4; Tue, 6 Dec 2022 13:31:40 -0300 (-03) Message-ID: <20221206162416.545596407@redhat.com> User-Agent: quilt/0.66 Date: Tue, 06 Dec 2022 13:18:31 -0300 From: Marcelo Tosatti <mtosatti@redhat.com> To: atomlin@redhat.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 Subject: [PATCH v9 5/5] tick/sched: Ensure quiet_vmstat() is called when the idle tick was stopped too References: <20221206161826.698593151@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.10 X-Spamd-Result: default: False [-5.90 / 9.00]; BAYES_HAM(-6.00)[100.00%]; SUBJECT_HAS_UNDERSCORES(1.00)[]; DMARC_POLICY_ALLOW(-0.50)[redhat.com,none]; R_DKIM_ALLOW(-0.20)[redhat.com:s=mimecast20190719]; R_SPF_ALLOW(-0.20)[+ip4:170.10.133.0/24]; RCVD_NO_TLS_LAST(0.10)[]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_SEVEN(0.00)[11]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[redhat.com:+]; ARC_SIGNED(0.00)[hostedemail.com:s=arc-20220608:i=1]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_NONE(0.00)[]; ARC_NA(0.00)[] X-Rspam-User: X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: 89CFCC000F X-Stat-Signature: 46x9ecukhuaowdworppkd85e1g8mm3dk X-HE-Tag: 1670347187-494612 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 the idle tick was stopped too
|
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 @@ -926,13 +926,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; /*