this post was submitted on 16 Feb 2025
24 points (100.0% liked)
Rust
6397 readers
75 users here now
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Wormhole
Credits
- The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Your build artefacts will already be in RAM as the kernel will utilise any spare for the block cache. The block cache is evicted using a least recently used (LRU) basis when the system is under memory pressure. Using ram based filesystems is basically bypassing the kernel and reducing it's flexibility to make the best use of spare RAM in the system.
Agreed. Take a look at the cachestat tool to measure how well the page cache is working for cargo builds.
https://www.brendangregg.com/blog/2014-12-31/linux-page-cache-hit-ratio.html