From owner-freebsd-hackers Fri Dec 6 4:34:50 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 45CB537B401; Fri, 6 Dec 2002 04:34:49 -0800 (PST) Received: from HAL9000.homeunix.com (12-232-220-15.client.attbi.com [12.232.220.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id 57D7E43E4A; Fri, 6 Dec 2002 04:34:43 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Received: from HAL9000.homeunix.com (localhost [127.0.0.1]) by HAL9000.homeunix.com (8.12.6/8.12.5) with ESMTP id gB6CYfJt016674; Fri, 6 Dec 2002 04:34:41 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Received: (from das@localhost) by HAL9000.homeunix.com (8.12.6/8.12.5/Submit) id gB6CYfMK016673; Fri, 6 Dec 2002 04:34:41 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Date: Fri, 6 Dec 2002 04:34:41 -0800 From: David Schultz To: Varshavchick Alexander Cc: Terry Lambert , freebsd-questions@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG Subject: Re: maxusers and random system freezes Message-ID: <20021206123440.GA16544@HAL9000.homeunix.com> Mail-Followup-To: Varshavchick Alexander , Terry Lambert , freebsd-questions@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG References: <20021206112942.GA16222@HAL9000.homeunix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 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. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message