diff options
| author | Wenlin Kang <wenlin.kang@windriver.com> | 2016-09-27 17:45:02 +0800 |
|---|---|---|
| committer | Martin Jansa <Martin.Jansa@gmail.com> | 2016-10-05 18:20:48 +0200 |
| commit | 3e4a0e219e00ac9361d9e300b3ff3e861bfde426 (patch) | |
| tree | 1dee9834c29ad58d3ccf3f76bfa8c5a87154699a | |
| parent | 3c56c4f15f244c43bc6c68b53a4530077db76652 (diff) | |
| download | meta-openembedded-3e4a0e219e00ac9361d9e300b3ff3e861bfde426.tar.gz | |
lvm2: enable option o_direct
During some lvm operations, e.g, create many volumes, we notice
a quite big degradation in performance with o_direct disabled,
if enabled the performance get much better, so, here we should
enable this option.
Signed-off-by: Wenlin Kang <wenlin.kang@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
| -rw-r--r-- | meta-oe/recipes-support/lvm2/lvm2.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta-oe/recipes-support/lvm2/lvm2.inc b/meta-oe/recipes-support/lvm2/lvm2.inc index d66daf8c29..74b72118f5 100644 --- a/meta-oe/recipes-support/lvm2/lvm2.inc +++ b/meta-oe/recipes-support/lvm2/lvm2.inc | |||
| @@ -20,16 +20,17 @@ inherit autotools-brokensep pkgconfig systemd | |||
| 20 | 20 | ||
| 21 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)} \ | 21 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)} \ |
| 22 | thin-provisioning-tools \ | 22 | thin-provisioning-tools \ |
| 23 | odirect \ | ||
| 23 | " | 24 | " |
| 24 | 25 | ||
| 25 | PACKAGECONFIG[readline] = "--enable-readline,--disable-readline,readline" | 26 | PACKAGECONFIG[readline] = "--enable-readline,--disable-readline,readline" |
| 26 | PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux" | 27 | PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux" |
| 27 | PACKAGECONFIG[thin-provisioning-tools] = "--with-thin=internal,--with-thin=none,,thin-provisioning-tools" | 28 | PACKAGECONFIG[thin-provisioning-tools] = "--with-thin=internal,--with-thin=none,,thin-provisioning-tools" |
| 29 | PACKAGECONFIG[odirect] = "--enable-o_direct,--disable-o_direct" | ||
| 28 | 30 | ||
| 29 | # Unset user/group to unbreak install. | 31 | # Unset user/group to unbreak install. |
| 30 | EXTRA_OECONF = "--with-user= \ | 32 | EXTRA_OECONF = "--with-user= \ |
| 31 | --with-group= \ | 33 | --with-group= \ |
| 32 | --disable-o_direct \ | ||
| 33 | --enable-realtime \ | 34 | --enable-realtime \ |
| 34 | --enable-applib \ | 35 | --enable-applib \ |
| 35 | --enable-cmdlib \ | 36 | --enable-cmdlib \ |
