LVM cache does not give any performance enhancement
up vote
0
down vote
favorite
I'm using Ubuntu 16.04.4 and it's running on a VM.
The disk that has the origin data has an I/O limit on 1MB/s and disk for cache has no limit.
I have followed the guide at fibervillage
to create the LVM and succeeded without errors, with the modification to cachemode writeback
, and I also did try writethrough
just to try.
When the LV is without cache I got the expected behavior with 1MB transfer rate, But when I added the cahepool to the origin LV I do not see any performance enhancement at all. But creating a LV on the same disk were the cache pool is I get way faster transfer rate. I mounted all volumes in /etc/fstab
with sync,dirsync
options to avoid any other caching.
lvm cache
add a comment |Â
up vote
0
down vote
favorite
I'm using Ubuntu 16.04.4 and it's running on a VM.
The disk that has the origin data has an I/O limit on 1MB/s and disk for cache has no limit.
I have followed the guide at fibervillage
to create the LVM and succeeded without errors, with the modification to cachemode writeback
, and I also did try writethrough
just to try.
When the LV is without cache I got the expected behavior with 1MB transfer rate, But when I added the cahepool to the origin LV I do not see any performance enhancement at all. But creating a LV on the same disk were the cache pool is I get way faster transfer rate. I mounted all volumes in /etc/fstab
with sync,dirsync
options to avoid any other caching.
lvm cache
Maybe you are using kernel version before 4.12? Take a look at this article, performance improves a lot since Linux kernel 4.12.
â cyfdecyf
Jul 30 at 5:09
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm using Ubuntu 16.04.4 and it's running on a VM.
The disk that has the origin data has an I/O limit on 1MB/s and disk for cache has no limit.
I have followed the guide at fibervillage
to create the LVM and succeeded without errors, with the modification to cachemode writeback
, and I also did try writethrough
just to try.
When the LV is without cache I got the expected behavior with 1MB transfer rate, But when I added the cahepool to the origin LV I do not see any performance enhancement at all. But creating a LV on the same disk were the cache pool is I get way faster transfer rate. I mounted all volumes in /etc/fstab
with sync,dirsync
options to avoid any other caching.
lvm cache
I'm using Ubuntu 16.04.4 and it's running on a VM.
The disk that has the origin data has an I/O limit on 1MB/s and disk for cache has no limit.
I have followed the guide at fibervillage
to create the LVM and succeeded without errors, with the modification to cachemode writeback
, and I also did try writethrough
just to try.
When the LV is without cache I got the expected behavior with 1MB transfer rate, But when I added the cahepool to the origin LV I do not see any performance enhancement at all. But creating a LV on the same disk were the cache pool is I get way faster transfer rate. I mounted all volumes in /etc/fstab
with sync,dirsync
options to avoid any other caching.
lvm cache
lvm cache
asked Mar 28 at 15:09
Jocke
7218
7218
Maybe you are using kernel version before 4.12? Take a look at this article, performance improves a lot since Linux kernel 4.12.
â cyfdecyf
Jul 30 at 5:09
add a comment |Â
Maybe you are using kernel version before 4.12? Take a look at this article, performance improves a lot since Linux kernel 4.12.
â cyfdecyf
Jul 30 at 5:09
Maybe you are using kernel version before 4.12? Take a look at this article, performance improves a lot since Linux kernel 4.12.
â cyfdecyf
Jul 30 at 5:09
Maybe you are using kernel version before 4.12? Take a look at this article, performance improves a lot since Linux kernel 4.12.
â cyfdecyf
Jul 30 at 5:09
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1020003%2flvm-cache-does-not-give-any-performance-enhancement%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Maybe you are using kernel version before 4.12? Take a look at this article, performance improves a lot since Linux kernel 4.12.
â cyfdecyf
Jul 30 at 5:09