Last active
          September 8, 2025 18:17 
        
      - 
      
- 
        Save abraithwaite/1d78a946f90be478faedb5ca4db6d62e to your computer and use it in GitHub Desktop. 
    Zoom in Systemd Cgroups on Linux. Change the max allocations to fit your workstation. 
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/usr/bin/bash -xe | |
| cat <<EOF > "${HOME}/.config/systemd/user/zoom.slice" | |
| [Slice] | |
| AllowedCPUs=0-4 | |
| MemoryHigh=6G | |
| EOF | |
| cat /usr/share/applications/Zoom.desktop | sed -E 's#^(Exec=).*$#Exec=/usr/bin/systemd-run --user --slice=zoom.slice /opt/zoom/ZoomLauncher#' > "${HOME}/.local/share/applications/Zoom.desktop" | |
| update-desktop-database ~/.local/share/applications | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
@desrod hey I think @brightonanc and I found a workaround for this. If you replace the exec line in
${HOME}/.local/share/applications/Zoom.desktopwithExec=systemd-run --scope -p MemoryMax=4G -p MemoryHigh=2G -p MemorySwapMax=0 -p CPUQuota=25%% --user -- /usr/bin/zoom %UThen it should work with SSO and limit RAM and CPU cores.