Docsity

Implementing Global Memory in Workstation Cluster | CS 6210, Study notes of Operating Systems

Partial preview of the text

Download Implementing Global Memory in Workstation Cluster | CS 6210 and more Study notes Operating Systems in PDF only on Docsity!

Implementing Global Memory

in Workstation Cluster

Objective

•^

XFS uses aggregate memory of all cluster nodesfor file cache

-^

This paper takes that idea further, to all memoryservices

-^

Local Mm access O(10^3) cheaper than disk.Remote Mm access on fast interconnect clusterstill 5-10x cheaper than disk, so– Keep as much of needed state in global memory– How do you do this in a lightweight manner, don’t

want to make heavy replacement policy decisions

Basic Algorithm

P faults•^

Case 1–

Page in GlMm on Q; swap with a page from P’s GlMm; P’s LcMmincreases, Q’s Gl/LcMm unchanged

-^

Case 2–

Page in GlMm on Q; but P has no global pgs; take P’s LRU local page,and swap with page on Q; balance unchanged

-^

Case 3–

Page on disk; bring it to P’s local; take LRU page in cluster (gl + lc), sayon Q; move that to disk and move one of P’s global pages there

-^

Case 4–

Page is shared and in LcMm on Q; copy page on P; choose oldest pagein cluster, say on R, for disk write; move a global page from P to R

Basic Algorithm

•^

Page Replacement– Epoch, duration T, max pages to be replaced M– On epoch start – Initiator determines MinAge, and

weights each node wi based on #old pages (out of Mto be replaced)

  • If page should be evicted:
    • If older than MinAge then discard• Otherwise send to node i with probability wi
      • if nodes active -> few old pages -> M small -> MinAge

= 0, so always write to disk only, don’t use GSM

Performance