Skip to content

Various XHA improvements - #18

Closed
edwintorok wants to merge 2 commits into
xenserver:masterfrom
edwintorok:private/edvint/lockinglatency
Closed

edwintorok wants to merge 2 commits into
xenserver:masterfrom
edwintorok:private/edvint/lockinglatency

Conversation

@edwintorok

Copy link
Copy Markdown
Contributor

Might need splitting into separate PRs (there are about 8 independent fixes here). For now keep them together until I test them.

@andyhhp andyhhp left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you do want to split the mechanical fixes from the logical fixes (esp the lock contention one).

Comment thread commands/cleanupwatchdog.c Outdated
Comment thread daemon/sm.c
Comment thread daemon/sm.c
Comment thread daemon/sm.c Outdated
Comment thread log Outdated
@edwintorok

edwintorok commented Feb 21, 2025 •

Copy link
Copy Markdown
Contributor Author

I think you do want to split the mechanical fixes from the logical fixes (esp the lock contention one).

Split into:

Comment thread daemon/com.c Fixed
Comment thread daemon/sm.c Fixed
Reduce the scope of the global com mutex, otherwise every attempt to
acquire a reader lock results in contention on this global mutex.

Use a per-object-table lock instead.

Signed-off-by: Edwin Török <edwin.torok@cloud.com>
TODO: use pthread_condattr_setclock and switch to a monotonic clock
instead

Signed-off-by: Edwin Török <edwin.torok@cloud.com>
@edwintorok
edwintorok marked this pull request as ready for review April 4, 2026 18:18
@edwintorok edwintorok closed this Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants