cinder/cinder/tests/unit/image
Liang Fang 9073f7591e Leverage hw accelerator in image compression
When trying to upload volume to glance as image, currently all the
format transformation is done by software and the performance is not
good.

Leverage hardware accelerator to do the image compression, so as to
offload CPU, release CPU to do more common and complex thing.
Professional hardware accelerator will get better performance and
shorter conversion time than software solution. Currently hardware
accelerator is getting more popular and some are integrated in server
chipset by default.

This patch includes:

1. Uses the new image container_format 'compressed' introduced by Glance
in the Train release

2. Implemented a simple framework: if there's an accelerator detected in
system, then try to use it

3. Supported Intel QAT as one of the accelerator

4. Add command filter for command 'qzip' and 'gzip' in rootwrap

5. New configuration option 'allow_compression_on_image_upload' and
'compression_format' added

6. Releasenote added

Change-Id: I8460f58d2ad95a6654cf4d6a6bb367f3c537536b
Implements: blueprint leverage-compression-accelerator
Signed-off-by: Liang Fang <liang.a.fang@intel.com>
2019-09-18 03:01:18 +00:00
..
accelerators Leverage hw accelerator in image compression 2019-09-18 03:01:18 +00:00
__init__.py Move unit tests into dedicated directory 2015-04-21 18:40:40 -06:00
fake.py Support create a volume from image snapshot 2017-11-25 15:05:46 +08:00
test_accelerator.py Leverage hw accelerator in image compression 2019-09-18 03:01:18 +00:00
test_cache.py Fix image volume cache max size and max count limits 2018-09-17 10:14:11 -04:00
test_glance.py Pass image_id to ImageDownloadFailed 2019-01-17 21:41:46 +00:00