public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Zan Lynx <zlynx@acm.org>
To: Andi Kleen <ak@suse.de>
Cc: Jesper Juhl <jesper.juhl@gmail.com>,
	LKML <linux-kernel@vger.kernel.org>,
	Greg Kroah-Hartman <gregkh@suse.de>
Subject: Re: Wrong number of core_siblings in sysfs for Athlon64 X2
Date: Thu, 16 Feb 2006 19:58:57 -0700	[thread overview]
Message-ID: <1140145137.29021.52.camel@localhost> (raw)
In-Reply-To: <200602170318.15511.ak@suse.de>

[-- Attachment #1: Type: text/plain, Size: 2049 bytes --]

On Fri, 2006-02-17 at 03:18 +0100, Andi Kleen wrote:
> On Friday 17 February 2006 03:10, Zan Lynx wrote:
> 
> > It seems to me that this could be confusing for a lot of people who are
> > casually browsing through sysfs.  Why not name core_siblings something
> > like core_sibling_bitmap? 
> 
> Because it's already a fixed ABI that is put in stone.

Hardly "fixed in stone."  I checked before making the suggestion to
change it, the topology sysfs entries are only in 2.6.16-rc kernels, so
they've never been released in an official mainline kernel.  Fixed in
clay that hasn't been fired yet, perhaps.  Maybe by -rc3 it's already
baking in the kiln, but its still changeable.

> The only way to do what you want would be to add a new field
> and keep the old one alone, but frankly your rationale for 
> it ("could be confusing to someone") doesn't seem convincing enough 
> for such a thing.  Especially since each sysfs field can
> cost considerable memory when a dentry and a inode have to be allocated
> for it.

Now is hardly the time to worry about efficiency in sysfs.  It's already
a maze of twisty symlinks.  And the whole rationale of sysfs is easy
shell-tool access to kernel data about the system.  

> I guess if you worry about such people a better way to help
> them would be to write them a frontend that displays
> the information in there in nice form.

Nice frontends processing efficient but hard to read data would be best
implemented in binary through netlink or system calls where there would
be no need to format to text, create an inode, then have userspace open
directories, follow links, open a file, read it, parse it BACK into
binary, etc.  

So obviously efficiency isn't a primary sysfs consideration.  That would
leave ... ease of use? :-)

Your two objections aren't convincing to me, but I don't suppose it
matters since I don't have a major interest in the topology code or how
it works.  So continue on!  It was only a helpful suggestion.
-- 
Zan Lynx <zlynx@acm.org>

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

      reply	other threads:[~2006-02-17  2:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-16 21:46 Wrong number of core_siblings in sysfs for Athlon64 X2 Jesper Juhl
2006-02-16 21:59 ` Andi Kleen
2006-02-16 22:08   ` Jesper Juhl
2006-02-17  2:10     ` Zan Lynx
2006-02-17  2:18       ` Andi Kleen
2006-02-17  2:58         ` Zan Lynx [this message]

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=1140145137.29021.52.camel@localhost \
    --to=zlynx@acm.org \
    --cc=ak@suse.de \
    --cc=gregkh@suse.de \
    --cc=jesper.juhl@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox