On 02-01 19:43, Strahil Nikolov wrote: > On February 1, 2020 12:27:40 AM GMT+02:00, "Luke A. Call" > <[email protected]> wrote: > >I am still seeing this problem, even after logging out/in and ulimit -u > >shows 712. Running "ps -U myusername|less" yields about 180 lines and > >the system becomes unable to start even another xterm, or in tmux on a > >console, unable to start another shell window (in both cases: "Resource > >temporarily unavailable").
> >On 01-31 13:20, Luke A. Call wrote: > >> Hi misc. > >> I am getting "Resource temporarily unavailable" in > >> /var/log/authlog when I try to open too many "ssh [-X] > >user@localhost" > >> connections, or even "fork: retry: Resource temporarily unavailable" > >when > >> running "$ cat > /tmp/somefile". > >> In "man 3 __tfork" I see: > >> [EAGAIN] Resource temporarily unavailable. The system-imposed > >> limit on the total number of threads under execution > >> would be exceeded. This limit is configuration- > >> dependent. > >> [EAGAIN] Resource temporarily unavailable. The system-imposed > >> limit MAXUPRC on the total number of threads under > >> execution by a single user would be exceeded. MAXUPRC > >> is currently defined in <sys/param.h> as CHILD_MAX, > >> which is currently defined as 80 in <sys/syslimits.h>. > >> > >> (If multiple users could simultaneously run X, I might not ssh as > >much; > >> suggestions welcome there also, if you are in the mood.) > >> More details, not sure if needed: > >> [...] > Hi Luke, > Have you tried to reuse ssh connections. > In linux you can use something like this: > ControlMaster auto > ControlPath ~/.ssh/sockets/%r@%h-%p > ControlPersist 600 > > I guess it's still valid for openBSD. Thanks much, Strahil. I plan to try that. After I increased the # of available ptys, I can open enough terminal windows for my needs, but I can still hit the limit if I open ~40 of them with an "ssh user@localhost" (or probably a "cat > filename") in each one, so at this point I guess I am wanting to understand the system better for future reference. As in, which limit am I hitting, and where is that limit set? Thanks again. Luke

