使用Solaris DTrace探索Oracle RDBMS锁存器
Exploring Oracle RDBMS latches using Solaris DTrace
摘要:
百核技术的兴起又将数据库引擎中的进程间同步问题提到了第一个方案上来。自旋锁在当代DBMS中被广泛用于以微秒时间尺度同步进程。锁存器是Oracle RDBMS特定的自旋锁。闩锁争用在当代高并发OLTP环境中很常见。与操作系统内核中使用的系统自旋锁不同,锁存器在用户上下文中工作。这种用户级自旋锁受上下文抢占和多任务处理的影响。直到最近,还没有直接的方法来衡量用户自旋锁的有效性。随着Solaris 10动态跟踪框架的出现,这成为可能。DTrace允许跟踪和分析操作系统和用户应用程序。这项工作调查的可能性,诊断和调整Oracle锁存器。探讨了现代锁存器的实现和自旋阻塞策略,分析了相应的统计计数器。开发了一个数学模型,用于分析估计调谐_SPIN_SPINTM值的影响。
英文摘要:
Rise of hundreds cores technologies bring again to the first plan the problem of interprocess synchronization in database engines. Spinlocks are widely used in contemporary DBMS to synchronize processes at microsecond timescale. Latches are Oracle RDBMS specific spinlocks. The latch contention is common to observe in contemporary high concurrency OLTP environments. In contrast to system spinlocks used in operating systems kernels, latches work in user context. Such user level spinlocks are influenced by context preemption and multitasking. Until recently there were no direct methods to measure effectiveness of user spinlocks. This became possible with the emergence of Solaris 10 Dynamic Tracing framework. DTrace allows tracing and profiling both OS and user applications. This work investigates the possibilities to diagnose and tune Oracle latches. It explores the contemporary latch realization and spinning-blocking strategies, analyses corresponding statistic counters. A mathematical model developed to estimate analytically the effect of tuning _SPIN_COUNT value.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。