Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-10013

Atomic usage cleanups

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • 3
    • 9223372036854775807

      There are a lot of places in Lustre where we unnecessarily use more than one atomic operation where one will do. The compiler can't fix this for us, since usage of atomics is largely exempt from optimization. In a few places, this has a clearly measurable cost (lu_object_get can use atomic_inc_return for the ASSERT, and this nets a few % improvement on single process reads). Some of the changes in the osc page code may also give some measurable benefits.

      This cleanup is not intended to catch every bad use of atomics (I looked primarily at asserts), but should be a good start.

            paf Patrick Farrell (Inactive)
            paf Patrick Farrell (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: