• Dan Williams's avatar
    libnvdimm: cycle flush hints · 0c27af60
    Dan Williams authored
    When the NFIT provides multiple flush hint addresses per-dimm it is
    expressing that the platform is capable of processing multiple flush
    requests in parallel.  There is some fixed cost per flush request, let
    the cost be shared in parallel on multiple cpus.
    
    Since there may not be enough flush hint addresses for each cpu to have
    one, keep a per-cpu index of the last used hint, hash it with current
    pid, and assume that access pattern and scheduler randomness will keep
    the flush-hint usage somewhat staggered across cpus.
    
    Cc: Ross Zwisler <ross.zwisler@linux.intel.com>
    Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
    0c27af60
nd.h 9.68 KB