Project

General

Profile

Actions

Feature #52510

open

Speed up inventory processing to reduce run time

Added by Paul Cuzner over 2 years ago. Updated over 2 years ago.

Status:
In Progress
Priority:
Normal
Assignee:
Target version:
% Done:

50%

Source:
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

The current inventory subcommand can take a while to return results. Looking at the code, the Device class is performing lvm,blkid,udevadm commands serially which contributes to the run time.

This feature introduces a parameter to the inventory subcommand call --with-preload. When this flag is true, the device metadata will be gathered in parallel and consumed by the normal Device class instance, reducing the elapsed time.

Testing has shown the following, with a physical server of 16 drives (15 used, 1 free)

Invocation Cold* Warm
normal ceph-volume 13.3s 6.1s
with-preload 5.2s 1.5s

13.32s

Actions #1

Updated by Paul Cuzner over 2 years ago

  • Pull request ID set to 43057
Actions #2

Updated by Paul Cuzner over 2 years ago

  • % Done changed from 0 to 50
Actions #3

Updated by Guillaume Abrioux over 2 years ago

  • Status changed from New to In Progress
Actions

Also available in: Atom PDF