Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitab5194e

Browse files
committed
Improve LWLock scalability.
The old LWLock implementation had the problem that concurrent lockacquisitions required exclusively acquiring a spinlock. Often thatcould lead to acquirers waiting behind the spinlock, even if theactual LWLock was free.The new implementation doesn't acquire the spinlock when acquiring thelock itself. Instead the new atomic operations are used to atomicallymanipulate the state. Only the waitqueue, used solely in the slowpath, is still protected by the spinlock. Check lwlock.c's header foran explanation about the used algorithm.For some common workloads on larger machines this can yieldsignificant performance improvements. Particularly in read mostlyworkloads.Reviewed-By: Amit Kapila and Robert HaasAuthor: Andres FreundDiscussion: 20130926225545.GB26663@awork2.anarazel.de
1 parent7882c3b commitab5194e

File tree

2 files changed

+653
-302
lines changed

2 files changed

+653
-302
lines changed

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp