Re: svn - cannot allocate mem

Riccardo Mottola <[email protected]>
Newsgroups gmane.os.netbsd.ports.sparc
Message-ID <[email protected]>
Hi All,

this time it took me 2 days of work to get it in this state again.

Note that this is a NetBSd 9.2 2x HyperSparc system

I also have a 1x MicroSparcII system which I use much less (being much
slower) and a 64Bit UltraSparc which never exhibited this issue, nor
have I seen this on Intel!
However, Intel is my laptop, so I usually reboot it more often (but
being faster, do a lot of more work...)

legolas: {25} vmstat -m
Memory resource pool statistics
Name        Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg
Maxpg Idle
L1 pagetable 1024     182    0       78    32     0    32    32     0  
inf    6
L2/L3 pagetable 256 353189   0   352510   133    22   111   111     0  
inf   68
amappl        48     1216    0      127    13     0    13    13     0  
inf    0
anonpl        16    47219    0    18982   112     0   112   112     0  
inf    0
biopl        192      198    0      103     5     0     5     5     0  
inf    0
buf16k      16384   12658    0    11368  1313   990   323   380    
1     1    0
buf1k       1024        2    0        2     1     0     1     1    
1     1    1
buf2k       2048    40797    0    29436   676   188   488   498    
1     1    0
buf4k       4096      537    0      478    19    15     4     6    
1     1    0
buf512b      512       14    0       14     1     0     1     1    
1     1    1
buf8k       8192      317    0      273    32    26     6     8    
1     1    0
bufpl        192    20160    0     3547   792     0   792   792     0  
inf    0
cwdi          64       93    0       29     2     0     2     2     0  
inf    0
execargs    262144   8674    0     8674     4     2     2     2     0   
16    2
extent        24  1695932    0  1695928     1     0     1     1     0  
inf    0
fcrpl        120       18    0       17     2     0     2     2     2  
inf    1
fdfile        64      821    0      149    11     0    11    11     0  
inf    0
ffsdino1     128    18389    0      370   582     0   582   582     0  
inf    0
ffsino       200    19842    0     1823   901     0   901   901     0  
inf    0
file          64      244    0       39     4     0     4     4     0  
inf    0
filedesc     704       93    0       29    13     0    13    13     0  
inf    0
icmp          16        4    0        4     1     0     1     1     0  
inf    1
icmp6         16        2    0        2     1     0     1     1     0  
inf    1
in6pcbpl     184      353    0      348     1     0     1     1     0  
inf    0
inmltpl       32        2    0        0     1     0     1     1     0  
inf    0
inpcbpl      144      377    0      370     1     0     1     1     0  
inf    0
kcpuset       64      122    0        0     2     0     2     2     0  
inf    0
kcredpl      192      207    0       11    10     0    10    10     0  
inf    0
kmem-1024   1024      632    0      239    99     0    99    99     0  
inf    0
kmem-112     112      275    0       36     7     0     7     7     0  
inf    0
kmem-128     128      165    0       30     5     0     5     5     0  
inf    0
kmem-16       16      651    0       58     3     0     3     3     0  
inf    0
kmem-160     160      543    0       53    20     0    20    20     0  
inf    0
kmem-192     192      317    0       59    13     0    13    13     0  
inf    0
kmem-2048   2048       62    0       17    23     0    23    23     0  
inf    0
kmem-224     224      186    0       46     8     0     8     8     0  
inf    0
kmem-24       24      394    0       21     3     0     3     3     0  
inf    0
kmem-256     256      118    0       29     6     0     6     6     0  
inf    0
kmem-32       32     4812    0     2364    20     0    20    20     0  
inf    0
kmem-320     320      142    0       42     9     0     9     9     0  
inf    0
kmem-384     384      138    0       50    10     0    10    10     0  
inf    1
kmem-40       40      483    0       58     5     0     5     5     0  
inf    0
kmem-4096   4096       85    0       30    55     0    55    55     0  
inf    0
kmem-448     448       81    0       29     6     0     6     6     0  
inf    0
kmem-48       48      244    0       27     3     0     3     3     0  
inf    0
kmem-512     512       97    0       30     9     0     9     9     0  
inf    0
kmem-56       56      272    0       42     4     0     4     4     0  
inf    0
kmem-64       64      466    0       34     7     0     7     7     0  
inf    0
kmem-768     768      146    0       22    25     0    25    25     0  
inf    0
kmem-8         8     1325    0      199     3     0     3     3     0  
inf    0
kmem-80       80      283    0       45     5     0     5     5     0  
inf    0
kmem-96       96      223    0       45     5     0     5     5     0  
inf    0
ksiginfo     120       65    0       30     2     0     2     2     0  
inf    0
kva-12288   12288       7    0        2     1     0     1     1     0  
inf    0
kva-16384   16384      11    0        4     1     0     1     1     0  
inf    0
kva-20480   20480       1    0        0     1     0     1     1     0  
inf    0
kva-4096    4096     5208    0        0    82     0    82    82     0  
inf    0
kva-65536   65536       2    0        0     1     0     1     1     0  
inf    0
kva-8192    8192        9    0        4     1     0     1     1     0  
inf    0
llentrypl    184       25    0       22     1     0     1     1     0  
inf    0
lockf         64       23    0        9     1     0     1     1     0  
inf    0
lwppl        704      114    0       20    20     0    20    20     0  
inf    0
mbpl         256      204    0      138    10     1     9    10     1  
inf    4
mclpl       2048      184    0      143    76     4    72    76     4 
5625   51
mutex         64    19355    0      124   306     0   306   306     0  
inf    0
ncache       128    18925    0      898   582     0   582   582     0  
inf    0
ncr53c9x_ecb  56   402919    0   402919     2     1     1     2     1  
inf    1
pcache       576       88    0        4    12     0    12    12     0  
inf    0
pcachecpu     64       90    0        0     2     0     2     2     0  
inf    0
pcglarge     512      756    0      331    54     0    54    54     0  
inf    0
pcgnormal    128     5139    0     2952    95     0    95    95     0  
inf   16
pdict16       48       88    0       76     1     0     1     1     0  
inf    0
pdict32       64        4    0        0     1     0     1     1     0  
inf    0
phpool-128    48       33    0        0     1     0     1     1     0  
inf    0
phpool-256    64        6    0        0     1     0     1     1     0  
inf    0
phpool-32     32     2692    0     1260    12     0    12    12     0  
inf    0
phpool-512    96        3    0        0     1     0     1     1     0  
inf    0
phpool-64     40       83    0        0     1     0     1     1     0  
inf    0
piperd       216       47    0       20     2     0     2     2     0  
inf    0
pipewr       216       59    0       30     3     0     3     3     0  
inf    1
plimitpl     216       93    0       53     4     0     4     4     0  
inf    1
pmappl      2960       91    0       39    64     0    64    64     0  
inf   12
pnbufpl     1024       69    0       35     9     0     9     9     0  
inf    0
procpl       576       80    0       32     9     0     9     9     0  
inf    0
proparay      32       31    0        0     1     0     1     1     0  
inf    0
propdict      32      122    0       42     1     0     1     1     0  
inf    0
propnmbr      40        9    0        0     1     0     1     1     0  
inf    0
propstng      24      205    0       78     1     0     1     1     0  
inf    0
pstatspl     312       80    0       32     5     0     5     5     0  
inf    0
ptimerpl     256       52    0       47     1     0     1     1     0  
inf    0
ptimerspl    152       52    0       47     1     0     1     1     0  
inf    0
pvtable       16  4468047    0  4459232   113    51    62   102     3  
inf   20
ractx         32    13704    0     1774    96     0    96    96     0  
inf    0
rndctx         8        4    0        2     1     0     1     1     0  
inf    0
rndsample    528       10    0        1     2     0     2     2     0  
586    0
rndtemp      512        4    0        2     1     0     1     1     0  
inf    0
rtentpl      216       28    0        2     2     0     2     2     0  
inf    0
rwlock        64        2    0        0     1     0     1     1     0  
inf    0
sackholepl    24        1    0        1     1     1     0     1     0  
inf    0
scxspl       168   402883    0   402883     4     2     2     4     1  
inf    2
segmap      1024    34346    0    34284    36    12    24    34     0  
inf    8
sigacts     2056       90    0       39    64     0    64    64     0  
inf   13
socket       336      148    0       23    11     0    11    11     0  
inf    0
synpl        208        2    0        2     1     1     0     1     0  
inf    0
tcpcbpl      528      170    0      158     2     0     2     2     0  
inf    0
tcpipqepl     32        7    0        7     1     1     0     1     0  
inf    0
tmpfs_node   168        1    0        0     1     0     1     1     0  
inf    0
tstilepl      56      102    0       32     2     0     2     2     0  
inf    0
uarea       8192      102    0       32    97     0    97    97     0  
inf   27
ufsdir       264       38    0       29     2     0     2     2     0  
inf    1
vcachepl     200    18266    0      591   902     0   902   902     0  
inf    0
vmembt        32      797    0        0     7     0     7     7     0  
inf    0
vmmpepl       88     2673    0      818    57     0    57    57     0  
inf    0
vmsppl       216       73    0       39     4     0     4     4     0  
inf    0
Totals            7632324    0  7437658  7797  1317  6480

In use 64524K, total allocated 76924K; utilization 83.9%

Does this help? I don't know what to look at. Utilization looks high for
an idle system:

load averages:  0.00,  0.00,  0.00;               up
1+16:21:24                                                                                                    
16:24:21
19 processes: 17 sleeping, 2 on CPU
CPU states:  0.1% user,  0.0% nice,  0.0% system,  0.1% interrupt, 99.8%
idle
Memory: 140M Act, 83M Inact, 9876K Exec, 202M File, 41M Free
Swap: 128M Total, 128M Free



David Brownlee wrote:
> What does the following return?
>
> sysctl proc.$$.rlimit.maxlwp.soft proc.$$.rlimit.maxlwp.hard

legolas: {30} sysctl proc.$$.rlimit.maxlwp.soft proc.$$.rlimit.maxlwp.hard
proc.5605.rlimit.maxlwp.soft = 160
proc.5605.rlimit.maxlwp.hard = 2048


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

legolas: {48} echo $$
5605
legolas: {49} sudo /sbin/sysctl -w proc.5605.rlimit.maxlwp.soft=2048
proc.5605.rlimit.maxlwp.soft: 160 -> 2048

legolas: {50} git pull
git: _lwp_ctl: Cannot allocate memory
fatal: full write to remote helper failed: Broken pipe


So no, it doesn't help.



Riccardo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.