Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
bcache - flush cache now
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
SpatnyNick
n00b
n00b


Joined: 09 Oct 2014
Posts: 3

PostPosted: Thu Jan 08, 2015 1:58 pm    Post subject: bcache - flush cache now Reply with quote

Hi,
I have a requirement that I need bcache (set as writeback) to do a flush of dirty caches 'now'. I know that the flush is done e.g. during cache detach, but that I don't want to do. I just want to have all the caches clean now...

I tried to
echo writethrough > /sys/block/bcache0/bcache/cache_mode
echo 5 > /sys/block/bcache0/bcache/writeback_delay
echo 0 > /sys/block/bcache0/bcache/writeback_delay
echo 0 > /sys/block/bcache0/bcache/writeback_percent
after that create a write access to the related cached device (touch + remove a file)
...
but the cache still stays dirty + have a 150MB of dirty data...

Any ideas?

Linux 3.17.7 Gentoo

Thanks in advance
Bohuslav
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum