linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* btrfs on bcache
@ 2013-12-18 17:17 eb
  2013-12-19 19:04 ` Fábio Pfeifer
  2013-12-19 19:59 ` Chris Mason
  0 siblings, 2 replies; 20+ messages in thread
From: eb @ 2013-12-18 17:17 UTC (permalink / raw)
  To: linux-btrfs

I've recently setup a system (Kernel 3.12.5-1-ARCH) which is layered as follows:

/dev/sdb3 - cache0 (80 GB Intel SSD)
/dev/sdc1 - backing device (2 TB WD HDD)

sdb3+sdc1 => /dev/bcache0

On /dev/bcache0, there's a btrfs filesystem with 2 subvolumes, mounted
as / and /home. What's been bothering me are the following entries in
my kernel log:

[13811.845540] incomplete page write in btrfs with offset 1536 and length 2560
[13870.326639] incomplete page write in btrfs with offset 3072 and length 1024

The offset/length values are always either 1536/2560 or 3072/1024,
they sum up nicely to 4K. There are 607 of those in there as I am
writing this, the machine has been up 18 hours and been under no
particular I/O strain (it's a desktop).

Trying to fix this, I unattached the cache (still using /dev/bcache0,
but without /dev/sdb3 attached), causing these errors to disappear. As
soon as I re-attached /dev/sdb3 they started again, so I am fairly
sure it's an unfavorable interaction between bcache and btrfs.

Is this something I should be worried about (they're only emitted with
KERN_INFO?) or just an alignment problem? The underlying HDD is using
4K-Sectors, while the block_size of bcache seems to be 512, could that
be the issue here?

I've also encountered incomplete reads and a few csum errors, but I
have not been able to trigger these regularly. I have a feeling that
the error is more likely  o be on the bcache end (I've mailed to that
list as well), however any insight into the matter would be much
appreciated.

Thanks,

- eb

^ permalink raw reply	[flat|nested] 20+ messages in thread
* btrfs on bcache
@ 2014-04-30 18:16 Felix Homann
  2014-05-01 11:33 ` Austin S Hemmelgarn
  0 siblings, 1 reply; 20+ messages in thread
From: Felix Homann @ 2014-04-30 18:16 UTC (permalink / raw)
  To: linux-btrfs

Hi,
a couple of months ago there has been some discussion about issues
when using btrfs on bcache:

http://thread.gmane.org/gmane.comp.file-systems.btrfs/31018

>From looking at the mailing list archives I cannot tell whether or not
this issue has been resolved in current kernels from either bcache's
or btrfs' side.

Can anyone tell me what's the current state of this issue? Should it
be safe to use btrfs on bcache by now?

Thanks and kind regards,
Felix

^ permalink raw reply	[flat|nested] 20+ messages in thread
* btrfs on bcache
@ 2014-07-30 22:04 dptrash
  2014-07-30 23:01 ` Larkin Lowrey
  0 siblings, 1 reply; 20+ messages in thread
From: dptrash @ 2014-07-30 22:04 UTC (permalink / raw)
  To: linux-bcache, linux-btrfs

Concerning http://thread.gmane.org/gmane.comp.file-systems.btrfs/31018, does this "bug" still exists?

Kernel 3.14
B: 2x HDD 1 TB
C: 1x SSD 256 GB

# make-bcache -B /dev/sda /dev/sdb -C /dev/sdc --cache_replacement_policy=lru
# mkfs.btrfs -d raid1 -m raid1 -L "BTRFS_RAID" /dev/bcache0 /dev/bcache1

I still have no "incomplete page write" messages in "dmesg | grep btrfs" and the checksums of some manually reviewed files are okay.

Who has more experiences about this?

Thanks,

- dp

^ permalink raw reply	[flat|nested] 20+ messages in thread
[parent not found: <1731942750.1162128.1406757898913.JavaMail.ngmail@webmail06.arcor-online.net>]
* Re: btrfs on bcache
@ 2014-08-20 20:17 raphead
  0 siblings, 0 replies; 20+ messages in thread
From: raphead @ 2014-08-20 20:17 UTC (permalink / raw)
  To: linux-btrfs

Hi,
has this issue been resolved?
I would like to use the bcache + btrfs combo.
Thanks

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2014-08-20 20:17 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-18 17:17 btrfs on bcache eb
2013-12-19 19:04 ` Fábio Pfeifer
2013-12-19 19:05   ` Fábio Pfeifer
2013-12-20 22:26   ` Henry de Valence
2013-12-19 19:59 ` Chris Mason
2013-12-20 12:36   ` eb
2013-12-20 12:42   ` Fábio Pfeifer
2013-12-20 15:46     ` Chris Mason
2013-12-24 16:44       ` Fábio Pfeifer
2014-01-06 23:37       ` Kent Overstreet
2014-01-08 19:35         ` Chris Mason
2014-01-08 21:13           ` Kent Overstreet
  -- strict thread matches above, loose matches on Subject: below --
2014-04-30 18:16 Felix Homann
2014-05-01 11:33 ` Austin S Hemmelgarn
2014-07-30 22:04 dptrash
2014-07-30 23:01 ` Larkin Lowrey
2014-08-04 12:57   ` Fábio Pfeifer
     [not found] <1731942750.1162128.1406757898913.JavaMail.ngmail@webmail06.arcor-online.net>
2014-07-31 15:35 ` dptrash
2014-08-01  1:55   ` Duncan
2014-08-20 20:17 raphead

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).