You are not logged in.

#1 2017-12-03 21:33:55

KoolCharisma
Member
From: Glen Burnie, Maryland
Registered: 2017-12-02
Posts: 5

Ccache Directories

I'm having trouble understanding the directory variables available for ccache.

I've assigned my "cache_dir" to tmp/ccache. It works fine here and does as intended, compiles on my ramdisk.

Now I'm trying to figure out whether the ccache results will be saved and preserved across reboots. By default, the tmp folder will be erased per tmpfs. I certainly want my ccache to compile things on the ramdisk, but I want the results to be stored on disk so that future recompilations can take advantage of the ccache results.

I'm wondering if setting a "base_dir" will give me this availability? I'm having trouble understanding the manpage. The wiki says compilation speed will increase by exporting ccache to ram, but it doesn't specify whether doing so will preserve the results across reboots or not.

Thanks for your imput.

Offline

#2 2017-12-03 22:06:49

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: Ccache Directories

I don't understand what you want at all. Either the compiler compiles files and saves them to the ramdisk, or it compiles them and saves them to the hard drive. How and why do you expect ccache to save them to the ramdisk, then resave them to the hard drive, and what is your objective in doing so?


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#3 2017-12-03 22:34:53

loqs
Member
Registered: 2014-03-06
Posts: 19,113

Re: Ccache Directories

The objective seems to be the ccache would use some sort of overlay fs where it would write to tmpfs but read read from underlying storage then when io permits sync upper to lower.
No ccache does not have this inherent ability.

Offline

#4 2017-12-04 10:49:06

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Ccache Directories

Could you use ASD to achieve this?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#5 2017-12-07 04:11:42

KoolCharisma
Member
From: Glen Burnie, Maryland
Registered: 2017-12-02
Posts: 5

Re: Ccache Directories

slithery wrote:

Could you use ASD to achieve this?

THANK YOU! I have not actually tried this method yet, but I was looking for a function just like this to utilize my entire 20GB available ram. I didn't know how to go about it, but it looks like this package may be a great first step.

Offline

Board footer

Powered by FluxBB