latch的spin

上一篇 / 下一篇  2008-04-23 12:52:45 / 个人分类:Oracle Performance Tunning

Latch behavior. differs on single and multiple CPU servers. On a single CPU server, a process requesting an in-use latch will release the CPU and sleep before trying the latch again. On multiple CPU servers, a process requesting an in-use latch will “spin” on the CPU a specific number of times before releasing the CPU and trying again. The number of spins the process will use is OS specific.

Latch在单CPU跟多CPU上的表现是不同的。

在单CPU服务器上,一个process请求一个正在使用的latch时,在再次申请latch以前,将释放CPU并且sleep。
在多CPU服务器上,一个process请求一个正在使用的latch时,在再次申请latch以前,将在CPU上spin一个指定的时间,具体的spin时间根据os有所区别。

TAG:

 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

Open Toolbar