* /proc/cpuinfo bad cache info
@ 2001-09-07 14:45 David Balazic
2001-09-07 18:16 ` H. Peter Anvin
0 siblings, 1 reply; 3+ messages in thread
From: David Balazic @ 2001-09-07 14:45 UTC (permalink / raw)
To: linux-kernel@vger.kernel.org
Hi!
In recent 2.4.x kernels the "Cache: " line in /proc/cpuinfo
reports the amount of the L1 cache or L2 cache or L3 cache or
some combination of them, depending on what code is executed
for this ( different for different CPU types ).
Somebody should decide what information should be reported in that
line and then fix the code.
Party on !
--
David Balazic
--------------
"Be excellent to each other." - Bill S. Preston, Esq., & "Ted" Theodore Logan
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: /proc/cpuinfo bad cache info
2001-09-07 14:45 /proc/cpuinfo bad cache info David Balazic
@ 2001-09-07 18:16 ` H. Peter Anvin
2001-09-07 22:17 ` Alan Cox
0 siblings, 1 reply; 3+ messages in thread
From: H. Peter Anvin @ 2001-09-07 18:16 UTC (permalink / raw)
To: linux-kernel
Followup to: <3B98DD93.4BDD367C@uni-mb.si>
By author: David Balazic <david.balazic@uni-mb.si>
In newsgroup: linux.dev.kernel
>
> In recent 2.4.x kernels the "Cache: " line in /proc/cpuinfo
> reports the amount of the L1 cache or L2 cache or L3 cache or
> some combination of them, depending on what code is executed
> for this ( different for different CPU types ).
>
> Somebody should decide what information should be reported in that
> line and then fix the code.
>
We already DO report the information we care about -- the SMP
weighting value -- and thus the code is correct. The value indicates
how much data is localized to that CPU and therefore how expensive it
is to reschedule a process elsewhere.
Anything that reports anything else is buggy. This includes things
like adding in the L1 cache in an inclusive cache design, or reporting
the L3 cache when it is a shared cache in the chipset.
-hpa
--
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt <amsp@zytor.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: /proc/cpuinfo bad cache info
2001-09-07 18:16 ` H. Peter Anvin
@ 2001-09-07 22:17 ` Alan Cox
0 siblings, 0 replies; 3+ messages in thread
From: Alan Cox @ 2001-09-07 22:17 UTC (permalink / raw)
To: H. Peter Anvin; +Cc: linux-kernel
> We already DO report the information we care about -- the SMP
> weighting value -- and thus the code is correct. The value indicates
> how much data is localized to that CPU and therefore how expensive it
> is to reschedule a process elsewhere.
There are plenty of other reasons for wanting to know more, eg picking which
video encode tables to use - but I still agree they belong in user space
since cpuid is available from user space too
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-09-07 22:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-09-07 14:45 /proc/cpuinfo bad cache info David Balazic
2001-09-07 18:16 ` H. Peter Anvin
2001-09-07 22:17 ` Alan Cox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox