From owner-freebsd-hackers Fri Dec 6 8:29:37 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 F23EE37B401 for ; Fri, 6 Dec 2002 08:29:35 -0800 (PST) Received: from web41213.mail.yahoo.com (web41213.mail.yahoo.com [66.218.93.46]) by mx1.FreeBSD.org (Postfix) with SMTP id 9C65D43ECF for ; Fri, 6 Dec 2002 08:29:35 -0800 (PST) (envelope-from gathorpe79@yahoo.com) Message-ID: <20021206162935.14339.qmail@web41213.mail.yahoo.com> Received: from [24.114.70.137] by web41213.mail.yahoo.com via HTTP; Fri, 06 Dec 2002 11:29:35 EST Date: Fri, 6 Dec 2002 11:29:35 -0500 (EST) From: Gary Thorpe Subject: Re: maxusers and random system freezes To: David Schultz Cc: freebsd-hackers@freebsd.org In-Reply-To: <20021206123440.GA16544@HAL9000.homeunix.com> 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 --- 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. > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message I have a question: does the entire KVA *have* to be mapped into the each process's address space? How much of the KVA does a process need to communicate with the kernel effectively? ______________________________________________________________________ Post your free ad now! http://personals.yahoo.ca To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message