LVM cache does not give any performance enhancement

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








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.










share|improve this question





















  • 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














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.










share|improve this question





















  • 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












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.










share|improve this question













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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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
















  • 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















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















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



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














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













































































Popular posts from this blog

pylint3 and pip3 broken

Missing snmpget and snmpwalk

How to enroll fingerprints to Ubuntu 17.10 with VFS491