Thursday, June 25, 2009

2.STORAGE HIERARCHY

Caching:

->In computer science, a cache (pronounced /kæʃ/) is a collection of data duplicating original values stored elsewhere or computed earlier, where the original data is expensive to fetch (owing to longer access time) or to compute, compared to the cost of reading the cache. In other words, a cache is a temporary storage area where frequently accessed data can be stored for rapid access. Once the data is stored in the cache, it can be used in the future by accessing the cached copy rather than re-fetching or recomputing the original data.

->Most modern microprocessors contain some form of instruction and data caching where a small but fast bit of memory is used to speed up access to main memory. At its simplest level, a cache can pre-load blocks of memory from main memory so that the processor need not stall when performing a load. This is possible because (a) a processor usually accesses sequential memory locations and (b) loading more than one sequential memory location at the same time is faster than loading each sequential memory location one by one. Hence when the processor accesses an uncached bit of memory, the cache reads a full cache line in the hope it will be used (which it usually is).
Again at its simplest level, a cache must be write-through cache whenever the processor performs a write to main memory. Quite simply, when the write is performed, the relevant cache entry is updated, and a write to main memory is issued. One could say that cache coherency has been maintained ie; the cache accurately reflects the contents of main memory.


Coherency and Consistency:

->(Or "cache consistency") /kash koh-heer'n-see/ The synchronisation of data in multiple caches such that reading a memory location via any cache will return the most recent data written to that location via any (other) cache.Some parallel processors do not cache accesses to shared memory to avoid the issue of cache coherency. If caches are used with shared memory then some system is required to detect when data in one processor's cache should be discarded or replaced because another processor has updated that memory location. Several such schemes have been devised. Coherency defines what value is returned on a read.
->Consistency defines when it is available.

1 comment:

CRKB IT SOLUTION PVT LTD said...

Always look forward for such nice post & finally I got you. Really very impressive post & glad to read this.
Best Architects in Indore
Best Interior designers in indore

i heard about this blog & get actually whateveri was finding. Nice post love to read this blog
Approved Auditor in DAFZA
Approved Auditor in RAKEZ
flaxseed oil
Approved Auditor in JAFZA
Approved Auditor in DMCC


I always search such wonderful blog and after so many efforts finally I got you. Keep writing the same
Pharmacy home delivery in UAE
Pharmacy near Business Bay