LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-22-2010, 03:10 PM   #1
gypsy_rabbi
Member
 
Registered: Sep 2004
Distribution: Ubuntu
Posts: 109

Rep: Reputation: 15
lshw: L2 cache size vs capacity


Hi all,

I just bought a laptop with a T4400. Looking through lshw output turned up the following for the L2 cache:
Code:
        *-cache:1
             description: L2 cache
             physical id: 6
             slot: L2 Cache
             size: 1MiB
             capacity: 4MiB
             capabilities: burst internal write-back unified
I'm curious as to why the size (1Mib) and capacity (4MiB) are different. Surely it can't be possible to stick something on the CPU to increase the L2 cache size, right?? So what does this mean?

I'm running 64-bit Linux Mint (derivative of Ubuntu). The kernel config says CONFIG_X86_L1_CACHE_BYTES=64 but I found nothing about the L2 cache.

Any idea what this is about? Can I somehow unlock more cache to get a 4MiB L2 cache for free?

Thanks,

GR
 
Old 05-24-2010, 09:03 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,293

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
With the cache, you leave it to the kernel. My guess is that both figures are correct. You are not considering width. 1Megx8bits = 1 Megabyte
1 meg x 32 bits wide = 4Mb. That's what's going on.
 
1 members found this post helpful.
Old 05-24-2010, 10:22 AM   #3
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Quote:
Originally Posted by business_kid View Post
My guess is that both figures are correct. You are not considering width. 1Megx8bits = 1 Megabyte
1 meg x 32 bits wide = 4Mb. That's what's going on.
False.

The B in MiB means bytes. The 1MiB is correct. I don't know what the 4MiB is supposed to mean, but it is not the width thing you said.
 
Old 05-24-2010, 03:21 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
I am going to venture a wild guess. The actual possible size is 4 while the amount in use is 1.
 
Old 05-24-2010, 03:33 PM   #5
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Quote:
Originally Posted by jefro View Post
I am going to venture a wild guess. The actual possible size is 4 while the amount in use is 1.
What could "possible" mean in that context.

The CPU and cache were built together in one chip. There is no way to add anything nor modify anything. The size of the L2 cache is 1MiB and the only way to get more is to discard the whole CPU chip and put in a different one, in which case no "capacity" for L2 defined by this chip would matter.

IIUC, the chip has two cores. I'm not sure how many L2 caches it has. I think it is one 1MiB cache shared by two cores, but I'm not sure. Maybe each core has its own private 0.5MiB cache or maybe each core has its own private 1MiB cache.

If the two sizes differed by a factor of two, I might guess that the L2 caches were private so one size was per chip and one per core. But I think the L2 cache in that model is shared and the factor of four difference is not correct even if I'm wrong about the L2 cache being shared.
 
0 members found this post helpful.
Old 05-24-2010, 04:47 PM   #6
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Intel's Core 2 processors are spliced together and pasted on a board that contains the L2 cache which is shared with all cores. Each processor might be able to handle 4 megabytes, but are programmed to access 1 megabyte of L2 cache for your model because the board they are pasted to only has 1 megabyte of L2 cache. Sure you can take an X-Acto knife and start splicing out your core and place it into a board that has 4 megabytes of L2 cache, but you have to reprogram it to a different model. Though the knife have to very, very sharp to get through the epoxy that covers the chip.

Only AMD K10 cores has a feature to unlock both the cores and cache, but that does not mean that you should do it. They are locked for a reason and this reason is to protect your data from becoming corrupted.
 
Old 07-04-2010, 06:57 PM   #7
gypsy_rabbi
Member
 
Registered: Sep 2004
Distribution: Ubuntu
Posts: 109

Original Poster
Rep: Reputation: 15
Thanks, all. I posted the question on tomshardware.com also. Bottom line: T4400 is a locked Core 2, the L2 cache cannot be unlocked.

GR
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
L1 and L2 cache size sharadbade Linux - Newbie 1 03-14-2009 12:42 PM
Text Size and drive capacity problem with SUSE 10.0 Robert Diggs Linux - Newbie 8 12-19-2006 07:38 AM
buffer cache size gsr_kashyap Red Hat 6 09-18-2006 01:15 AM
DNS cache size shipon_97 Linux - Networking 3 09-13-2006 02:29 AM
How to get size of memory cache? lucky6969b Programming 1 02-20-2006 01:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration