Skip to contentSkip to conversation

lvm2: enable option o_direct

PATCH In review Wenlin Kang 1 participant 2 messages Sep 27, 2016 – Sep 28, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 meta-oe/recipes-support/lvm2/lvm2.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-support/lvm2/lvm2.inc +1 -1
index d66daf8..c6d91b0 100644
@@ -29,7 +29,7 @@ PACKAGECONFIG[thin-provisioning-tools] = "--with-thin=internal,--with-thin=none,
 # Unset user/group to unbreak install.
 EXTRA_OECONF = "--with-user= \
                 --with-group= \
-                --disable-o_direct \
+                --enable-o_direct \
                 --enable-realtime \
                 --enable-applib \
                 --enable-cmdlib \
Signature · 1 line
2.7.4
#1 lore raw
Quoted 15 lines · Wenlin Kang

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.

---
  meta-oe/recipes-support/lvm2/lvm2.inc | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-support/lvm2/lvm2.inc +0 -0
index d66daf8..c6d91b0 100644

meta-oe/recipes-support/lvm2/lvm2.inc PACKAGECONFIG[thin-provisioning-tools] = "--with-thin=internal,--with-thin=none, · line 35

Quoted 8 lines
meta-oe/recipes-support/lvm2/lvm2.inc +1 -1
@@ -29,7 +29,7 @@ PACKAGECONFIG[thin-provisioning-tools] = "--with-thin=internal,--with-thin=none,
  # Unset user/group to unbreak install.
  EXTRA_OECONF = "--with-user= \
                  --with-group= \
-                --disable-o_direct \
+                --enable-o_direct \
                  --enable-realtime \
                  --enable-applib \
                  --enable-cmdlib \

Please ignore this, I will re-send the new patch.

Signature · 2 lines
Thanks,
Wenlin Kang