Re: /proc/cpuinfo format - arch dependent!
From: Nico Schottelius
Date: Tue Apr 19 2005 - 15:02:08 EST
Lee Revell [Tue, Apr 19, 2005 at 03:17:00PM -0400]:
> On Tue, 2005-04-19 at 09:24 -0400, Lennart Sorensen wrote:
> > On Tue, Apr 19, 2005 at 02:15:30PM +0200, Nico Schottelius wrote:
> > > When I wrote schwanz3(*) for fun, I noticed /proc/cpuinfo
> > > varies very much on different architectures.
> > >
> > > Is it possible to make it look more identical (as far as the different
> > > archs allow it)?
> > >
> > > So that one at least can count the cpus on every system the same way.
> > >
> > > If so, who would the one I should contact and who would accept / verify
> > > a patch doing that?
> >
> > If you change it now, how many tools would break?
> >
>
> Lots. Please don't change the format of /proc/cpuinfo.
Can you tell me which ones?
And if there are really that many tools, which are dependent on
those information, wouldn't it be much more senseful to make
it (as far as possible) the same?
I must say I was really impressed, how easy I got the number of
cpus on *BSD (I am not a bsd user, still impressed).
They also have the same format on every arch and mostly the same
between different bsds (as far as I have seen).
In general, where are the advantages of having very different cpuinfo
formats? Tools would need to know less about the arch and could
depend on "I am on Linux" only.
Just some thoughts,
Nico
>
> Lee
>
>
--
Keep it simple & stupid, use what's available.
Please use pgp encryption: 8D0E 27A4 is my id.
http://nico.schotteli.us | http://linux.schottelius.org
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/