Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Apr 1998 20:33:56 -0700 (PDT)
From:      "Bryan K. Ogawa" <bkogawa@primenet.com>
To:        mi@aldan.algebra.com
Cc:        questions@FreeBSD.ORG
Subject:   Re: Cannot fork
Message-ID:  <199804200333.UAA10279@foo.primenet.com>
References:   <199804191458.KAA02223@rtfm.ziplink.net>

next in thread | previous in thread | raw e-mail | index | archive | help
In localhost.freebsd.questions you write:

>Hello!

>Every once in a while I get this message which will not go away
>until I stop a few processes. It usually shows up when I run make,
>which spawns processes left and right (like when making ports).
>But I do not run that many:

>    mi@xxx:ports/editors/vim5 (155) ps -ax | wc -l
>         125

>And there is plenty of swap:

>    mi@xxx:ports/editors/vim5 (156) pstat -s
>    Device      1K-blocks     Used    Avail Capacity  Type
>    /dev/sd1s1b     65536    23068    42404    35%    Interleaved
>    /dev/sd0s1b     65536    22784    42688    35%    Interleaved
>    /dev/sd2s1b     65536    22564    42908    34%    Interleaved
>    Total          196416    68416   128000    35%

>Kernel limits known to me are also quite far from being close:

>    mi@xxx:ports/editors/vim5 (157) sysctl -a | grep proc
>    kern.maxproc: 2068
>    kern.maxfilesperproc: 4136
>    kern.maxprocperuid: 2067

>Not too many files open:

>    mi@xxx:ports/editors/vim5 (162) su -K
>    mi@xxx:ports/editors/vim5 (149) lsof | wc -l
>        1601

>And my user-ID belongs to the root's login class, so there should
>be no artificial limitations. There is nothing interesting in the
>log either. Machine has 128Mb of RAM.

Sounds like the user process limits from your shell.  When you get the
error next, try doing ulimit -a and trying the command again.


-- 
bryan k ogawa  <bkogawa@primenet.com>   http://www.primenet.com/~bkogawa/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199804200333.UAA10279>