[sheepdog] [PATCH v2 0/3] dog: parallelize parse_vdi()

Hitoshi Mitake mitake.hitoshi at lab.ntt.co.jp
Tue Aug 27 14:35:34 CEST 2013


Current dog issues request for gathering VDI information in a sequential manner
(parse_vdi()). This way is not scalable when a number of VDIs becomes larger.

This patchset parallelizes parse_vdi() with the work queue mechanism. The
primary target of this optimization is the command "vdi list". But it would
also be beneficial for other commands like "cluster snapshot".

v2:
 - rebase on the latest master
 - don't use needless thread in parse_vdi()
 - refine tests/functional

Hitoshi Mitake (3):
  dog: parallelize parse_vdi() with work queue
  dog: change definitions of subcommands for dynamic work queue
  tests/functional: make a result of vdi list deterministic with sort

 dog/common.c               |  129 +++++++++++++++++++++++++++++++++-----------
 dog/vdi.c                  |    4 +-
 tests/functional/029.out   |    4 +-
 tests/functional/030.out   |   16 +++---
 tests/functional/031.out   |    4 +-
 tests/functional/039.out   |   10 ++--
 tests/functional/041.out   |   10 ++--
 tests/functional/046.out   |    4 +-
 tests/functional/060.out   |   32 +++++------
 tests/functional/common.rc |    2 +-
 10 files changed, 142 insertions(+), 73 deletions(-)

-- 
1.7.10.4




More information about the sheepdog mailing list