> ----- Forwarded message from Strahil Nikolov <hunter86...@yahoo.com> -----
> From: Strahil Nikolov <hunter86...@yahoo.com>
> To: "Luke A. Call" <luke...@onemodel.org>, misc@openbsd.org
> Subject: Re: Resource temporarily unavailable: have to recompile?
> On February 1, 2020 12:27:40 AM GMT+02:00, "Luke A. Call" 
> <luke...@onemodel.org> 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:
> >> Am I running into a limit that will require recompiling the kernel
> >> (or changing my work style I suppose)?  Which man pages should I read
> >> next, or should I be thinking about this differently?
> >> 
> >> 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.)
> >> 

> 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.

Hi. Sorry so late at this, but replying to thank you for your suggestions, 
Strahil.

I finally figured out (again, it has been a while, I just failed to reply)
that (I think) I needed to (again?) increase maxproc-cur for the default
login class (per id -c), in /etc/login.conf and log back in.  I have had to do
that again after upgrading to 6.9 and 7.0 also, for several values, but 
fortunatly
the email from sysmerge prompted me in a way.  And now I can open as many
terminal windows as I want.

I also don't ssh as much locally, now that I understand xauth better,
thanks to info such as found in Part 8 of:
  https://www.exoticsilicon.com/jay/reckless_guide_to_openbsd/
...and very helpful pointers from Crystal Kolipe.

All the best,
--
Luke Call
* Are info sources trustworthy?  How do we know?  Based on identifying, and
  observing trustworthy behavior over time, of the original eyewitness, and
  all reporters in the chain to us?  And corroboration by other such?
* Happy to discuss, or: http://lukecall.net - Tech, many thots, peace amid 
commotion, fun. (Cmts/sugg welcome. https later.)

Reply via email to