From owner-freebsd-questions@FreeBSD.ORG Fri May 14 02:20:53 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5AAB516A4CE for ; Fri, 14 May 2004 02:20:53 -0700 (PDT) Received: from boerse-berlin-bremen.de (h-213.61.228.202.host.de.colt.net [213.61.228.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0AEEA43D55 for ; Fri, 14 May 2004 02:20:52 -0700 (PDT) (envelope-from stephan.yaraghchi@boerse-berlin-bremen.de) content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.0.4712.0 Date: Fri, 14 May 2004 11:20:48 +0200 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Re: 64mb stack size limit? Thread-Index: AcQ5lL6tz54uH523RZCOy8Xq32YdcQ== From: "Yaraghchi, Stephan" To: cc: dot@fireduck.com Subject: Re: 64mb stack size limit? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 May 2004 09:20:53 -0000 > -----Original Message----- > Message: 36 > Date: Fri, 14 May 2004 04:48:31 -0400 > From: "Joseph Gleason" > Subject: 64mb stack size limit? > To: > Message-ID: <000e01c43990$3bf36fe0$08695f0a@frigate> > Content-Type: text/plain; charset=3D"iso-8859-1" >=20 > Short question: > Is there a way to increase the stack size limit for a user > process beyond 64mb? >=20 > Background: > FreeBSD in question is 5.2.1-RELEASE. >=20 > I am running an application (unison from > /usr/ports/net/unison). This program by virtue to how it > was developed (or possibly the language is uses, that being > ocaml) uses a large amount of stack space when syncing large > directory structures. >=20 > With directory structures that contain on the order of > 30,000 files, unison runs out of stack. >=20 > Using the bash shell: > ulimit reports a stack limit of 65536k: >=20 > # ulimit -a > core file size (blocks, -c) unlimited > data seg size (kbytes, -d) 524288 > file size (blocks, -f) unlimited > max locked memory (kbytes, -l) unlimited > max memory size (kbytes, -m) unlimited > open files (-n) 11095 > pipe size (512 bytes, -p) 1 > stack size (kbytes, -s) 65536 > cpu time (seconds, -t) unlimited > max user processes (-u) 5547 > virtual memory (kbytes, -v) unlimited >=20 > Doing ulimit -s with a higher value does not seem to produce > an error or change to this value. >=20 > A little C++ program that I wrote to test stack limits > confirms the 64mb limit, regardless of what I tell ulimit. > Source is attached. > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: stack-test.cpp > Type: application/octet-stream > Size: 210 bytes > Desc: not available > Url :=20 > http://lists.freebsd.org/pipermail/freebsd-questions/attachmen ts/20040514/1d92e517/stack-test-0001.obj Hi Joseph, there's a kernel option called 'MAXSSIZ'. Check /usr/src/sys/i386/conf/LINT for the details... Mit freundlichen Gruessen / with kind regards +++ S t e p h a n F. Y a r a g h c h i +++ +++ Information Technology +++ +++ Boerse Berlin-Bremen +++ Fasanenstr. 85 +++ 10623 Berlin +++ +++ mail stephan.yaraghchi@boerse-berlin-bremen.de +++ web http://www.boerse-berlin-bremen.de +++ +++ phone +49 (0) 30 3110910 +++ fax +49 (0) 30 31109178