LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-22-2010, 05:31 PM   #1
saurin
Member
 
Registered: Aug 2008
Posts: 49

Rep: Reputation: 0
what is difference between hardware cache and slab cache?


Hi,

I am reading slab allocator, it defines slab cache, i am quite confuse is it same as hardware cache?
 
Old 11-23-2010, 12:31 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 7,565

Rep: Reputation: 696Reputation: 696Reputation: 696Reputation: 696Reputation: 696Reputation: 696
A hardware cache is physical ram, placed close to (usually) the cpu for speed of access. Usually running subroutines and possible jump points get loaded there. Hardware.

A slab cache is a way of allocating or organizing in memory - non necessarily cache memory. Software. But you're reading and I'm rusty.
 
Old 11-23-2010, 12:53 PM   #3
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181
Quote:
Originally Posted by saurin View Post
is it same as hardware cache?
That is easy to answer: NO!

"Cache" is a concept used at many levels in hardware and software. So the fact that you see the word "cache" in two different things should not lead you to suspect they are the same thing.

I don't feel like digging up a good description of either "slab cache" or "hardware cache". Other than the fundamental Hardware vs. Software, I don't really agree with the descriptions business_kid posted.

But even very bad descriptions of those two kinds of "cache" (that you might find with any kind of search) should tell you they aren't at all the same thing.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Difference between page cache and buffer cache Nayaka Linux - Kernel 5 09-28-2011 09:23 AM
openSUSE 10: Samba failed to create the cache directory in /var/cache mianmajidali Linux - Server 0 05-09-2008 03:00 AM
cache folder like /var/cache/apt/packages on Debian Shaddy SUSE / openSUSE 0 08-13-2006 11:02 AM
Extremely high slab cache usage jonEbird Linux - Enterprise 1 12-07-2005 04:40 AM
Error: Caching enabled and local cache: //var/cache/yum/base/primary.xml.gz does... dr_zayus69 Linux - Software 2 07-06-2005 05:32 AM


All times are GMT -5. The time now is 12:12 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration