All of lore.kernel.org
 help / color / mirror / Atom feed
* bcache not works?
@ 2013-10-16  4:22 Vasiliy Tolstov
       [not found] ` <CACaajQueWka6dA3g-Uv7Asz9KhgX9nJ_sjd8bNRo2Y2iU-73jA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Vasiliy Tolstov @ 2013-10-16  4:22 UTC (permalink / raw)
  To: linux-bcache-u79uwXL29TY76Z2rM5mHXA

I have this setup:
/dev/md127 - raid1 with one sata 3Tb drive
/dev/sdb SSD disk with 240 Gb

I'm succeseful create bcache0 device and format it to ext4.

/dev/bcache0 /var/lib/libvirt/images ext4
rw,relatime,journal_checksum,journal_async_commit,errors=remount-ro,min_batch_time=15000,max_batch_time=60000,data=ordered
0 0

After that i'm install kvm virtual machine and tries to create some
activity via iozone fio and other. But stats says nothing.

What i miss?

root@node03:~# cat
/sys/fs/bcache/76907875-ef3b-48b1-8531-f880e64487a8/stats_day/*
0
0
0
0
0
0
0
0



-- 
Vasiliy Tolstov,
e-mail: v.tolstov-+9FY0jupvH6HXe+LvDLADg@public.gmane.org
jabber: vase-+9FY0jupvH6HXe+LvDLADg@public.gmane.org

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

* Re: bcache not works?
       [not found] ` <CACaajQueWka6dA3g-Uv7Asz9KhgX9nJ_sjd8bNRo2Y2iU-73jA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2013-10-16 20:40   ` Vasiliy Tolstov
  2013-10-16 21:07   ` Gabriel de Perthuis
  1 sibling, 0 replies; 5+ messages in thread
From: Vasiliy Tolstov @ 2013-10-16 20:40 UTC (permalink / raw)
  To: Vasiliy Tolstov; +Cc: linux-bcache-u79uwXL29TY76Z2rM5mHXA

2013/10/16 Vasiliy Tolstov <v.tolstov-+9FY0jupvH6HXe+LvDLADg@public.gmane.org>:
> I have this setup:
> /dev/md127 - raid1 with one sata 3Tb drive
> /dev/sdb SSD disk with 240 Gb
>
> I'm succeseful create bcache0 device and format it to ext4.
>
> /dev/bcache0 /var/lib/libvirt/images ext4
> rw,relatime,journal_checksum,journal_async_commit,errors=remount-ro,min_batch_time=15000,max_batch_time=60000,data=ordered
> 0 0
>
> After that i'm install kvm virtual machine and tries to create some
> activity via iozone fio and other. But stats says nothing.
>
> What i miss?


Anybody knowns?
P.S. I'm using kernel 3.11.4. How can i enable bcache?

-- 
Vasiliy Tolstov,
e-mail: v.tolstov-+9FY0jupvH6HXe+LvDLADg@public.gmane.org
jabber: vase-+9FY0jupvH6HXe+LvDLADg@public.gmane.org

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

* Re: bcache not works?
       [not found] ` <CACaajQueWka6dA3g-Uv7Asz9KhgX9nJ_sjd8bNRo2Y2iU-73jA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  2013-10-16 20:40   ` Vasiliy Tolstov
@ 2013-10-16 21:07   ` Gabriel de Perthuis
       [not found]     ` <525EFFFE.7060901-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  1 sibling, 1 reply; 5+ messages in thread
From: Gabriel de Perthuis @ 2013-10-16 21:07 UTC (permalink / raw)
  To: Vasiliy Tolstov; +Cc: linux-bcache-u79uwXL29TY76Z2rM5mHXA

Le 16/10/2013 06:22, Vasiliy Tolstov a écrit :
> I have this setup:
> /dev/md127 - raid1 with one sata 3Tb drive
> /dev/sdb SSD disk with 240 Gb
> 
> I'm succeseful create bcache0 device and format it to ext4.
> 
> /dev/bcache0 /var/lib/libvirt/images ext4
> rw,relatime,journal_checksum,journal_async_commit,errors=remount-ro,min_batch_time=15000,max_batch_time=60000,data=ordered
> 0 0
> 
> After that i'm install kvm virtual machine and tries to create some
> activity via iozone fio and other. But stats says nothing.
> 
> What i miss?

Maybe the cache isn't attached to the backing device?

If you initialise both with the same make-bcache call they are
immediately attached, otherwise you need to connect them:

http://evilpiepirate.org/git/linux-bcache.git/tree/Documentation/bcache.txt?h=bcache-dev#n80

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

* Re: bcache not works?
       [not found]     ` <525EFFFE.7060901-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2013-10-17  3:24       ` Vasiliy Tolstov
       [not found]         ` <CACaajQvOkLmyrCyyr+8BA5sU+Z1mJ1o9Z4ss5+M=PNcng8sdxw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Vasiliy Tolstov @ 2013-10-17  3:24 UTC (permalink / raw)
  To: Gabriel de Perthuis; +Cc: linux-bcache-u79uwXL29TY76Z2rM5mHXA

2013/10/17 Gabriel de Perthuis <g2p.code-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:
> Maybe the cache isn't attached to the backing device?
>
> If you initialise both with the same make-bcache call they are
> immediately attached, otherwise you need to connect them:
>
> http://evilpiepirate.org/git/linux-bcache.git/tree/Documentation/bcache.txt?h=bcache-dev#n80

As i see its all attached.
[  180.459041] bcache: register_bcache() error opening /dev/md127:
device already registered
[  180.459060] bcache: register_bcache() error opening /dev/sdb:
device already registered


-- 
Vasiliy Tolstov,
e-mail: v.tolstov-+9FY0jupvH6HXe+LvDLADg@public.gmane.org
jabber: vase-+9FY0jupvH6HXe+LvDLADg@public.gmane.org

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

* Re: bcache not works?
       [not found]         ` <CACaajQvOkLmyrCyyr+8BA5sU+Z1mJ1o9Z4ss5+M=PNcng8sdxw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2013-10-17  3:29           ` Vasiliy Tolstov
  0 siblings, 0 replies; 5+ messages in thread
From: Vasiliy Tolstov @ 2013-10-17  3:29 UTC (permalink / raw)
  To: Vasiliy Tolstov; +Cc: Gabriel de Perthuis, linux-bcache-u79uwXL29TY76Z2rM5mHXA

2013/10/17 Vasiliy Tolstov <v.tolstov-+9FY0jupvH6HXe+LvDLADg@public.gmane.org>:
>> Maybe the cache isn't attached to the backing device?
>>
>> If you initialise both with the same make-bcache call they are
>> immediately attached, otherwise you need to connect them:
>>
>> http://evilpiepirate.org/git/linux-bcache.git/tree/Documentation/bcache.txt?h=bcache-dev#n80
>
> As i see its all attached.
> [  180.459041] bcache: register_bcache() error opening /dev/md127:
> device already registered
> [  180.459060] bcache: register_bcache() error opening /dev/sdb:
> device already registered


Ohh. Sorry. I'm create already created bcache device and its not
attached. After i'm attach  i see that stats changed..
Thanks!

-- 
Vasiliy Tolstov,
e-mail: v.tolstov-+9FY0jupvH6HXe+LvDLADg@public.gmane.org
jabber: vase-+9FY0jupvH6HXe+LvDLADg@public.gmane.org

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

end of thread, other threads:[~2013-10-17  3:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-16  4:22 bcache not works? Vasiliy Tolstov
     [not found] ` <CACaajQueWka6dA3g-Uv7Asz9KhgX9nJ_sjd8bNRo2Y2iU-73jA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-10-16 20:40   ` Vasiliy Tolstov
2013-10-16 21:07   ` Gabriel de Perthuis
     [not found]     ` <525EFFFE.7060901-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2013-10-17  3:24       ` Vasiliy Tolstov
     [not found]         ` <CACaajQvOkLmyrCyyr+8BA5sU+Z1mJ1o9Z4ss5+M=PNcng8sdxw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-10-17  3:29           ` Vasiliy Tolstov

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.