From: Tony Luck <tony.luck@gmail.com>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andrew Morton <akpm@linux-foundation.org>,
Joonsoo Kim <iamjoonsoo.kim@lge.com>,
Al Viro <viro@zeniv.linux.org.uk>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: get_vmalloc_info() and /proc/meminfo insanely expensive
Date: Thu, 13 Aug 2015 14:15:49 -0700 [thread overview]
Message-ID: <CA+8MBb+LGW0tc8Deta0qiJ0_N37LC2XxWSiHDYaQczYSE097vg@mail.gmail.com> (raw)
In-Reply-To: <CA+55aFxzOAx7365Mx2o55TZOS+bZGh_Pfr=vVF3QGg0btsDumg@mail.gmail.com>
On Thu, Aug 13, 2015 at 11:32 AM, Linus Torvalds
<torvalds@linux-foundation.org> wrote:
> And I also can't find it in myself to care about the "on 32-bit,
> jiffies wraps in 49 days if HZ is 1000". If somebody carefully avoids
> ever reading /proc/meminfo for 49 days, and then reads it in _just_
> the right second, and gets a really stale value, I'm just going to do
> my honey badger impression.
could you at least care enough to write that as
if (time_after(now, last + HZ)) {
-Tony
next prev parent reply other threads:[~2015-08-13 21:23 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-13 3:29 get_vmalloc_info() and /proc/meminfo insanely expensive Linus Torvalds
2015-08-13 4:00 ` Andrew Morton
2015-08-13 5:52 ` Linus Torvalds
2015-08-13 7:42 ` Rasmus Villemoes
2015-08-13 16:50 ` Linus Torvalds
2015-08-13 18:32 ` Linus Torvalds
2015-08-13 18:52 ` Linus Torvalds
2015-08-13 19:50 ` David Rientjes
2015-08-13 20:04 ` Linus Torvalds
2015-08-13 21:15 ` Tony Luck [this message]
2015-08-13 22:56 ` Linus Torvalds
2015-08-13 20:26 ` Andrew Morton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CA+8MBb+LGW0tc8Deta0qiJ0_N37LC2XxWSiHDYaQczYSE097vg@mail.gmail.com \
--to=tony.luck@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=iamjoonsoo.kim@lge.com \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@linux-foundation.org \
--cc=viro@zeniv.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).