Since the reported trigger was an ssh flood, I tried ssh -T -o 'PreferredAuthentications hostbased' localhost (which on my system will result in a quick failed ssh because hostbased authentication is not enabled in the server) in a tight, parallelized loop with this construct: for i in `seq 100000`; do echo localhost ; done \ | xargs -d '\n' -n1 -P8 --verbose sh -c \ "ssh -T -o 'PreferredAuthentications hostbased' localhost || exit 1"
The '|| exit 1' construct is needed because otherwise ssh exits with code 255, which causes xargs to stop running jobs. However, I did not encounter the kernel maxproc error during my test. My maxproc is the default as far as I'm aware: $ sysctl -a | grep maxproc kern.maxproc: 6164 kern.maxprocperuid: 5547 and it's very likely that my test is getting nowhere near this limit. kfreebsd-image-9-amd64: Installed: 9.0-10 Candidate: 9.0-10 Version table: *** 9.0-10 0 500 http://ftp.us.debian.org/debian/ wheezy/main kfreebsd-amd64 Packages 100 /var/lib/dpkg/status openssh-server: Installed: 1:6.0p1-4 Candidate: 1:6.0p1-4 Version table: 1:6.1p1-4 0 1 http://ftp.us.debian.org/debian/ experimental/main kfreebsd-amd64 Packages *** 1:6.0p1-4 0 500 http://ftp.us.debian.org/debian/ wheezy/main kfreebsd-amd64 Packages 100 /var/lib/dpkg/status libc0.1: Installed: 2.13-38 Candidate: 2.13-38 Version table: *** 2.13-38 0 500 http://ftp.us.debian.org/debian/ wheezy/main kfreebsd-amd64 Packages 100 /var/lib/dpkg/status Jeff
signature.asc
Description: Digital signature