From: Grzegorz Kulewski <kangur@polcom.net>
To: Nico Schottelius <nico-kernel@schottelius.org>
Cc: Lee Revell <rlrevell@joe-job.com>,
Lennart Sorensen <lsorense@csclub.uwaterloo.ca>,
linux-kernel@vger.kernel.org
Subject: Re: /proc/cpuinfo format - arch dependent!
Date: Tue, 19 Apr 2005 23:12:17 +0200 (CEST) [thread overview]
Message-ID: <Pine.LNX.4.62.0504192303220.8671@alpha.polcom.net> (raw)
In-Reply-To: <20050419205445.GC16594@schottelius.org>
On Tue, 19 Apr 2005, Nico Schottelius wrote:
> Lee Revell [Tue, Apr 19, 2005 at 04:42:12PM -0400]:
>> On Tue, 2005-04-19 at 22:00 +0200, Nico Schottelius wrote:
>>> Can you tell me which ones?
>>>
>>
>> Multimedia apps like JACK and mplayer that use the TSC for high res
>> timing need to know the CPU speed, and /proc/cpuinfo is the fast way to
>> get it.
>>
>> Why don't you create sysfs entries instead? It would be better to have
>> all the cpuinfo contents as one value per file anyway (faster
>> application startup).
>
> Well, sounds very good. It's a chance for me to learn to program
> sysfs and also to create something useful.
>
> So the right location to place that data would be
> /sys/devices/system/cpu/cpuX?
IIRC there was such patch not very long ago and it was rejected (to not
make kernel larger or something like that...). But I can be wrong.
I think that all data from /proc that are not user-process data should be
exported using sysfs or something similar. Maybe even in future one will
write userspace fs (using FUSE?) to emulate old /proc entries using sysfs
exported data. This will allow removing all proc code from kernel. Maybe
even user processes data should be exported using sysfs (like
/sys/processes/123/maps/41610000/file)? But this is my personal opinion.
Grzegorz Kulewski
next prev parent reply other threads:[~2005-04-19 21:07 UTC|newest]
Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-19 12:15 Nico Schottelius
2005-04-19 13:24 ` Lennart Sorensen
2005-04-19 19:17 ` Lee Revell
2005-04-19 20:00 ` Nico Schottelius
2005-04-19 20:02 ` David S. Miller
2005-04-19 20:12 ` Lennart Sorensen
2005-04-19 20:42 ` Lee Revell
2005-04-19 20:54 ` Nico Schottelius
2005-04-19 21:12 ` Grzegorz Kulewski [this message]
2005-04-20 20:31 ` Ralf Baechle
2005-05-07 3:37 ` Ricky Beam
2005-05-07 4:01 ` Stefan Smietanowski
2005-05-07 7:55 ` Ricky Beam
2005-05-07 17:51 ` Stefan Smietanowski
2005-05-07 18:05 ` Ricky Beam
2005-05-07 18:46 ` Dr. David Alan Gilbert
2005-05-07 4:14 ` Andrew Morton
2005-05-07 7:58 ` Willy Tarreau
2005-05-07 16:53 ` Dave Jones
2005-05-07 17:05 ` Willy Tarreau
2005-05-07 17:20 ` Dave Jones
2005-05-07 17:18 ` Willy Tarreau
2005-05-08 1:25 ` Jim Nance
2005-05-08 16:11 ` John Kacur
2005-05-09 18:14 ` Bill Davidsen
2005-05-09 20:09 ` Chris Friesen
2005-05-09 20:26 ` Lennart Sorensen
2005-05-09 21:25 ` Brian O'Mahoney
2005-05-10 16:21 ` Bill Davidsen
2005-05-10 16:34 ` Chris Friesen
2005-05-10 2:23 ` Jim Nance
2005-05-10 4:12 ` Willy Tarreau
2005-05-10 7:13 ` Paul Jackson
2005-05-10 16:34 ` Bill Davidsen
2005-05-07 17:54 ` Stefan Smietanowski
2005-05-07 18:05 ` Willy Tarreau
2005-05-09 18:03 ` Bill Davidsen
2005-05-10 7:21 ` Paul Jackson
2005-05-10 14:38 ` Lennart Sorensen
2005-05-10 16:37 ` Bill Davidsen
2005-05-09 18:00 ` Bill Davidsen
2005-05-09 19:58 ` Lennart Sorensen
2005-05-10 16:49 ` Bill Davidsen
[not found] <3UZS7-5ue-17@gated-at.bofh.it>
[not found] ` <41ouh-4QE-1@gated-at.bofh.it>
[not found] ` <41oXl-5hl-7@gated-at.bofh.it>
[not found] ` <41sxX-8cN-11@gated-at.bofh.it>
[not found] ` <41BL4-7l7-15@gated-at.bofh.it>
2005-05-07 23:33 ` Bodo Eggert <harvested.in.lkml@posting.7eggert.dyndns.org>
2005-05-08 13:24 ` Andi Kleen
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=Pine.LNX.4.62.0504192303220.8671@alpha.polcom.net \
--to=kangur@polcom.net \
--cc=linux-kernel@vger.kernel.org \
--cc=lsorense@csclub.uwaterloo.ca \
--cc=nico-kernel@schottelius.org \
--cc=rlrevell@joe-job.com \
/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
all inboxes | Powered by JetHome®