From owner-freebsd-hackers Fri Dec 6 5: 4:18 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BBB8D37B401; Fri, 6 Dec 2002 05:04:16 -0800 (PST) Received: from apache.metrocom.ru (www.metrocom.ru [195.5.128.139]) by mx1.FreeBSD.org (Postfix) with ESMTP id C943143EB2; Fri, 6 Dec 2002 05:04:15 -0800 (PST) (envelope-from alex@metrocom.ru) Received: from apache.metrocom.ru (localhost [127.0.0.1]) by apache.metrocom.ru (8.12.6/8.12.6) with ESMTP id gB6CqgtQ023767; Fri, 6 Dec 2002 15:52:42 +0300 (MSK) Received: from localhost (alex@localhost) by apache.metrocom.ru (8.12.6/8.12.6/Submit) with ESMTP id gB6Cqfgp023764; Fri, 6 Dec 2002 15:52:41 +0300 (MSK) X-Authentication-Warning: apache.metrocom.ru: alex owned process doing -bs Date: Fri, 6 Dec 2002 15:52:41 +0300 (MSK) From: Varshavchick Alexander To: David Schultz Cc: Terry Lambert , , Subject: Re: maxusers and random system freezes In-Reply-To: <20021206123440.GA16544@HAL9000.homeunix.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 6 Dec 2002, David Schultz wrote: > Thus spake Varshavchick Alexander : > > Well, now I made KVA space 2G, we'll see later on if it helps to get rid > > of the sudden system halts, but for some reason a side-effect has > > appeared: pthread_create function returns EAGAIN error now, so I had to > > recompile the software using it with linux threads to make it working. > > With the old kernel these pieces worked without problems. Can it be that > > somehow the enlarged KVA space messed up with the threads mechanism? > > I'm not a pthreads expert, but my best guess is that your program > tried to create a thread with a stack address that was too high. > Remember that with a 2 GB KVA, user processes have only 2 GB to > play with instead of 3 GB, so attempting to mmap() a stack above > about 2 GB would cause pthread_create() to return EAGAIN. > Yes this makes sense, however this call to pthread_create didn't specify any special addresses for the new thread. The pthread_create was called with the NULL attribute which means that the system defaults were being used. Something in the system has gone wrong... ---- Alexander Varshavchick, Metrocom Joint Stock Company Phone: (812)118-3322, 118-3115(fax) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message