Skip to content

Enclave should have a mechanism to back off rather than spin if ringbuffer is empty #798

@achamayou

Description

@achamayou

From ds/messaging.h

          // TODO(#performance): If this is ever idle (the underlying
          // buffer has no pending messages and there are no tasks to run), it
          // will spin here. With low traffic this may even be where most
          // execution time is spent. To avoid too many wasteful spins, we
          // should add customisable backoff behaviour here. On the host this
          // could simply be a sleep or a wait on a condition variable, while
          // waiting inside the enclave is more complicated (may initially spin
          // inside, then after some attempts OCALL to sleep outside).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions