Skip to contentSkip to conversation

(b)cache trashing

DISCUSSION Piergiorgio Sartor 1 participant 1 message Jun 13, 2013 bcache (block layer cache)

lore
Share & tools
lore
#0 lore raw

Hi all,

one (or two), naive, question.

I assume that bcache will cache on reads too.

What will happen if something like this is run:

find /home -type -f -exec md5sum {} \;

That is, the md5 of *all* files is computed.

I assume that the cache will be completely trashed and no old data will be present.

Is this the case?

Now, assuming we have a RAID something, with LVM on top, with different volumes.
For example one for /home, one for /usr, etc. Would it make sense, in respect of the above trashing, to have different SSD (or paritions) to cache the different volumes?
Instead of caching the complete RAID, of course.

Thanks a lot in advance,

bye,

Signature · 1 line
piergiorgio