Skip to content

CPU Utilization #3

Description

@KrishnaPG

I am not able to build the code, but from the initial scans, it looks like you are using Lock-free constructs for the queuing.

Lock-free constructs may help in heavy throughput scenarios, where continuous streams are available for hand-off. But most of the times, in production, load comes sporadically. In such cases (where load is less 80% of the time), the threads will be ticking unnecessarily (due to their lock free nature).

A more reasonable approach in such cases would be, to gracefully degrade from lock-free waiting to locked-waiting (if no new work-item or message appears for few iterations). Please give it a thought.

Thanks.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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