Commit-LSN: a novel and simple method for reducing locking and latching in transaction processing systems

C. Mohan · 1990

mnha/vr~lhm.com Abstract This paper presents a novel and simple method, called CommitYLSN, for determining if a piece of data is in the commltted state in a transaction pro-cessing system. This method is a much cheaper alter-native to the locking approach used by the prior art for this purpose. The method takes advantage of the concept of a log sequence number (LSN). In many systems. an LSN is recorded in each page of the data base to relate the state of the page to the log of update actions for that page. Our method uses information about the LSN of the first log record (call it Commit-LSN) of the oldest update transaction still executing in the system to infer that all the updates in pages with page_LSN less than Commit LSN have been committed. This reduces locking and latching. In addition. the method may also increase the level of concurrency that could be supported. The Commit LSN method makes it possible to use fine-granulazty locking without unduly penalizing transactions which read numerous records. It also benefits update transactions by reducing the cost of fine-granularity lock-ing when contention is not present for data on a page. We discuss in detail many applications of this method and illustrate its potential benefits for various environ-ments. In order to apply the Commit-LSN method, ex-tensions are also proposed for those systems in which (1) LSNs are not associated with pages (AS1400, ’ SQLIDS, System R), (2) LSNs are used only partially (IMS), and/or (3) not all objects ’ changes are logged (AS1400, SQL/DS. System R). 1.

Read the paper · More papers on PaperTik