From: Nikolaus Rath <Nikolaus@rath.org>
To: linux-lvm@redhat.com
Subject: [linux-lvm] lvmcache performance
Date: Sun, 07 Feb 2016 10:43:30 -0800 [thread overview]
Message-ID: <87a8nctl7x.fsf@vostro.rath.org> (raw)
Hello,
My system boots rather slowly, so when I noticed a lot of free space on
one of my SSDs, I wanted to try to speed-up the boot by caching my root
volume.
For benchmarking purposes, I first moved the entire LV holding the root
file system to the SSD. This reduced the boot time from about 90 seconds
to 20 - nice!
I then moved the root fs LV back to the spinning disk and created a
cache-pool on the SSD. My root fs is 40 GB, with 19 GB used. The cache
pool had a 15 GB data and 15 MB metadata volumes and used writeback
cache. Finally, I converted my root fs LV to a cache LV.
To getting data into the initrd quickly, I also set up my initrd to call
dmsetup message ${name} 0 sequential_threshold 0
dmsetup message ${name} 0 read_promote_adjustment 0
dmsetup message ${name} 0 write_promote_adjustment 0
However, even after a few reboots I do not notice any difference at all
in boot times. It is as if the cache was not used at all.
With the above settings (and the cache pool as big as the used space on
the origin LV), I would have expected to get almost the same performance
as when moving the entire PV to the SSD.
Is that the wrong expectation? But even then, shouldn't I at least see
some improvement?
Thanks,
-Nikolaus
--
GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F
Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F
»Time flies like an arrow, fruit flies like a Banana.«
next reply other threads:[~2016-02-07 19:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-07 18:43 Nikolaus Rath [this message]
2016-02-08 9:17 ` [linux-lvm] lvmcache performance Joe Thornber
2016-02-08 16:51 ` John Stoffel
2016-02-08 22:05 ` Nikolaus Rath
2016-02-08 22:05 ` [linux-lvm] " Nikolaus Rath
2016-02-09 9:39 ` Mateusz Korniak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a8nctl7x.fsf@vostro.rath.org \
--to=nikolaus@rath.org \
--cc=linux-lvm@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.