Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Jul 2003 15:52:50 +0200
From:      "Kai Mosebach" <kai.mosebach@freshx.de>
To:        <deischen@freebsd.org>
Cc:        freebsd-threads@freebsd.org
Subject:   AW: EAGAIN failure on pthread_create
Message-ID:  <001e01c34946$0d718e30$0100000a@alpha>
In-Reply-To: <Pine.GSO.4.10.10307130943570.14764-100000@pcnet5.pcnet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> On Sun, 13 Jul 2003, Kai Mosebach wrote:
> > Hi,
> >
> > i started using libkse instead of linuxthreads in my sapdb port, but
now
> > on kernelstart i get the message :
> >
> > 2003-07-13 15:29:20  4826 ERR 11008 TASKING  Could not create
thread:
> > 'Resource exeeed (curr:48)', rc = 1
> > 2003-07-13 15:29:20  4826 ERR 11908 SYSTEM   FATAL: Could not start
all
> > user task threads
> >
> > saying, that the return code of pthread_create is 1, and the number
of
> > created threads so far is 48, max_threads_per_proc is 150.
> 
> You probably are creating all your threads as scope system
> threads.  Each scope system threads consumes a KSEG (limited
> by kern.threads.max_grpups_per_proc).  I don't think you
> really need each thread to be scope system; try making
> the port use scope process[1].  If you insist that it does
> need scope system threads, then raise max_groups_per_proc.

Thought of this too, because max_groups_per_proc is 50 ...
First want it to run as system scope threads, (they are, you are
right;),
Then if working nice, i try to switch.

I think the threading part is the most tricky on in sapdb to port ...

> 
> [1] To anticipate the question, "will one thread blocking
>     block the entire process", no, other threads will be
>     run.
> 
> --
> Dan Eischen
> 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001e01c34946$0d718e30$0100000a>