mbox series

[ndctl,0/5] ndctl: Optimize label operations

Message ID 155183603979.191625.11689546261255336448.stgit@dwillia2-desk3.amr.corp.intel.com (mailing list archive)
Headers show
Series ndctl: Optimize label operations | expand

Message

Dan Williams March 6, 2019, 1:33 a.m. UTC
In almost all use cases ndctl was reading more label data than necessary
to carry out tasks like "init-labels" and the auto-label capability of
"create-namespace".

Outside of index-block scoped operations above, there is utility in
being able to specify an extent range smaller than the full capacity to
"{read,write,zero}-labels".

Deploy optimizations to only operate on the index blocks when possible,
and allow for custom extents for the generic operations.

---

Dan Williams (5):
      ndctl/dimm: Support small label reads/writes
      ndctl/dimm: Minimize data-transfer for init-labels
      ndctl/dimm: Add offset and size options to {read,write,zero}-labels
      ndctl/dimm: Limit read-labels with --index option
      ndctl/namespace: Minimize label data transfer for autolabel


 Documentation/ndctl/labels-options.txt |    9 +++
 ndctl/dimm.c                           |   88 ++++++++++++++++++--------
 ndctl/lib/dimm.c                       |   85 +++++++++++++++++++++++--
 ndctl/lib/libndctl.c                   |  107 ++++++++++++++++++++++++++++----
 ndctl/lib/libndctl.sym                 |    5 +
 ndctl/lib/private.h                    |    4 -
 ndctl/libndctl.h                       |    9 +++
 ndctl/namespace.c                      |    2 -
 util/util.h                            |    4 +
 9 files changed, 260 insertions(+), 53 deletions(-)