linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 2.4.6-ac5 gives wrong cache info for Duron in /proc/cpuinfo
@ 2001-07-17 10:30 David Balazic
  2001-07-17 11:14 ` Christian Bornträger
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: David Balazic @ 2001-07-17 10:30 UTC (permalink / raw)
  To: linux-kernel

kernel 2.4.6-ac5
CPU AMD Duron 700

/proc/cpuinfo gives :
cache size: 64 KB

This is wrong :
 - the Duron has 192 kilobytes of cache ( 64 L1 I, 64 L1 D , 64 L2 unified )
 - what is KB ?
   - "kilo" is abbreviated to 'k' , not 'K'
   - "B" means "Bell" :-)

-- 
David Balazic
--------------
"Be excellent to each other." - Bill & Ted
- - - - - - - - - - - - - - - - - - - - - -

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: 2.4.6-ac5 gives wrong cache info for Duron in /proc/cpuinfo
  2001-07-17 10:30 2.4.6-ac5 gives wrong cache info for Duron in /proc/cpuinfo David Balazic
@ 2001-07-17 11:14 ` Christian Bornträger
  2001-07-17 11:48   ` David Balazic
  2001-07-17 11:34 ` Christian Bornträger
  2001-07-17 13:35 ` Ketil Froyn
  2 siblings, 1 reply; 13+ messages in thread
From: Christian Bornträger @ 2001-07-17 11:14 UTC (permalink / raw)
  To: David Balazic, linux-kernel

> /proc/cpuinfo gives :
> cache size: 64 KB
>
> This is wrong :
>  - the Duron has 192 kilobytes of cache ( 64 L1 I, 64 L1 D , 64 L2 unified
> ) - what is KB ?

As far as I know older Durons have a bug. They report a wrong size for the 
cache.

>    - "kilo" is abbreviated to 'k' , not 'K'

Hmm, I think kilo is 1000 and K is 1024.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: 2.4.6-ac5 gives wrong cache info for Duron in /proc/cpuinfo
  2001-07-17 10:30 2.4.6-ac5 gives wrong cache info for Duron in /proc/cpuinfo David Balazic
  2001-07-17 11:14 ` Christian Bornträger
@ 2001-07-17 11:34 ` Christian Bornträger
  2001-07-17 11:47   ` David Balazic
  2001-07-17 13:35 ` Ketil Froyn
  2 siblings, 1 reply; 13+ messages in thread
From: Christian Bornträger @ 2001-07-17 11:34 UTC (permalink / raw)
  To: David Balazic, linux-kernel

> CPU AMD Duron 700
>
> /proc/cpuinfo gives :
> cache size: 64 KB

With an Athlon I get 256KB.
So I guess, that cache size shows only the 2nd level cache size.


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: 2.4.6-ac5 gives wrong cache info for Duron in /proc/cpuinfo
  2001-07-17 11:34 ` Christian Bornträger
@ 2001-07-17 11:47   ` David Balazic
  0 siblings, 0 replies; 13+ messages in thread
From: David Balazic @ 2001-07-17 11:47 UTC (permalink / raw)
  To: Christian Bornträger; +Cc: linux-kernel

Christian Bornträger wrote:
> 
> > CPU AMD Duron 700
> >
> > /proc/cpuinfo gives :
> > cache size: 64 KB
> 
> With an Athlon I get 256KB.
> So I guess, that cache size shows only the 2nd level cache size.

Well then it should say "L2 cache size:"
It is a bug in any case.

-- 
David Balazic
--------------
"Be excellent to each other." - Bill & Ted
- - - - - - - - - - - - - - - - - - - - - -

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: 2.4.6-ac5 gives wrong cache info for Duron in /proc/cpuinfo
  2001-07-17 11:14 ` Christian Bornträger
@ 2001-07-17 11:48   ` David Balazic
  0 siblings, 0 replies; 13+ messages in thread
From: David Balazic @ 2001-07-17 11:48 UTC (permalink / raw)
  To: Christian Bornträger; +Cc: linux-kernel

Christian Bornträger wrote:
> 
> > /proc/cpuinfo gives :
> > cache size: 64 KB
> >
> > This is wrong :
> >  - the Duron has 192 kilobytes of cache ( 64 L1 I, 64 L1 D , 64 L2 unified
> > ) - what is KB ?
> 
> As far as I know older Durons have a bug. They report a wrong size for the
> cache.

The kernel messages at boot have no trouble finding out the correct
cache info.

> >    - "kilo" is abbreviated to 'k' , not 'K'
> 
> Hmm, I think kilo is 1000 and K is 1024.


-- 
David Balazic
--------------
"Be excellent to each other." - Bill & Ted
- - - - - - - - - - - - - - - - - - - - - -

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: 2.4.6-ac5 gives wrong cache info for Duron in /proc/cpuinfo
  2001-07-17 13:35 ` Ketil Froyn
@ 2001-07-17 11:51   ` William Scott Lockwood III
  2001-07-17 14:03     ` [OT] " Ketil Froyn
  2001-07-17 15:18   ` David Woodhouse
  1 sibling, 1 reply; 13+ messages in thread
From: William Scott Lockwood III @ 2001-07-17 11:51 UTC (permalink / raw)
  To: linux-kernel

It never ceases to amaze me how ANAL some people on this list are.  :-)

----- Original Message ----- 
From: "Ketil Froyn" <ketil@froyn.com>
To: "David Balazic" <david.balazic@uni-mb.si>
Cc: <linux-kernel@vger.kernel.org>
Sent: Tuesday, July 17, 2001 8:35 AM
Subject: Re: 2.4.6-ac5 gives wrong cache info for Duron in /proc/cpuinfo


| On Tue, 17 Jul 2001, David Balazic wrote:
| 
| > /proc/cpuinfo gives :
| > cache size: 64 KB
| >
| > This is wrong :
| >  - the Duron has 192 kilobytes of cache ( 64 L1 I, 64 L1 D , 64 L2 unified )
| >  - what is KB ?
| >    - "kilo" is abbreviated to 'k' , not 'K'
| >    - "B" means "Bell" :-)
| 
| I believe it is normal to write 'K' for 1024, 'k' for 1000 and 'B' for
| bytes and 'b' for bits.
| 
| Have a look at acronymfinder.com, they distinguish the capital and
| lowercase b for bits and bytes.
| 
| Ketil
ý:.žË›±Êâmçë¢kaŠÉb²ßìzwm…ébïîžË›±Êâmébžìÿ‘êçz_âžØ^n‡r¡ö¦zË\x1aëh™¨è­Ú&£ûàz¿äz¹Þ—ú+€Ê+zf£¢·hšˆ§~†­†Ûiÿÿïêÿ‘êçz_è®\x0fæj:+v‰¨þ)ߣømšSåy«\x1e­æ¶\x17…\x01\x06­†ÛiÿÿðÃ\x0fí»\x1fè®\x0få’i\x7f

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: 2.4.6-ac5 gives wrong cache info for Duron in /proc/cpuinfo
  2001-07-17 10:30 2.4.6-ac5 gives wrong cache info for Duron in /proc/cpuinfo David Balazic
  2001-07-17 11:14 ` Christian Bornträger
  2001-07-17 11:34 ` Christian Bornträger
@ 2001-07-17 13:35 ` Ketil Froyn
  2001-07-17 11:51   ` William Scott Lockwood III
  2001-07-17 15:18   ` David Woodhouse
  2 siblings, 2 replies; 13+ messages in thread
From: Ketil Froyn @ 2001-07-17 13:35 UTC (permalink / raw)
  To: David Balazic; +Cc: linux-kernel

On Tue, 17 Jul 2001, David Balazic wrote:

> /proc/cpuinfo gives :
> cache size: 64 KB
>
> This is wrong :
>  - the Duron has 192 kilobytes of cache ( 64 L1 I, 64 L1 D , 64 L2 unified )
>  - what is KB ?
>    - "kilo" is abbreviated to 'k' , not 'K'
>    - "B" means "Bell" :-)

I believe it is normal to write 'K' for 1024, 'k' for 1000 and 'B' for
bytes and 'b' for bits.

Have a look at acronymfinder.com, they distinguish the capital and
lowercase b for bits and bytes.

Ketil


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [OT] Re: 2.4.6-ac5 gives wrong cache info for Duron in /proc/cpuinfo
  2001-07-17 11:51   ` William Scott Lockwood III
@ 2001-07-17 14:03     ` Ketil Froyn
  0 siblings, 0 replies; 13+ messages in thread
From: Ketil Froyn @ 2001-07-17 14:03 UTC (permalink / raw)
  To: William Scott Lockwood III; +Cc: linux-kernel

Ouch, you got me there!! ;-)

Ketil

-----Original Message-----
Date: Tue, 17 Jul 2001 06:51:02 -0500
From: William Scott Lockwood III <thatlinuxguy@hotmail.com>
Reply-To: William Scott Lockwood III <scottlockwood@hotmail.com>
To: linux-kernel@vger.kernel.org
Subject: Re: 2.4.6-ac5 gives wrong cache info for Duron in /proc/cpuinfo

It never ceases to amaze me how ANAL some people on this list are.  :-)

----- Original Message -----
From: "Ketil Froyn" <ketil@froyn.com>
To: "David Balazic" <david.balazic@uni-mb.si>
Cc: <linux-kernel@vger.kernel.org>
Sent: Tuesday, July 17, 2001 8:35 AM
Subject: Re: 2.4.6-ac5 gives wrong cache info for Duron in /proc/cpuinfo


| On Tue, 17 Jul 2001, David Balazic wrote:
|
| > /proc/cpuinfo gives :
| > cache size: 64 KB
| >
| > This is wrong :
| >  - the Duron has 192 kilobytes of cache ( 64 L1 I, 64 L1 D , 64 L2 unified )
| >  - what is KB ?
| >    - "kilo" is abbreviated to 'k' , not 'K'
| >    - "B" means "Bell" :-)
|
| I believe it is normal to write 'K' for 1024, 'k' for 1000 and 'B' for
| bytes and 'b' for bits.
|
| Have a look at acronymfinder.com, they distinguish the capital and
| lowercase b for bits and bytes.
|
| Ketil
N‹§²æìr¸›yúèšØb²X¬·ë\x1eÛazX§zéì¹»\x1c®&Þ–)îÆG«ébžØ^n‡r¡ö¦zË\x1aëh™¨è­Ú&¢ø\x1e®G«éh®\x03(­éšŽŠÝ¢j"ú\x1a¶^[m§ïÿ¾\a«‘êçzZ+ƒùšŽŠÝ¢j"ú!¶iO•æ¬z·švØ^\x14\x04\x1a¶^[m§ïÿÃ\f-»\x1a+ƒùdš_


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: 2.4.6-ac5 gives wrong cache info for Duron in /proc/cpuinfo
  2001-07-17 13:35 ` Ketil Froyn
  2001-07-17 11:51   ` William Scott Lockwood III
@ 2001-07-17 15:18   ` David Woodhouse
  2001-07-17 15:35     ` [VERY OT] " William Scott Lockwood III
  2001-07-17 15:50     ` Alan Shutko
  1 sibling, 2 replies; 13+ messages in thread
From: David Woodhouse @ 2001-07-17 15:18 UTC (permalink / raw)
  To: William Scott Lockwood III; +Cc: linux-kernel


thatlinuxguy@hotmail.com said:
> It never ceases to amaze me how ANAL some people on this list are.
> :-)

It's called attention to detail, and it's the _reason_ why a lot of people 
are here.

The correct prefix to signify a multiple of 1024 is 'Ki'.

Index: arch/i386/kernel/setup.c
===================================================================
RCS file: /inst/cvs/linux/arch/i386/kernel/setup.c,v
retrieving revision 1.4.2.57
diff -u -r1.4.2.57 setup.c
--- arch/i386/kernel/setup.c	2001/05/14 10:32:23	1.4.2.57
+++ arch/i386/kernel/setup.c	2001/07/17 15:13:54
@@ -2406,7 +2406,7 @@
 
 		/* Cache size */
 		if (c->x86_cache_size >= 0)
-			p += sprintf(p, "cache size\t: %d KB\n", c->x86_cache_size);
+			p += sprintf(p, "cache size\t: %d KiB\n", c->x86_cache_size);
 		
 		/* We use exception 16 if we have hardware math and we've either seen it or the CPU claims it is internal */
 		fpu_exception = c->hard_math && (ignore_irq13 || cpu_has_fpu);


--
dwmw2



^ permalink raw reply	[flat|nested] 13+ messages in thread

* [VERY OT] Re: 2.4.6-ac5 gives wrong cache info for Duron in /proc/cpuinfo
  2001-07-17 15:18   ` David Woodhouse
@ 2001-07-17 15:35     ` William Scott Lockwood III
  2001-07-17 15:50     ` Alan Shutko
  1 sibling, 0 replies; 13+ messages in thread
From: William Scott Lockwood III @ 2001-07-17 15:35 UTC (permalink / raw)
  To: David Woodhouse; +Cc: linux-kernel

Oh, I understand attention to detail.  After spending eight years in the United States Navy as a Hospital Corpsman, you either understand attention to detail, or you are not a Corpsman any longer.  :-)  It just struck me as funny that, while an understanding of attention to detail is important, so is the way in which information is communicated.  In fact, it's almost as important as the information itself.  I've seen more fights start over how something was said, or not said - I'm sure you get the picture.  :-)

Me, I mainly lurk here for that very reason - I've received too much hatemail from posting to the list, so I try to follow it instead and see what I can learn.  Today, I learned that multiples of 1024 is actually Ki.  Thank you!  I did not know that.

Scott
----- Original Message ----- 
From: "David Woodhouse" <dwmw2@infradead.org>
To: "William Scott Lockwood III" <scottlockwood@hotmail.com>
Cc: <linux-kernel@vger.kernel.org>
Sent: Tuesday, July 17, 2001 10:18 AM
Subject: Re: 2.4.6-ac5 gives wrong cache info for Duron in /proc/cpuinfo


| 
| thatlinuxguy@hotmail.com said:
| > It never ceases to amaze me how ANAL some people on this list are.
| > :-)
| 
| It's called attention to detail, and it's the _reason_ why a lot of people
| are here.
| 
| The correct prefix to signify a multiple of 1024 is 'Ki'.
| 
| Index: arch/i386/kernel/setup.c
| ===================================================================
| RCS file: /inst/cvs/linux/arch/i386/kernel/setup.c,v
| retrieving revision 1.4.2.57
| diff -u -r1.4.2.57 setup.c
| --- arch/i386/kernel/setup.c 2001/05/14 10:32:23 1.4.2.57
| +++ arch/i386/kernel/setup.c 2001/07/17 15:13:54
| @@ -2406,7 +2406,7 @@
| 
|   /* Cache size */
|   if (c->x86_cache_size >= 0)
| - p += sprintf(p, "cache size\t: %d KB\n", c->x86_cache_size);
| + p += sprintf(p, "cache size\t: %d KiB\n", c->x86_cache_size);
| 
|   /* We use exception 16 if we have hardware math and we've either seen it or the CPU claims it is internal */
|   fpu_exception = c->hard_math && (ignore_irq13 || cpu_has_fpu);
| 
| 
| --
| dwmw2
| 
| 
| -
| To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
| the body of a message to majordomo@vger.kernel.org
| More majordomo info at  http://vger.kernel.org/majordomo-info.html
| Please read the FAQ at  http://www.tux.org/lkml/
| 
ý:.žË›±Êâmçë¢kaŠÉb²ßìzwm…ébïîžË›±Êâmébžìÿ‘êçz_âžØ^n‡r¡ö¦zË\x1aëh™¨è­Ú&£ûàz¿äz¹Þ—ú+€Ê+zf£¢·hšˆ§~†­†Ûiÿÿïêÿ‘êçz_è®\x0fæj:+v‰¨þ)ߣømšSåy«\x1e­æ¶\x17…\x01\x06­†ÛiÿÿðÃ\x0fí»\x1fè®\x0få’i\x7f

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [VERY OT] Re: 2.4.6-ac5 gives wrong cache info for Duron in /proc/cpuinfo
  2001-07-17 15:18   ` David Woodhouse
  2001-07-17 15:35     ` [VERY OT] " William Scott Lockwood III
@ 2001-07-17 15:50     ` Alan Shutko
  2001-07-17 16:20       ` Ignacio Vazquez-Abrams
  2001-07-17 16:25       ` William Scott Lockwood III
  1 sibling, 2 replies; 13+ messages in thread
From: Alan Shutko @ 2001-07-17 15:50 UTC (permalink / raw)
  To: William Scott Lockwood III; +Cc: David Woodhouse, linux-kernel

"William Scott Lockwood III" <thatlinuxguy@hotmail.com> writes:

> Today, I learned that multiples of 1024 is actually Ki.  

It's a reasonably new standard that hasn't caught on, because many
people think that "kibibyte" is stupid.

-- 
Alan Shutko <ats@acm.org> - In a variety of flavors!
Tempt me with a spoon!

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [VERY OT] Re: 2.4.6-ac5 gives wrong cache info for Duron in /proc/cpuinfo
  2001-07-17 15:50     ` Alan Shutko
@ 2001-07-17 16:20       ` Ignacio Vazquez-Abrams
  2001-07-17 16:25       ` William Scott Lockwood III
  1 sibling, 0 replies; 13+ messages in thread
From: Ignacio Vazquez-Abrams @ 2001-07-17 16:20 UTC (permalink / raw)
  To: Alan Shutko; +Cc: William Scott Lockwood III, David Woodhouse, linux-kernel

