Port-sparc archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: svn - cannot allocate mem



On Sun, Oct 16, 2022 at 08:33:55PM +0100, David Brownlee wrote:
> On Thu, 13 Oct 2022 at 17:48, Riccardo Mottola
> <riccardo.mottola%libero.it@localhost> wrote:
> >
> > Hi,
> >
> > I just launch svn, on an idle machine, which is on since some time and
> > yesterday compiled soem stuff
> >
> > legolas$ uptime
> >  3:47PM  up 15 hrs, 3 users, load averages: 0.00, 0.00, 0.00
> >
> > I get this:
> >
> > legolas$ svn
> > svn: _lwp_ctl: Cannot allocate mem
> >
> > what's up?
> >
> > legolas$ vmstat
> >  procs    memory      page                       disks   faults      cpu
> >  r b      avm    fre  flt  re  pi   po   fr   sr f0 s0   in   sy  cs us
> > sy id
> >  1 0   110400 102012  341   0   0    0    3    3  0  1  314  228  57 18
> > 6 76
> >
> >
> > lot's of free mem! I see no late messages in dmesg.
> >
> > If I launch git... doh!
> > legolas$ git
> > git: _lwp_ctl: Cannot allocate memory
> >
> > ... I do a reboot, abd both git and svn start again.
> 
> What does the following return?
> 
> sysctl proc.$$.rlimit.maxlwp.soft proc.$$.rlimit.maxlwp.hard
> 
> Also does the following help when its in that state (replace "doas"
> with your preferred run as root command, but note that $$ needs to be
> the pid of the shell in which you are trying to run svn/git :)
> 
> doas /sbin/sysctl -w proc.$$.rlimit.maxlwp.soft=2048
> proc.$$.rlimit.maxlwp.hard=4096
> 
> David

Is this netbsd-9? Note that in netbsd-9, the kernel has a hard-coded
limit of 2048.
http://mail-index.netbsd.org/pkgsrc-users/2022/07/14/msg035873.html

I'm also wondering if this isn't a problem with kernel memory? Maybe
look at:

vmstat -m

-- 
Paul Ripke
"Great minds discuss ideas, average minds discuss events, small minds
 discuss people."
-- Disputed: Often attributed to Eleanor Roosevelt. 1948.


Home | Main Index | Thread Index | Old Index