All of lore.kernel.org
 help / color / mirror / Atom feed
From: "John Stoffel" <john@stoffel.org>
To: Alexander Pashaliyski <al.pashaliyski@gmail.com>
Cc: dm-devel@redhat.com
Subject: Re: dm-cache issue
Date: Tue, 15 Nov 2016 14:57:31 -0500	[thread overview]
Message-ID: <22571.26795.779502.143833@quad.stoffel.home> (raw)
In-Reply-To: <CAJV2nOTJoWWc=N80e6WCpZUh6ZRxvCW8Wt=aZWTyYSKso+kQ5Q@mail.gmail.com>


Alexander> I am in a process of evaluating dm-cache for our backup system.

Why are you bothering to cache your backup destination?  What
filesystems are you using for your destinations?

Alexander> Currently I have an issue when restart the backup
Alexander> server. The server is booting for hours, because of IO
Alexander> load. It seems is triggered a flush from SSD disk (that is
Alexander> used for a cache device) to the raid controllers (they are
Alexander> with slow SATA disks).  I have 10 cached logical volumes in
Alexander> writethrough mode, each with 2T of data over 2 raid
Alexander> controllers. I use a single SSD disk for the cache.  The
Alexander> backup system is with lvm2-2.02.164-1 & kernel 4.4.30.

How big is the SSD cache?  Do you have any output from the bootup
(syslog, dmesg, etc) you can share.  

Alexander> Do you have any ideas why such flush is triggered? In
Alexander> writethrough cache mode we shouldn't have dirty blocks in
Alexander> the cache.  

I wonder if it makes more sense to use 'lvcache' instead, since you
can add/remove cache from LVs at will.  With bcache, once you setup a
volume with the cache, you're stuck with it.

Also, did you mirror your SSD incase it fails?

In my experience, using RAID6 on a bunch of SATA disks for backup is
fine, you're writing large chunks of data in a few sets of files, so
fragmentation and the Read-Modify-Write cycle is much less painful,
since you tend to stream your writes to the storage, which is
perfectly fine with SATA drives.

Also, bcache skips sequential IO by default, which is what you want
when doing backups... so I'm wondering what your thinking was here for
using this?

John

      parent reply	other threads:[~2016-11-15 19:57 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-14 15:02 dm-cache issue Alexander Pashaliyski
2016-11-14 15:34 ` Zdenek Kabelac
2016-11-14 16:05   ` Alexander Pashaliyski
2016-11-15 12:38   ` Teodor Milkov
2016-11-16  9:24     ` Zdenek Kabelac
2016-11-16 13:45       ` Teodor Milkov
2016-11-16 14:06         ` Zdenek Kabelac
2016-11-19 17:07           ` Teodor Milkov
2016-12-02 19:49             ` Teodor Milkov
2016-11-15 19:57 ` John Stoffel [this message]

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=22571.26795.779502.143833@quad.stoffel.home \
    --to=john@stoffel.org \
    --cc=al.pashaliyski@gmail.com \
    --cc=dm-devel@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.