I am trying to learn the nuances between pid_max and setting user limits through ulimit. My understanding is that, no matter how high you set the user limits (for example setting user max processes to 120,000) in theory won't do anything if your pid_max is set to 32,000. In that case the pid_max limit would reached before ever reaching the user limit.. is that correct?
Is there a bash script I can run that spin up some fake processes so that I can do some testing on a VM?