SlideShare a Scribd company logo
1 of 7
Cache Memory
Abstract:-This research paper investigatesabout cache
memory and its organizationand optimization.Theearly
beginningpart of the paper makes you familiarwith the term
cache. Further ahead, the paper covers the importance of
cache optimization in microprocessors and cache
organisationin Intel Nehalem Computer Architecture.
Introduction:-The use of cache memories are so
pervasive in today’scomputer systems it is difficult to
imagine processors without them. The active portionsof the
program and data are placed in a fast small memory access
time can be reduced, thus reducing the total execution time
of the program. Such a fast small memory is referred to as a
cache memory. The CPU uses cache memory to store
instructionsthat are repeatedly required to run programs,
improving overall system speed. The cache is the fastest
component in memory hierarchy and approachesthe speed
of CPU components.Cache built into the CPU itself is referred
to as Level 1 (L1) cache. Cache that resides on a separate chip
next to the CPU is called Level 2 (L2) cache. Some CPUs have
both L1 and L2 cache built-inand designate the separate
cache chip as Level 3 (L3) cache.
When an applicationstarts or data is to be read/written or
any operation is to be performed then the data and
commands associated with the specific operationare shifted
from a slow moving storage device (magnetic device - hard
disk, opticaldevice – CD drive etc.) to a faster device. This
faster device is RAM – Random Access Memory. ThisRAM is
type of DRAM (Dynamic Random Access Memory). RAM is
placed here because it is a faster device, and whenever data/
commands/instructionsare needed by Processor, they
provide them at a faster rate than slow storage devices. They
serve as a cache memory for the storage devices. Although
they are much faster than slow storage device but the
processor processes at much a faster pace and they are not
able to provide the needed data/instructionsat that rate. So
there is need of a device that is faster than RAM which could
keep up with the speed of processor needs. Therefore the
data required is transmitted to the next level of fast memory,
which is known as CACHE memory. CACHE is also a type of
RAM, but it is Static RAM – SRAM. SRAM are faster and
costlier then DRAM because it has flip-flops(6 transistors) to
store data unlikeDRAM which uses 1 transistor and capacitor
to store data in form of charge. Moreover they need not be
refreshed periodically(because of bistable latching circuitry)
unlike DRAM making it faster.
Organization:-Cache row entries usuallyhave the
following structure
tag data block flag bits
The data block (cache line) containsthe actual data fetched
from the main memory. The tag contains(part of) the
address of the actualdata fetched from the main memory.
The flag bits are discussed below.
The "size" of the cache is the amount of main memory data it
can hold. Thissize can be calculatedas the number of bytes
stored in each data block times the number of blocks stored
in the cache. (The number of tag and flag bits is irrelevant to
this calculation,althoughit does affect the physical area of a
cache.)
An effective memory address is split (MSB to LSB) into the
tag, the index and the block offset.
tag Index block offset
The indexdescribes which cache row (which cache line) that
the data has been put in. The indexlength is bits
for r cache rows. The block offset specifies the desired data
within the stored data block within the cache row. Typically
the effective address is in bytes, so the block offset length
is bits, where b is the number of bytes per data block.
The tag containsthe most significant bits of the address,
which are checked against the current row (the row has been
retrieved by index) to see if it is the one we need or another,
irrelevant memory locationthat happenedto have the same
index bits as the one we want. The tag length in bits is
address_length - index_length - block_offset_length.
Some authors refer to the block offset as simply the "offset"
or the "displacement".
Nehalem Architecture:-
The predecessor to Nehalem,Intel’s Core architecture, made
use of multiplecores on a single die to improve performance
over traditionalsingle-core architectures. But as more cores
and processors were added to a high-performance system,
some serious weaknesses and bandwidthbottlenecks began
to appear. After the initialgeneration of dual-core Core
processors, Intel began a Core 2 series processor which was
not much more than using two or more pairs of dual-core
dies. The cores communicatedvia system memory which
caused large delaysdue to limitedbandwidthon the
processor bus. Adding more cores increased the burden on
the processor and memory buses, which diminishedthe
performance gains that couldbe possible with more cores.
Optimization:-Data access optimizationsare code
transformations which change the order in which iterations
in a loop nest are executed. The goal of these
transformations is mainly to improve temporal locality.
Moreover, they can also expose parallelismand make loop
iterationsvectorizable. Note that the data access
optimizationswe present in this section maintainall data
dependenciesand do not change the results of the numerical
computations1.Usually,it is difficult to decide which
combinationof transformations must be appliedin order to
achieve a maximum performance gain.
A number of cache optimizationtechniques that were
implemented in single core processors were successfully
implemented in multi core processors. Multi-levelcache with
the current structure of two-level has been implemented
since the very first multi core processor visualized in (Fig.1).
In this configuration,the first-level cache is private to each
core and coherence is maintainedbetween them with MESI
or MOESI protocols (Villa,F.J., et al., 2005). The second-level
cache has been implemented with different design optionsin
variousarchitectures. In general, the second-level cache is
shared among all cores with a number of optimizationsto be
discussed in this section.
Conclusion:-In this paper we came to know about Cache
memories play a significant role in improving the
performance of today’scomputer systems. Numerous
techniques for the use of caches and for maintaining
coherent data have been proposed and implemented in
commercial SMP systems. Then we gave a glance on
organisationof cache memory in Nehalemarchitecture.
Several of the basic optimizationtechniquescan
automaticallybe introduced by optimizingcompilers, most of
the tuning effort is left to the programmer. Further the
research is going on how to use cache in significant way. The
research on cache memories is very active. Furthermore
research is currently active on the use of cache memories in
fully distributed systems, includingweb-based computing.
References:-

More Related Content

What's hot

Cache memory
Cache memoryCache memory
Cache memory
Anuj Modi
 
Cache performance considerations
Cache performance considerationsCache performance considerations
Cache performance considerations
Slideshare
 

What's hot (20)

Overview of Distributed Systems
Overview of Distributed SystemsOverview of Distributed Systems
Overview of Distributed Systems
 
Cache memory
Cache memoryCache memory
Cache memory
 
Cache memory
Cache memoryCache memory
Cache memory
 
Interleaved memory
Interleaved memoryInterleaved memory
Interleaved memory
 
cache
cachecache
cache
 
Cache memory
Cache memory Cache memory
Cache memory
 
Cache memory
Cache memoryCache memory
Cache memory
 
Multiprocessor
MultiprocessorMultiprocessor
Multiprocessor
 
PowerAlluxio
PowerAlluxioPowerAlluxio
PowerAlluxio
 
Multiprocessor system
Multiprocessor system Multiprocessor system
Multiprocessor system
 
Cache performance considerations
Cache performance considerationsCache performance considerations
Cache performance considerations
 
OSCh9
OSCh9OSCh9
OSCh9
 
Multiprocessing operating systems
Multiprocessing operating systemsMultiprocessing operating systems
Multiprocessing operating systems
 
Cache memory
Cache memoryCache memory
Cache memory
 
Cache memory and cache
Cache memory and cacheCache memory and cache
Cache memory and cache
 
Cache Memory Computer Architecture and organization
Cache Memory Computer Architecture and organizationCache Memory Computer Architecture and organization
Cache Memory Computer Architecture and organization
 
Cache memory
Cache memoryCache memory
Cache memory
 
Intel's Nehalem Microarchitecture by Glenn Hinton
Intel's Nehalem Microarchitecture by Glenn HintonIntel's Nehalem Microarchitecture by Glenn Hinton
Intel's Nehalem Microarchitecture by Glenn Hinton
 
Parallel processing
Parallel processingParallel processing
Parallel processing
 
Cache memory ...
Cache memory ...Cache memory ...
Cache memory ...
 

Viewers also liked

Cache optimization
Cache optimizationCache optimization
Cache optimization
Kavi Kathir
 
Cache Optimization with Akamai
Cache Optimization with AkamaiCache Optimization with Akamai
Cache Optimization with Akamai
Blake Crosby
 
Memory technology and optimization in Advance Computer Architechture
Memory technology and optimization in Advance Computer ArchitechtureMemory technology and optimization in Advance Computer Architechture
Memory technology and optimization in Advance Computer Architechture
Shweta Ghate
 
Classification of memory hierarchy in system unit
Classification of memory hierarchy in system unitClassification of memory hierarchy in system unit
Classification of memory hierarchy in system unit
Deepjyoti Talukdar
 
Patterns of Enterprise Application Architecture (by example)
Patterns of Enterprise Application Architecture (by example)Patterns of Enterprise Application Architecture (by example)
Patterns of Enterprise Application Architecture (by example)
Paulo Gandra de Sousa
 

Viewers also liked (9)

Cache Design for an Alpha Microprocessor
Cache Design for an Alpha MicroprocessorCache Design for an Alpha Microprocessor
Cache Design for an Alpha Microprocessor
 
Лекция 4. Оптимизация доступа к памяти (Memory access optimization, cache opt...
Лекция 4. Оптимизация доступа к памяти (Memory access optimization, cache opt...Лекция 4. Оптимизация доступа к памяти (Memory access optimization, cache opt...
Лекция 4. Оптимизация доступа к памяти (Memory access optimization, cache opt...
 
Domain logic patterns of Software Architecture
Domain logic patterns of Software ArchitectureDomain logic patterns of Software Architecture
Domain logic patterns of Software Architecture
 
Cache optimization
Cache optimizationCache optimization
Cache optimization
 
Cache Optimization with Akamai
Cache Optimization with AkamaiCache Optimization with Akamai
Cache Optimization with Akamai
 
Memory technology and optimization in Advance Computer Architechture
Memory technology and optimization in Advance Computer ArchitechtureMemory technology and optimization in Advance Computer Architechture
Memory technology and optimization in Advance Computer Architechture
 
Memory Hierarchy Design, Basics, Cache Optimization, Address Translation
Memory Hierarchy Design, Basics, Cache Optimization, Address TranslationMemory Hierarchy Design, Basics, Cache Optimization, Address Translation
Memory Hierarchy Design, Basics, Cache Optimization, Address Translation
 
Classification of memory hierarchy in system unit
Classification of memory hierarchy in system unitClassification of memory hierarchy in system unit
Classification of memory hierarchy in system unit
 
Patterns of Enterprise Application Architecture (by example)
Patterns of Enterprise Application Architecture (by example)Patterns of Enterprise Application Architecture (by example)
Patterns of Enterprise Application Architecture (by example)
 

Similar to Cache memory

Cache performance-x86-2009
Cache performance-x86-2009Cache performance-x86-2009
Cache performance-x86-2009
Léia de Sousa
 
Co question bank LAKSHMAIAH
Co question bank LAKSHMAIAH Co question bank LAKSHMAIAH
Co question bank LAKSHMAIAH
veena babu
 
cachememory-210517060741 (1).pdf
cachememory-210517060741 (1).pdfcachememory-210517060741 (1).pdf
cachememory-210517060741 (1).pdf
OmGadekar2
 
Dominant block guided optimal cache size estimation to maximize ipc of embedd...
Dominant block guided optimal cache size estimation to maximize ipc of embedd...Dominant block guided optimal cache size estimation to maximize ipc of embedd...
Dominant block guided optimal cache size estimation to maximize ipc of embedd...
ijesajournal
 
Dominant block guided optimal cache size estimation to maximize ipc of embedd...
Dominant block guided optimal cache size estimation to maximize ipc of embedd...Dominant block guided optimal cache size estimation to maximize ipc of embedd...
Dominant block guided optimal cache size estimation to maximize ipc of embedd...
ijesajournal
 
Virtual Memory vs Cache Memory
Virtual Memory vs Cache MemoryVirtual Memory vs Cache Memory
Virtual Memory vs Cache Memory
Ashik Iqbal
 
UNIT 3 Memory Design for SOC.ppUNIT 3 Memory Design for SOC.pptx
UNIT 3 Memory Design for SOC.ppUNIT 3 Memory Design for SOC.pptxUNIT 3 Memory Design for SOC.ppUNIT 3 Memory Design for SOC.pptx
UNIT 3 Memory Design for SOC.ppUNIT 3 Memory Design for SOC.pptx
SnehaLatha68
 

Similar to Cache memory (20)

Cache performance-x86-2009
Cache performance-x86-2009Cache performance-x86-2009
Cache performance-x86-2009
 
DESIGNED DYNAMIC SEGMENTED LRU AND MODIFIED MOESI PROTOCOL FOR RING CONNECTED...
DESIGNED DYNAMIC SEGMENTED LRU AND MODIFIED MOESI PROTOCOL FOR RING CONNECTED...DESIGNED DYNAMIC SEGMENTED LRU AND MODIFIED MOESI PROTOCOL FOR RING CONNECTED...
DESIGNED DYNAMIC SEGMENTED LRU AND MODIFIED MOESI PROTOCOL FOR RING CONNECTED...
 
Ijiret archana-kv-increasing-memory-performance-using-cache-optimizations-in-...
Ijiret archana-kv-increasing-memory-performance-using-cache-optimizations-in-...Ijiret archana-kv-increasing-memory-performance-using-cache-optimizations-in-...
Ijiret archana-kv-increasing-memory-performance-using-cache-optimizations-in-...
 
Multi-Core on Chip Architecture *doc - IK
Multi-Core on Chip Architecture *doc - IKMulti-Core on Chip Architecture *doc - IK
Multi-Core on Chip Architecture *doc - IK
 
Computer architecture
Computer architectureComputer architecture
Computer architecture
 
IEEExeonmem
IEEExeonmemIEEExeonmem
IEEExeonmem
 
Co question bank LAKSHMAIAH
Co question bank LAKSHMAIAH Co question bank LAKSHMAIAH
Co question bank LAKSHMAIAH
 
Cache Memory
Cache MemoryCache Memory
Cache Memory
 
cachememory-210517060741 (1).pdf
cachememory-210517060741 (1).pdfcachememory-210517060741 (1).pdf
cachememory-210517060741 (1).pdf
 
Cpu caching concepts mr mahesh
Cpu caching concepts mr maheshCpu caching concepts mr mahesh
Cpu caching concepts mr mahesh
 
Design and Implementation of a Cache Hierarchy-Aware Task Scheduling for Para...
Design and Implementation of a Cache Hierarchy-Aware Task Scheduling for Para...Design and Implementation of a Cache Hierarchy-Aware Task Scheduling for Para...
Design and Implementation of a Cache Hierarchy-Aware Task Scheduling for Para...
 
Architecture and implementation issues of multi core processors and caching –...
Architecture and implementation issues of multi core processors and caching –...Architecture and implementation issues of multi core processors and caching –...
Architecture and implementation issues of multi core processors and caching –...
 
Dominant block guided optimal cache size estimation to maximize ipc of embedd...
Dominant block guided optimal cache size estimation to maximize ipc of embedd...Dominant block guided optimal cache size estimation to maximize ipc of embedd...
Dominant block guided optimal cache size estimation to maximize ipc of embedd...
 
Dominant block guided optimal cache size estimation to maximize ipc of embedd...
Dominant block guided optimal cache size estimation to maximize ipc of embedd...Dominant block guided optimal cache size estimation to maximize ipc of embedd...
Dominant block guided optimal cache size estimation to maximize ipc of embedd...
 
Virtual Memory vs Cache Memory
Virtual Memory vs Cache MemoryVirtual Memory vs Cache Memory
Virtual Memory vs Cache Memory
 
Cache Memory.pptx
Cache Memory.pptxCache Memory.pptx
Cache Memory.pptx
 
shashank_hpca1995_00386533
shashank_hpca1995_00386533shashank_hpca1995_00386533
shashank_hpca1995_00386533
 
CPU Caching Concepts
CPU Caching ConceptsCPU Caching Concepts
CPU Caching Concepts
 
Cache memory
Cache memoryCache memory
Cache memory
 
UNIT 3 Memory Design for SOC.ppUNIT 3 Memory Design for SOC.pptx
UNIT 3 Memory Design for SOC.ppUNIT 3 Memory Design for SOC.pptxUNIT 3 Memory Design for SOC.ppUNIT 3 Memory Design for SOC.pptx
UNIT 3 Memory Design for SOC.ppUNIT 3 Memory Design for SOC.pptx
 

Recently uploaded

Escorts Service Sanjay Nagar ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Sanjay Nagar ☎ 7737669865☎ Book Your One night Stand (Bangalore)Escorts Service Sanjay Nagar ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Sanjay Nagar ☎ 7737669865☎ Book Your One night Stand (Bangalore)
amitlee9823
 
Makarba ( Call Girls ) Ahmedabad ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Rea...
Makarba ( Call Girls ) Ahmedabad ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Rea...Makarba ( Call Girls ) Ahmedabad ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Rea...
Makarba ( Call Girls ) Ahmedabad ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Rea...
Naicy mandal
 
(👉Ridhima)👉VIP Model Call Girls Mulund ( Mumbai) Call ON 9967824496 Starting ...
(👉Ridhima)👉VIP Model Call Girls Mulund ( Mumbai) Call ON 9967824496 Starting ...(👉Ridhima)👉VIP Model Call Girls Mulund ( Mumbai) Call ON 9967824496 Starting ...
(👉Ridhima)👉VIP Model Call Girls Mulund ( Mumbai) Call ON 9967824496 Starting ...
motiram463
 
一比一原版(nyu毕业证书)纽约大学毕业证学历认证靠谱办理
一比一原版(nyu毕业证书)纽约大学毕业证学历认证靠谱办理一比一原版(nyu毕业证书)纽约大学毕业证学历认证靠谱办理
一比一原版(nyu毕业证书)纽约大学毕业证学历认证靠谱办理
bbhul52a
 
CHEAP Call Girls in Hauz Quazi (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Hauz Quazi  (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Hauz Quazi  (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Hauz Quazi (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
CHEAP Call Girls in Ashok Nagar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Ashok Nagar  (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Ashok Nagar  (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Ashok Nagar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
怎样办理圣芭芭拉分校毕业证(UCSB毕业证书)成绩单留信认证
怎样办理圣芭芭拉分校毕业证(UCSB毕业证书)成绩单留信认证怎样办理圣芭芭拉分校毕业证(UCSB毕业证书)成绩单留信认证
怎样办理圣芭芭拉分校毕业证(UCSB毕业证书)成绩单留信认证
ehyxf
 
CALL GIRLS IN Saket 83778-77756 | Escort Service In DELHI NcR
CALL GIRLS IN Saket 83778-77756 | Escort Service In DELHI NcRCALL GIRLS IN Saket 83778-77756 | Escort Service In DELHI NcR
CALL GIRLS IN Saket 83778-77756 | Escort Service In DELHI NcR
dollysharma2066
 
Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...
Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...
Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...
drmarathore
 
Call Girls Banashankari Just Call 👗 7737669865 👗 Top Class Call Girl Service ...
Call Girls Banashankari Just Call 👗 7737669865 👗 Top Class Call Girl Service ...Call Girls Banashankari Just Call 👗 7737669865 👗 Top Class Call Girl Service ...
Call Girls Banashankari Just Call 👗 7737669865 👗 Top Class Call Girl Service ...
amitlee9823
 

Recently uploaded (20)

Escorts Service Sanjay Nagar ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Sanjay Nagar ☎ 7737669865☎ Book Your One night Stand (Bangalore)Escorts Service Sanjay Nagar ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Escorts Service Sanjay Nagar ☎ 7737669865☎ Book Your One night Stand (Bangalore)
 
(=Towel) Dubai Call Girls O525547819 Call Girls In Dubai (Fav0r)
(=Towel) Dubai Call Girls O525547819 Call Girls In Dubai (Fav0r)(=Towel) Dubai Call Girls O525547819 Call Girls In Dubai (Fav0r)
(=Towel) Dubai Call Girls O525547819 Call Girls In Dubai (Fav0r)
 
HLH PPT.ppt very important topic to discuss
HLH PPT.ppt very important topic to discussHLH PPT.ppt very important topic to discuss
HLH PPT.ppt very important topic to discuss
 
Makarba ( Call Girls ) Ahmedabad ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Rea...
Makarba ( Call Girls ) Ahmedabad ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Rea...Makarba ( Call Girls ) Ahmedabad ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Rea...
Makarba ( Call Girls ) Ahmedabad ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Rea...
 
(👉Ridhima)👉VIP Model Call Girls Mulund ( Mumbai) Call ON 9967824496 Starting ...
(👉Ridhima)👉VIP Model Call Girls Mulund ( Mumbai) Call ON 9967824496 Starting ...(👉Ridhima)👉VIP Model Call Girls Mulund ( Mumbai) Call ON 9967824496 Starting ...
(👉Ridhima)👉VIP Model Call Girls Mulund ( Mumbai) Call ON 9967824496 Starting ...
 
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
一比一原版(nyu毕业证书)纽约大学毕业证学历认证靠谱办理
一比一原版(nyu毕业证书)纽约大学毕业证学历认证靠谱办理一比一原版(nyu毕业证书)纽约大学毕业证学历认证靠谱办理
一比一原版(nyu毕业证书)纽约大学毕业证学历认证靠谱办理
 
CHEAP Call Girls in Hauz Quazi (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Hauz Quazi  (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Hauz Quazi  (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Hauz Quazi (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
CHEAP Call Girls in Ashok Nagar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Ashok Nagar  (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Ashok Nagar  (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Ashok Nagar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
VVIP Pune Call Girls Warje (7001035870) Pune Escorts Nearby with Complete Sat...
VVIP Pune Call Girls Warje (7001035870) Pune Escorts Nearby with Complete Sat...VVIP Pune Call Girls Warje (7001035870) Pune Escorts Nearby with Complete Sat...
VVIP Pune Call Girls Warje (7001035870) Pune Escorts Nearby with Complete Sat...
 
Top Rated Pune Call Girls Shirwal ⟟ 6297143586 ⟟ Call Me For Genuine Sex Ser...
Top Rated  Pune Call Girls Shirwal ⟟ 6297143586 ⟟ Call Me For Genuine Sex Ser...Top Rated  Pune Call Girls Shirwal ⟟ 6297143586 ⟟ Call Me For Genuine Sex Ser...
Top Rated Pune Call Girls Shirwal ⟟ 6297143586 ⟟ Call Me For Genuine Sex Ser...
 
怎样办理圣芭芭拉分校毕业证(UCSB毕业证书)成绩单留信认证
怎样办理圣芭芭拉分校毕业证(UCSB毕业证书)成绩单留信认证怎样办理圣芭芭拉分校毕业证(UCSB毕业证书)成绩单留信认证
怎样办理圣芭芭拉分校毕业证(UCSB毕业证书)成绩单留信认证
 
(ISHITA) Call Girls Service Aurangabad Call Now 8617697112 Aurangabad Escorts...
(ISHITA) Call Girls Service Aurangabad Call Now 8617697112 Aurangabad Escorts...(ISHITA) Call Girls Service Aurangabad Call Now 8617697112 Aurangabad Escorts...
(ISHITA) Call Girls Service Aurangabad Call Now 8617697112 Aurangabad Escorts...
 
CALL GIRLS IN Saket 83778-77756 | Escort Service In DELHI NcR
CALL GIRLS IN Saket 83778-77756 | Escort Service In DELHI NcRCALL GIRLS IN Saket 83778-77756 | Escort Service In DELHI NcR
CALL GIRLS IN Saket 83778-77756 | Escort Service In DELHI NcR
 
Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...
Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...
Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...
 
Call Girls Banashankari Just Call 👗 7737669865 👗 Top Class Call Girl Service ...
Call Girls Banashankari Just Call 👗 7737669865 👗 Top Class Call Girl Service ...Call Girls Banashankari Just Call 👗 7737669865 👗 Top Class Call Girl Service ...
Call Girls Banashankari Just Call 👗 7737669865 👗 Top Class Call Girl Service ...
 
Book Paid Lohegaon Call Girls Pune 8250192130Low Budget Full Independent High...
Book Paid Lohegaon Call Girls Pune 8250192130Low Budget Full Independent High...Book Paid Lohegaon Call Girls Pune 8250192130Low Budget Full Independent High...
Book Paid Lohegaon Call Girls Pune 8250192130Low Budget Full Independent High...
 
9892124323 Pooja Nehwal Call Girls Services Call Girls service in Santacruz A...
9892124323 Pooja Nehwal Call Girls Services Call Girls service in Santacruz A...9892124323 Pooja Nehwal Call Girls Services Call Girls service in Santacruz A...
9892124323 Pooja Nehwal Call Girls Services Call Girls service in Santacruz A...
 
VVIP Pune Call Girls Balaji Nagar (7001035870) Pune Escorts Nearby with Compl...
VVIP Pune Call Girls Balaji Nagar (7001035870) Pune Escorts Nearby with Compl...VVIP Pune Call Girls Balaji Nagar (7001035870) Pune Escorts Nearby with Compl...
VVIP Pune Call Girls Balaji Nagar (7001035870) Pune Escorts Nearby with Compl...
 
Shikrapur Call Girls Most Awaited Fun 6297143586 High Profiles young Beautie...
Shikrapur Call Girls Most Awaited Fun  6297143586 High Profiles young Beautie...Shikrapur Call Girls Most Awaited Fun  6297143586 High Profiles young Beautie...
Shikrapur Call Girls Most Awaited Fun 6297143586 High Profiles young Beautie...
 

Cache memory

  • 1. Cache Memory Abstract:-This research paper investigatesabout cache memory and its organizationand optimization.Theearly beginningpart of the paper makes you familiarwith the term cache. Further ahead, the paper covers the importance of cache optimization in microprocessors and cache organisationin Intel Nehalem Computer Architecture. Introduction:-The use of cache memories are so pervasive in today’scomputer systems it is difficult to imagine processors without them. The active portionsof the program and data are placed in a fast small memory access time can be reduced, thus reducing the total execution time of the program. Such a fast small memory is referred to as a cache memory. The CPU uses cache memory to store instructionsthat are repeatedly required to run programs, improving overall system speed. The cache is the fastest component in memory hierarchy and approachesthe speed of CPU components.Cache built into the CPU itself is referred to as Level 1 (L1) cache. Cache that resides on a separate chip next to the CPU is called Level 2 (L2) cache. Some CPUs have both L1 and L2 cache built-inand designate the separate cache chip as Level 3 (L3) cache.
  • 2. When an applicationstarts or data is to be read/written or any operation is to be performed then the data and commands associated with the specific operationare shifted from a slow moving storage device (magnetic device - hard disk, opticaldevice – CD drive etc.) to a faster device. This faster device is RAM – Random Access Memory. ThisRAM is type of DRAM (Dynamic Random Access Memory). RAM is placed here because it is a faster device, and whenever data/ commands/instructionsare needed by Processor, they provide them at a faster rate than slow storage devices. They serve as a cache memory for the storage devices. Although they are much faster than slow storage device but the processor processes at much a faster pace and they are not able to provide the needed data/instructionsat that rate. So there is need of a device that is faster than RAM which could keep up with the speed of processor needs. Therefore the
  • 3. data required is transmitted to the next level of fast memory, which is known as CACHE memory. CACHE is also a type of RAM, but it is Static RAM – SRAM. SRAM are faster and costlier then DRAM because it has flip-flops(6 transistors) to store data unlikeDRAM which uses 1 transistor and capacitor to store data in form of charge. Moreover they need not be refreshed periodically(because of bistable latching circuitry) unlike DRAM making it faster. Organization:-Cache row entries usuallyhave the following structure tag data block flag bits The data block (cache line) containsthe actual data fetched from the main memory. The tag contains(part of) the address of the actualdata fetched from the main memory. The flag bits are discussed below.
  • 4. The "size" of the cache is the amount of main memory data it can hold. Thissize can be calculatedas the number of bytes stored in each data block times the number of blocks stored in the cache. (The number of tag and flag bits is irrelevant to this calculation,althoughit does affect the physical area of a cache.) An effective memory address is split (MSB to LSB) into the tag, the index and the block offset. tag Index block offset The indexdescribes which cache row (which cache line) that the data has been put in. The indexlength is bits for r cache rows. The block offset specifies the desired data within the stored data block within the cache row. Typically the effective address is in bytes, so the block offset length is bits, where b is the number of bytes per data block. The tag containsthe most significant bits of the address, which are checked against the current row (the row has been retrieved by index) to see if it is the one we need or another, irrelevant memory locationthat happenedto have the same index bits as the one we want. The tag length in bits is address_length - index_length - block_offset_length. Some authors refer to the block offset as simply the "offset" or the "displacement". Nehalem Architecture:- The predecessor to Nehalem,Intel’s Core architecture, made use of multiplecores on a single die to improve performance over traditionalsingle-core architectures. But as more cores and processors were added to a high-performance system, some serious weaknesses and bandwidthbottlenecks began
  • 5. to appear. After the initialgeneration of dual-core Core processors, Intel began a Core 2 series processor which was not much more than using two or more pairs of dual-core dies. The cores communicatedvia system memory which caused large delaysdue to limitedbandwidthon the processor bus. Adding more cores increased the burden on the processor and memory buses, which diminishedthe performance gains that couldbe possible with more cores. Optimization:-Data access optimizationsare code transformations which change the order in which iterations in a loop nest are executed. The goal of these transformations is mainly to improve temporal locality. Moreover, they can also expose parallelismand make loop iterationsvectorizable. Note that the data access optimizationswe present in this section maintainall data dependenciesand do not change the results of the numerical computations1.Usually,it is difficult to decide which combinationof transformations must be appliedin order to achieve a maximum performance gain. A number of cache optimizationtechniques that were implemented in single core processors were successfully implemented in multi core processors. Multi-levelcache with the current structure of two-level has been implemented since the very first multi core processor visualized in (Fig.1). In this configuration,the first-level cache is private to each core and coherence is maintainedbetween them with MESI or MOESI protocols (Villa,F.J., et al., 2005). The second-level cache has been implemented with different design optionsin
  • 6. variousarchitectures. In general, the second-level cache is shared among all cores with a number of optimizationsto be discussed in this section. Conclusion:-In this paper we came to know about Cache memories play a significant role in improving the performance of today’scomputer systems. Numerous techniques for the use of caches and for maintaining coherent data have been proposed and implemented in commercial SMP systems. Then we gave a glance on organisationof cache memory in Nehalemarchitecture. Several of the basic optimizationtechniquescan automaticallybe introduced by optimizingcompilers, most of the tuning effort is left to the programmer. Further the research is going on how to use cache in significant way. The research on cache memories is very active. Furthermore
  • 7. research is currently active on the use of cache memories in fully distributed systems, includingweb-based computing. References:-