Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Charlotte
@Foritus@toot.dusepo.co.uk  ·  activity timestamp 2 weeks ago

Random git tip for small devices:

git config core.bigFileThreshold 50m

By default git's "unpack" logic is quite memory intensive and if you need to "git pull" a large repo on something like an rpi zero you will probably end up OOMing. Set the threshold for "big files" to something reasonable (like 50 megs) and instead of reading the entire file into RAM and then writing it, it does a streaming copy and has a tiny in-memory I/O buffer instead. Yay.

(optionally specify git config --global to apply to all repos)

#homelab #homeautomation

  • Copy link
  • Flag this post
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.1-alpha.8 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login