Skip to content
Snippets Groups Projects
  • amyspark's avatar
    139645b8
    cargo: Restrict parallelism if a small system is detected · 139645b8
    amyspark authored and GStreamer Marge Bot's avatar GStreamer Marge Bot committed
    Cargo starves the rest of the system of RAM and wall clock cycles on
    Intel Macs and other systems with low amount of RAM. So allow it to
    use multiple jobs only if a big enough system is detected, and only
    to the maximum number of threads.
    
    For the purposes of Cerbero, more than 4 threads AND more than 8GB of
    RAM is considered "big enough". The latter is only tested for macOS
    through sysctl.
    
    Fixes #446
    
    Part-of: <!1265>
    139645b8
    History
    cargo: Restrict parallelism if a small system is detected
    amyspark authored and GStreamer Marge Bot's avatar GStreamer Marge Bot committed
    Cargo starves the rest of the system of RAM and wall clock cycles on
    Intel Macs and other systems with low amount of RAM. So allow it to
    use multiple jobs only if a big enough system is detected, and only
    to the maximum number of threads.
    
    For the purposes of Cerbero, more than 4 threads AND more than 8GB of
    RAM is considered "big enough". The latter is only tested for macOS
    through sysctl.
    
    Fixes #446
    
    Part-of: <!1265>