From: Alexey Dobriyan <adobriyan@gmail.com>
To: dancol@google.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: Re: [PATCH] fs/proc: introduce /proc/stat2 file
Date: Tue, 30 Oct 2018 02:34:14 +0300 [thread overview]
Message-ID: <20181029233414.GA29750@avx2> (raw)
> I'd much rather move to a model in which userspace *explicitly* tells
> the kernel which fields it wants, with the kernel replying with just
> those particular fields, maybe in their raw binary representations.
> The ASCII-text bag-of-everything files would remain available for
> ad-hoc and non-performance critical use, but programs that cared about
> performance would have an efficient bypass. One concrete approach is
> to let users open up today's proc files and, instead of read(2)ing a
> text blob, use an ioctl to retrieve specified and targeted information
> of the sort that would normally be encoded in the text blob. Because
> callers would open the same file when using either the text or binary
> interfaces, little would have to change, and it'd be easy to implement
> fallbacks when a particular system doesn't support a particular
> fast-path ioctl.
You've just reinvented systems calls.
I suspect the DB in question cares about CPU related numbers and nothing
else which can be nicely split from the rest of /proc/stat.
next reply other threads:[~2018-10-29 23:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-29 23:34 Alexey Dobriyan [this message]
2018-10-29 23:40 ` Re: [PATCH] fs/proc: introduce /proc/stat2 file Daniel Colascione
2018-10-30 0:09 ` Alexey Dobriyan
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=20181029233414.GA29750@avx2 \
--to=adobriyan@gmail.com \
--cc=dancol@google.com \
--cc=linux-kernel@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.