From: Andrew Morton <akpm@linux-foundation.org>
To: Paul Mackerras <paulus@samba.org>
Cc: torvalds@linux-foundation.org, linux-kernel@vger.kernel.org,
greg@kroah.com
Subject: Re: Is sysfs the right place to get cache and CPU topology info?
Date: Wed, 2 Jul 2008 03:01:54 -0700 [thread overview]
Message-ID: <20080702030154.67a851d2.akpm@linux-foundation.org> (raw)
In-Reply-To: <18539.20039.516803.51920@cargo.ozlabs.ibm.com>
On Wed, 2 Jul 2008 19:45:43 +1000 Paul Mackerras <paulus@samba.org> wrote:
> > Well it's up to them - they own the files. If they later change them
> > and break their own interfaces (and presumably their own applications),
> > well, perhaps they have chosen an inappropriate career?
>
> We have too many "they"s, perhaps. I meant that these developers (of
> an HPC library that wants to know about cpu caches and topology) see
> sysfs as being completely useless as a source of information because
> they expect random kernel developers to keep changing it in
> incompatible ways. So "they" (library developers) don't own the files
> - they're not kernel developers at all.
Oh. I thought "they" (or you) were proposing adding some new
topology-exporting files to sysfs.
If they're talking about using the existing ones then sure, those are
cast in stone as far as I'm concerned.
But they do need to be a _bit_ defensive. If they see a file which has
multiple name:value fields (shouldn't happen) then don't fail if new
tuples turn up later on. Don't expect them to always be in the same
order. Don't fail if new files later turn up in a sysfs directory. If
a file has (a stupid) format like /proc/self/stat then be prepared for
new columns to appear later on, etc.
But if basic and obvious steps like that are taken in the library, and
later kernel changes cause that library to break, we get to fix the
kernel to unbreak their library.
next prev parent reply other threads:[~2008-07-02 10:02 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-02 6:27 Is sysfs the right place to get cache and CPU topology info? Paul Mackerras
2008-07-02 7:37 ` Andrew Morton
2008-07-02 9:45 ` Paul Mackerras
2008-07-02 10:01 ` Andrew Morton [this message]
2008-07-02 11:46 ` Paul Mackerras
2008-07-02 16:47 ` Andrew Morton
2008-07-02 11:12 ` Andi Kleen
2008-07-02 14:35 ` Nathan Lynch
2008-07-02 15:14 ` Andi Kleen
2008-07-02 18:51 ` Greg KH
2008-07-02 21:41 ` Removing sysdevs? (was: Re: Is sysfs the right place to get cache and CPU topology info?) Rafael J. Wysocki
2008-07-02 21:48 ` Greg KH
2008-07-02 21:57 ` Removing sysdevs? Andi Kleen
2008-07-02 22:15 ` Greg KH
2008-07-03 9:53 ` Andi Kleen
2008-07-04 1:09 ` Greg KH
2008-07-02 22:17 ` Benjamin Herrenschmidt
2008-07-02 22:08 ` Removing sysdevs? (was: Re: Is sysfs the right place to get cache and CPU topology info?) Rafael J. Wysocki
2008-07-02 22:16 ` Greg KH
2008-07-02 23:06 ` Rafael J. Wysocki
2008-07-02 17:08 ` [PATCH] sysfs-rules.txt: reword API stability statement Nathan Lynch
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=20080702030154.67a851d2.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=paulus@samba.org \
--cc=torvalds@linux-foundation.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox