Content deleted Content added
No edit summary Tags: Reverted references removed Visual edit Mobile edit Mobile web edit |
mNo edit summary |
||
(15 intermediate revisions by 15 users not shown) | |||
Line 1:
{{Short description|
{{more citations needed|date=July 2008}}
In [[computer science]], '''locality of reference''', also known as the '''principle of locality''',<ref>Not to be confused with the [[principle of locality]] o=s*v=411##sts in physics.</ref> is the tendency of a processor to access the same set of memory locations repetitively over a short period of time.<ref>{{Cite book|title=Computer organization and architecture : designing for performance|last=William.|first=Stallings|date=2010|publisher=Prentice Hall|isbn=9780136073734|edition= 8th|___location=Upper Saddle River, NJ|oclc=268788976}}</ref> There are two basic types of reference locality {{
Locality is a type of [[predictability|predictable]] behavior that occurs in computer systems. Systems
== Types of locality ==
Line 45:
* L1 [[CPU cache]]s (32 KB to 512 [[kilobyte|KB]]) – fast access, with the speed of the innermost memory bus owned exclusively by each core
* L2 CPU caches (128 KB to 24 [[megabyte|MB]]) – slightly slower access, with the speed of the [[memory bus]] shared between twins of cores
* L3 CPU caches (2 MB up to
* Main [[physical memory]] ([[random-access memory|RAM]]) (256 MB to 64 [[gigabyte|GB]]) – slow access, the speed of which is limited by the spatial distances and general hardware interfaces between the processor and the memory modules on the [[motherboard]]
* Disk ([[virtual memory]], [[file system]]) (1 GB to 256 [[terabyte|TB]]) – very slow, due to the narrower (in bit width), physically much longer data channel between the main board of the computer and the disk devices, and due to the extraneous software protocol needed on the top of the slow hardware interface
Line 124:
* [[Scratchpad memory]]
* [[Working set]]
* [[Heuristic]]
* [[Locality-sensitive hashing]]
== References ==
Line 130 ⟶ 132:
== Bibliography ==
* [[Peter J. Denning]], [http://denninginstitute.com/pjd/PUBS/CACMcols/cacmJul05.pdf "The Locality Principle"], ''Communications of the ACM'', Volume 48, Issue 7, (2005), Pages 19–24
* Peter J. Denning, Stuart C. Schwartz, [http://denninginstitute.com/pjd/PUBS/WSProp_1972.pdf "Properties of the Working-Set Model"], ''Communications of the ACM'', Volume 15, Issue 3 (March 1972), Pages
{{DEFAULTSORT:Locality Of Reference}}
|