Skip to content
This repository was archived by the owner on Dec 18, 2018. It is now read-only.
This repository was archived by the owner on Dec 18, 2018. It is now read-only.

SocketOutput's Monitor.TryEnter(_contextLock) burns cpu #1068

@benaadams

Description

@benaadams

The fast fail Monitor.TryEnter in SocketOutput introduced by #562 is more expensive than it first seems when contended.

I originally saw high cpu burn in locks in Kestrel in this issue https://github.com/dotnet/coreclr/issues/6144 but wasn't sure if it was just the normal locking; looks like it can also be caused by extra contention from the TryEnter atm 😞

See (or blocked by) https://github.com/dotnet/coreclr/issues/6950

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions