Please enable JavaScript.
Coggle requires JavaScript to display documents.
The locality principle (Applications (Design of caches, Spam blocking,…
The locality principle
Main ideas
-
The locality sets can be inferred by applying a distance function to a program’s address trace observed during a backward window
Distance function
D(x,t)
-
Object x is in the locality set at time t if the distance is less than a threshold: D(x,t) <= T.
-
Memory management is optimal when it guarantees each program that its locality sets will be present in high-speed memory
-
-
Sources
Virtual memory
-
-
-
Innovation
It was transformed to a robust technology that regulated itself dynamically and optimized throughput without user intervention
Introduced the concept of addresses naming values, not memory locations
Experiments
-
No notion of a dynamic, intrinsic memory demand that would tell which pages were essential and which were replaceable
Queueing network model
Idea
-
The server processes a job for a random service time and then sends it to another server according to a probability distribution for the inter-server transition
-
Problem
The thrashing curve is actually the system doing the best it can as the paging-disk bottleneck worsens with increasing load
-
Key concepts
-
-
-
Thrashing
-
-
It can happen in any system where contention for a shared resource can overwhelm the processes’ abilities to move forward
-
Locality
Observed tendency of programs to cluster references to small subsets of their pages for extended intervals
-
-