On Tue, 17 Jul 2001, Alan Shutko wrote:

> It's a reasonably new standard that hasn't caught on, because many
> people think that "kibibyte" is stupid.

Kibibbles N Bits! N Bits!! N Bits!!!

Sorry, I had to say it ;)

  http://www.koin.com/athome/wisebuys/athome-wisebuys-980223-184529.html

-- 
Ignacio Vazquez-Abrams  <ignacio@openservices.net>



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [VERY OT] Re: 2.4.6-ac5 gives wrong cache info for Duron in /proc/cpuinfo
  2001-07-17 15:50     ` Alan Shutko
  2001-07-17 16:20       ` Ignacio Vazquez-Abrams
@ 2001-07-17 16:25       ` William Scott Lockwood III
  1 sibling, 0 replies; 13+ messages in thread
From: William Scott Lockwood III @ 2001-07-17 16:25 UTC (permalink / raw)
  To: Alan Shutko, David Woodhouse; +Cc: linux-kernel

Well, it does sound stupid but hey - they have to call it something right?  I have always been a bit peeved that I get a 30 gig drive, take it home and plug it in only to find that it is actually much less than 30 gig.  :-)

----- Original Message ----- 
From: "Alan Shutko" <ats@acm.org>
To: "William Scott Lockwood III" <scottlockwood@hotmail.com>
Cc: "David Woodhouse" <dwmw2@infradead.org>; <linux-kernel@vger.kernel.org>
Sent: Tuesday, July 17, 2001 10:50 AM
Subject: Re: [VERY OT] Re: 2.4.6-ac5 gives wrong cache info for Duron in /proc/cpuinfo


| "William Scott Lockwood III" <thatlinuxguy@hotmail.com> writes:
| 
| > Today, I learned that multiples of 1024 is actually Ki.
| 
| It's a reasonably new standard that hasn't caught on, because many
| people think that "kibibyte" is stupid.
| 
| --
| Alan Shutko <ats@acm.org> - In a variety of flavors!
| Tempt me with a spoon!
| 
ý:.žË›±Êâmçë¢kaŠÉb²ßìzwm…ébïîžË›±Êâmébžìÿ‘êçz_âžØ^n‡r¡ö¦zË\x1aëh™¨è­Ú&£ûàz¿äz¹Þ—ú+€Ê+zf£¢·hšˆ§~†­†Ûiÿÿïêÿ‘êçz_è®\x0fæj:+v‰¨þ)ߣømšSåy«\x1e­æ¶\x17…\x01\x06­†ÛiÿÿðÃ\x0fí»\x1fè®\x0få’i\x7f

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2001-07-17 16:20 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-17 10:30 2.4.6-ac5 gives wrong cache info for Duron in /proc/cpuinfo David Balazic
2001-07-17 11:14 ` Christian Bornträger
2001-07-17 11:48   ` David Balazic
2001-07-17 11:34 ` Christian Bornträger
2001-07-17 11:47   ` David Balazic
2001-07-17 13:35 ` Ketil Froyn
2001-07-17 11:51   ` William Scott Lockwood III
2001-07-17 14:03     ` [OT] " Ketil Froyn
2001-07-17 15:18   ` David Woodhouse
2001-07-17 15:35     ` [VERY OT] " William Scott Lockwood III
2001-07-17 15:50     ` Alan Shutko
2001-07-17 16:20       ` Ignacio Vazquez-Abrams
2001-07-17 16:25       ` William Scott Lockwood III

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).