New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CCACHE_TEMPDIR="/tmp/ccache-tmp" if /tmp is mounted as tmpfs #4703
Conversation
This might make sense, I've explored similar in Other, possibly lunatic, ideas:
So it's a tradeoff with ccache already, EDIT: I had missed it's about |
Scratch that. I didn't pay attention (or you edited the original post?) to the below.
I will shut up and go test your idea. |
Please also tell us the storage configuration? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about to add into config-docker.conf
something like DOCKER_FLAGS+=(-v=$(mktemp -d)/:/tmp/)
?
It's not ccache data itself. |
@rpardini Do you understand well how the compiler cache works? CCACHE_DIR - The folder in which the result of the compilation process is recorded with the process log for each file. CCACHE_TEMPDIR - Temporary files are constantly being written and destroyed in this folder in the process of work. when the result is achieved, it is transferred to the CCACHE_DIR folder. This is a very large read write traffic. And a faster option when it happens in RAM. My desktop machine has an i7 CPU of 8 threads. The RAM is 32 Gigs. |
Igor, I don't use this technology and I can't say anything. |
Oh damn, I missed the but |
That's right.
|
Or, using Docker Volumes, |
@The-going 177 min for full image with your proposal, about 230 min without. |
Maybe point to |
then ccache build database will be lost on reboot |
Signed-off-by: Igor Velkov <iav@iav.lv>
I mean |
What's more, I check the manual of ccache.
And |
That's outdated manual, new version states
On sane systems, yes. Using sane
That's why he is checking to see it if /tmp is a tmpfs before doing it. |
I mean let's do this mount in our script. So it can work for everyone since most users or developers didn't known mounting |
True. I've been doing this in different spots in tmpfs helps a lot when building on really slow I/O subsystems like Either way thanks @The-going for sparking this initiative |
…armbian#4704) Signed-off-by: Igor Velkov <iav@iav.lv> Signed-off-by: Igor Velkov <iav@iav.lv>
Description
When the system temporary folder is mounted as tmpfs, it makes sense to mount
the temporary compiler cache folder in /tmp. This speeds up the compilation process
and saves the hard disk resource.
About the SSD resource, I think that it is clear to everyone.
How Has This Been Tested?
For my virtual machine 6 spu frequency 3.6G
Compile Time before: Runtime 46:43 min
Compile time after: Runtime 35:42 min
Checklist: