peteroy

Distinguished
BANNED
Jun 14, 2004
280
0
18,790
CPU L2 cache is mega byte or bit?

==================================
<A HREF="http://www.clancas.net" target="_new">clan CHAOS</A> | <A HREF="http://www.clancas.net/cpuhot.htm" target="_new">P4 heat solution</A> | <A HREF="http://peteroy.blogspot.com" target="_new">My Blog</A>
 

Nights_L

Distinguished
Jan 25, 2003
1,452
0
19,280
If my memory serves..

256KBytes = 8bits * 256 * 1000 = 2048000bits
512KBytes = 8bits * 512 * 1000 = 4096000bits
1MBytse = 8 bits * 1024 * 1000 = 8192000bits

so is L2 cache in mega byte or bit? well..depend on how you express it.
 

P4Man

Distinguished
Feb 6, 2004
2,305
0
19,780
Actually, it is really expressed in mebibyte (eg 1 MiB) or kibibyte (eg 1024 KiB).

No, I kid you not, a Megabyte is 1000 KB, whereas a Mebibyte is 1024 KB. (same for KB versus KiB). Not that anyone uses those correctly mind you...

= The views stated herein are my personal views, and not necessarily the views of my wife. =<P ID="edit"><FONT SIZE=-1><EM>Edited by P4man on 09/27/05 12:23 PM.</EM></FONT></P>
 

imgod2u

Distinguished
Jul 1, 2002
890
0
18,980
It's also good to point out that 1 byte in cache isn't just 8 bits. There are bits used for book-keeping and tagging like the dirty bit, valid bit, block address, that makes a line of cache more than the data it contains.

"We are Microsoft, resistance is futile." - Bill Gates, 2015.
 

slvr_phoenix

Splendid
Dec 31, 2007
6,223
1
25,780
No, I kid you not, a Megabyte is 1000 Kb, whereas a Mebibyte is 1024 Kb. (same for Kb versus KiB). Not that anyone uses those correctly mind you...
<i>If</i> you buy into the goofy scheme worked out by the International Electrotechnical Commission, a scheme that almost no one is buying into by the way, then yeah.

If however you've been working on PCs for more than six years and have been happily using the common binary prefixes (or if you just don't buy into those funky new xxbi prefixes), then bollocks.

:evil: یί∫υєг ρђœŋίχ :evil:
<i>The <font color=red><b>Devil</b></font color=red> is in the details.</i>
@ 198K of 200K!
 

P4Man

Distinguished
Feb 6, 2004
2,305
0
19,780
You are quite correct, and so I edited my post as requested :)

= The views stated herein are my personal views, and not necessarily the views of my wife. =