You are not logged in.

#1 2020-05-27 16:24:45

kittysoman2013
Member
From: https://giupviectheogio.com/
Registered: 2020-05-27
Posts: 1
Website

ccache on Mushkin Cache SSD?

Hey guys,

as I'm in the Newbie Corner, I hope you forgive me, if I'm asking a stupid question.
I've only been using Linux since a few weeks, so this is all quite new to me.

I wanna build an aosp-rom for my device (gemini), and am thinking about a good way to use ccache.

I've got a 256GB nvme-SSD I use as my primary drive for the home, root, swap partitions and some btrfs stuff.
I wanna keep having free space on it, so I definitely don't wanna set a 100GB ccache partition there.

For my data I've got a 2TB HDD and I mounted a partition I named "data" for keeping media stuff like music, videos, etc there.

Now I've seen that I also got an oldish 100GB Mushkin Catalyst Cache drive lying around, which would have the ideal size for ccache and would finally be of use again.
So my goal is to having ccache there!
Problem is, that this is not a drive that can simply be partitioned (or can it in Arch?). It is built for working with a Win7 only compatible software called dataplex, and is only meant for caching.
However, I got it to work on win8 using primocache.

I was thinking about setting up ccache on the HDD and then cache that part of the partition with the Cache SSD using bcache.
Does this make sense or does this only mess things up?
Is there a more elegant way I'm missing?

Thanks so much in advance!

Offline

#2 2020-05-28 00:53:47

glitsj16
Member
Registered: 2015-04-26
Posts: 116

Re: ccache on Mushkin Cache SSD?

Hi, interesting question. If you're not sure the Mushkin drive can be partitioned for use with a Linux filesystem, I would be hesitant to use it for ccache. Or, putting it differently, before you set up ccache to use that drive, and loose the other 'Windows) functionality, try to ascertain it is compatible. My knowledge of the hardware in question is non-existent, so I can't provide info on that part. Just felt compelled to share some of my experiences with ccache in general when I noticed your thread.

After going over the ccache wiki page and configuring for makepkg/command line support, I suggest you try it with a small-sized dir in your ${HOME} to get a view on how much space you actually need for a smooth ccache experience. 100GB is (astronomically) huge IMO, but if you have the drive gathering dust, it definately would make compiling much more pleasant. Still, to give you an idea of the numbers involved. I have a ccache setup of 60MB (yes, MB) that is running in RAM via anything-sync-daemon so the ccache is persistent. Regularly re-compiling a set of around 250 packages is working amazingly well (on a 10y old laptop). Hope you get some more input here or on IRC #archlinux.

Offline

Board footer

Powered by FluxBB