Re: 64mb stack size limit?

2004-05-14 Thread Yaraghchi, Stephan
 -Original Message-
 Message: 36
 Date: Fri, 14 May 2004 04:48:31 -0400
 From: Joseph Gleason [EMAIL PROTECTED]
 Subject: 64mb stack size limit?
 To: [EMAIL PROTECTED]
 Message-ID: [EMAIL PROTECTED]
 Content-Type: text/plain; charset=iso-8859-1
 
 Short question:
 Is there a way to increase the stack size limit for a user
 process beyond 64mb?
 
 Background:
 FreeBSD in question is 5.2.1-RELEASE.
 
 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.
 
 With directory structures that contain on the order of
 30,000 files, unison runs out of stack.
 
 Using the bash shell:
 ulimit reports a stack limit of 65536k:
 
 # 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
 
 Doing ulimit -s with a higher value does not seem to produce
 an error or change to this value.
 
 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 : 
 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  [EMAIL PROTECTED]
+++ web   http://www.boerse-berlin-bremen.de
+++
+++ phone +49 (0) 30 3110910
+++ fax   +49 (0) 30 31109178
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 64mb stack size limit?

2004-05-14 Thread Joseph Gleason
 Hi Joseph,

 there's a kernel option called 'MAXSSIZ'.
 Check /usr/src/sys/i386/conf/LINT for the details...


Thanks.  I had to look on a 4.X box that still has LINT:

options MAXSSIZ=(256*1024*1024)

Which brings up another question, what happened to LINT?
None of my 5.X boxes seem to have it.  If it were there, I
could
probably have figured this one out for myself.

Where is the current preferred place to look for possible
kernel options?

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: 64mb stack size limit?

2004-05-14 Thread Yaraghchi, Stephan
 -Original Message-
 From: Joseph Gleason [mailto:[EMAIL PROTECTED]
 Sent: Friday, May 14, 2004 11:32 AM
 To: Yaraghchi, Stephan; [EMAIL PROTECTED]
 Subject: Re: 64mb stack size limit?
 
 
  Hi Joseph,
 
  there's a kernel option called 'MAXSSIZ'.
  Check /usr/src/sys/i386/conf/LINT for the details...
 
 
 Thanks.  I had to look on a 4.X box that still has LINT:
 
 options MAXSSIZ=(256*1024*1024)
 
 Which brings up another question, what happened to LINT?
 None of my 5.X boxes seem to have it.  If it were there, I
 could
 probably have figured this one out for myself.
 
 Where is the current preferred place to look for possible
 kernel options?
 
 

Hi Joseph,

sorry for my wrong assumption concerning your version of FreeBSD...

The handbook states the following:

Note: In FreeBSD 5.X and above the LINT is non-existent.
See the NOTES file for architecture dependent options.
Some options, mainly architecture independent ones,
are stored in the /usr/src/sys/conf/NOTES file.
It is advisable to review the options in here also.

This is another reason for me to stick to 4.X for now...



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  [EMAIL PROTECTED]
+++ web   http://www.boerse-berlin-bremen.de
+++
+++ phone +49 (0) 30 3110910
+++ fax   +49 (0) 30 31109178
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]