350 likes | 494 Views
Linearizable Implementations Do Not Suffice For Randomized Distributed Computation Wojciech Golab , Lisa Higham , Philipp Woelfel. Erez Druk Seminar in Distributed Algorithms, 10/6/13. Overview. Motivation Preliminaries Main Theorem Good to Know Conclusion Questions. Motivation.
E N D
Linearizable Implementations Do Not Suffice For Randomized Distributed ComputationWojciechGolab, Lisa Higham, Philipp Woelfel ErezDruk Seminar in Distributed Algorithms, 10/6/13
Overview • Motivation • Preliminaries • Main Theorem • Good to Know • Conclusion • Questions
Motivation • Linearizability • Simplicity • Correctness • Intuitive • Local & Composable • Useful
Motivation • Randomization • Simplicity • Achieves the impossible • Natural • Cool
The Big Question • Can we combine the two? NO!
An Example • is a register initialized to • An adversary tries to minimize the value that reads
An Example • When is atomic • The expected value of ’s is at least
An Example • When is implemented via atomic bits [Vid88] 1 1 0 0 0 0
An Example • When is implemented via atomic bits [Vid88] 0 1 1 1 1 1 0 0 0 0 0 0/1 Start reading Finish reading • The expected value of ’s is
Another Example • have access to a shared snapshot object • An adversary tries to minimize the some of values that observes
Another Example • Atmoic • The expected value of ’s is
Another Example • Linearizableimplementation [AADGMS93] • Wait for two identical collects, or • Burrow from a process which updated twice • Scan • Write the whole snapshot
Another Example • Linearizable implementation [AADGMS93] • The expected value of ’s is
Some definitions • A coin flip vector is an infinite binary vector • An adversary is a function from past coin flips to the set of processes • An history is a sequence of steps of processes • An history is sequential if it is sequential • An history is linearizable if there is a sequential history that agrees with it • denotes the prefix-closure of a set of histories • is the history formed by running algorithm with adversary and coin flips vector
Some definitions • and are equivalent if for any there exists a sequential history that is a linearization of both and • For convenience we denote
Goal • Fix the following theorem • Let be an algorithm that uses atomic objects and be obtained from by replacing some objects with linearizable implementations. Then for any there exists such that and are equivalent
Strong Linearizability • A set of histories is strongly linearizable if there exists a function mapping of histories in to sequential histories such that • is a linearization of • is prefix preserving • A shared object is strongly linearizable if its set of histories is strongly linearizable • From here on is obtained from by replacing some object with their strongly linearizable implementation
Main Theorem • For every adversary there exists an adversary such that and are equivalent.
For every adversary there exists an adversary such that and are equivalent. Main Theorem- Proof • Need to find such that and are simultaneously linearizable • is already sequential • How can we guarantee that is a linearization of ? (hint: use the assumptions!) • Let • Need such that • Define to be the schedule of
For every adversary there exists an adversary such that and are equivalent. Main Theorem- Proof : :
For every adversary there exists an adversary such that and are equivalent. Main Theorem- Proof • Done? • What is ? • Locality – A set of strongly linearizable objects is strongly linearizable
Locality Lemma • Highly Technical • Induction on • are the histories of length at most • is good for
Locality Lemma - from With : : With : Define
For every adversary there exists an adversary such that and are equivalent. Main Theorem- Proof • Done? • is not allowed to cheat
For every adversary there exists an adversary such that and are equivalent. Main Theorem- Proof : : : :
For every adversary there exists an adversary such that and are equivalent. Main Theorem- Proof • Fix • Move coin flips to the earliest point possible : : : :
For every adversary there exists an adversary such that and are equivalent. Main Theorem- Proof • is good if is used • Done? Yes!
Strong Linearizability is Necessary • If and are equivalent then is strongly linearizable
Necessity • If and are equivalent then is strongly linearizable • Should linearize • and have the same linearization • is already linearized • Define
Necessity • If and are equivalent then is strongly linearizable • Done? • must map all : : : :
Necessity • If and are equivalent then is strongly linearizable • Done? • depends on the choice of • Lemma: No it doesn’t • The theorem follows
Good to Know • Composability • Weak Adversaries • Feasibility • Proof techniques
Conclusion • Linearizability & Randomization • Examples • Strong Linearizability • Sufficient • Necessary • Local & Composable • Feasible