tripplehelix, (edited )
@tripplehelix@fosstodon.org avatar

The issue I had with slow builds seems to have been because of a disk caching issue. I simply ran;
sudo /sbin/sysctl -w vm.drop_caches=3
and now everything's fine!

OK ClamAV On Access Scanning was also to blame, it was set to scan /tmp and /var/tmp which explains why dumping the cache helped. For some reason, a package was having problems getting past ClamAV.

mmstick,
@mmstick@fosstodon.org avatar

@tripplehelix You may have better default behavior with these sysctl settings

vm.dirty_bytes = 268435456
vm.dirty_background_bytes = 134217728

Using zram can boost performance significantly when rustc is pushing cache to the limits, which you can further improve by setting these

vm.page-cluster=0
vm.swappiness=180
vm.watermark_boost_factor = 0
vm.watermark_scale_factor = 125

tripplehelix,
@tripplehelix@fosstodon.org avatar

@mmstick I think I'm going to setup zram again, didn't think I'd need it with 16GB.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • rust
  • DreamBathrooms
  • magazineikmin
  • everett
  • InstantRegret
  • rosin
  • Youngstown
  • slotface
  • love
  • khanakhh
  • kavyap
  • tacticalgear
  • GTA5RPClips
  • thenastyranch
  • modclub
  • megavids
  • mdbf
  • normalnudes
  • Durango
  • ethstaker
  • osvaldo12
  • cubers
  • ngwrru68w68
  • tester
  • anitta
  • cisconetworking
  • Leos
  • provamag3
  • JUstTest
  • All magazines