• DocumentCode
    2242292
  • Title

    A Discrete Event Simulation Model for Understanding Kernel Lock Thrashing on Multi-core Architectures

  • Author

    Cui, Yan ; Wu, Weiyi ; Wang, Yingxin ; Guo, Xufeng ; Chen, Yu ; Shi, Yuanchun

  • Author_Institution
    Dept. of Comput. Sci. & Technol., Tsinghua Univ., Beijing, China
  • fYear
    2010
  • fDate
    8-10 Dec. 2010
  • Firstpage
    1
  • Lastpage
    8
  • Abstract
    Multi-core architectures have become mainstream. Trends suggest that the number of cores integrated on a single chip will increase continuously. However, lock contention in operating systems can limit the parallel scalability on multi-cores so significantly that the speedup decreases with the increasing number of cores (thrashing). Although the phenomenon can be easily reproduced experimentally, most existing lock models are not able to do so. To overcome this challenge, this paper develops a discrete event simulation model which has the capability of capturing both the sequential execution in critical sections and the contention for shared hardware resources. The model is evaluated using a series of typical parameter configurations which can represent different degrees of lock contention. Experimental results suggest that the thrashing phenomenon can be observed when the model parameters are selected properly. To further understand this phenomenon, statistics such as the percentage of time spent waiting for locks and the number of cores waiting for a lock are exploited to characterize the lock thrashing. In addition, the model sensitivity to changes in memory latency and hardware architectures are also examined. Finally, we use this model to compare three methods which are proposed for preventing the lock thrashing.
  • Keywords
    discrete event simulation; multiprocessing systems; operating systems (computers); parallel architectures; cores thrashing; discrete event simulation model; hardware architectures; kernel lock thrashing; lock contention; memory latency; model parameters; model sensitivity; multicore architectures; multicores; operating systems; parallel scalability; parameter configurations; sequential execution; shared hardware resources; single chip; thrashing phenomenon; time spent waiting for locks; discrete event simulation; multi-core; thrashing;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Parallel and Distributed Systems (ICPADS), 2010 IEEE 16th International Conference on
  • Conference_Location
    Shanghai
  • ISSN
    1521-9097
  • Print_ISBN
    978-1-4244-9727-0
  • Electronic_ISBN
    1521-9097
  • Type

    conf

  • DOI
    10.1109/ICPADS.2010.28
  • Filename
    5695579