summaryrefslogtreecommitdiff
path: root/etc/cinder/rootwrap.d
diff options
context:
space:
mode:
authorLiang Fang <liang.a.fang@intel.com>2019-07-31 09:28:27 +0000
committerZhengMa <zheng.ma@intel.com>2019-09-18 03:01:18 +0000
commit9073f7591ec398c8825fc82f8dda630c4d8ad3f3 (patch)
tree91929e2cc47f315796c1d98dd9fb160d2e516cf9 /etc/cinder/rootwrap.d
parent0f51e267bf88a49a92c874f315ed42301df2eea9 (diff)
downloadcinder-9073f7591ec398c8825fc82f8dda630c4d8ad3f3.tar.gz
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>
Diffstat (limited to 'etc/cinder/rootwrap.d')
-rw-r--r--etc/cinder/rootwrap.d/volume.filters2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/cinder/rootwrap.d/volume.filters b/etc/cinder/rootwrap.d/volume.filters
index 4df1d66fb..0c51152f6 100644
--- a/etc/cinder/rootwrap.d/volume.filters
+++ b/etc/cinder/rootwrap.d/volume.filters
@@ -80,6 +80,8 @@ cgexec: ChainingRegExpFilter, cgexec, root, cgexec, -g, blkio:\S+
# cinder/image/image_utils.py
qemu-img: EnvFilter, env, root, LC_ALL=C, qemu-img
qemu-img_convert: CommandFilter, qemu-img, root
+qzip: CommandFilter, qzip, root
+gzip: CommandFilter, gzip, root
# cinder/volume/nfs.py
stat: CommandFilter, stat, root