• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Stack size limits
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stack size limits


  • Subject: Re: Stack size limits
  • From: Tom Lane <email@hidden>
  • Date: Tue, 11 Jul 2017 10:59:57 -0400
  • Comments: In-reply-to "David Ledger" <email@hidden> message dated "Tue, 11 Jul 2017 15:46:19 +0100"

"David Ledger" <email@hidden> writes:
> On 11 Jul 2017, at 14:18, Volker Blum wrote:
>> When I open a new xterm, and say ulimit -a, I get:
>> stack size              (kbytes, -s) 512

> I’m running a Mac mini at 10.6.8, Darwin Kernel Version 10.8.0, and a
> MBP at 10.11.6, Darwin Kernel Version 15.6.0. Without me doing anything
> other than exec’ing a ksh both give me a stack size of 8192K. A
> ‘Terminal’ window gives the same.

Yes, I get the same results as David; also

$ ulimit -a -H
core file size          (blocks, -c) unlimited
data seg size           (kbytes, -d) unlimited
file size               (blocks, -f) unlimited
max locked memory       (kbytes, -l) unlimited
max memory size         (kbytes, -m) unlimited
open files                      (-n) unlimited
pipe size            (512 bytes, -p) 1
stack size              (kbytes, -s) 65532
cpu time               (seconds, -t) unlimited
max user processes              (-u) 1064
virtual memory          (kbytes, -v) unlimited

which shows (and experimentation confirms) that I can set the stack size
limit to anything under 64M.

There's some useful info here

https://developer.apple.com/library/content/qa/qa1419/_index.html

which suggests that a 512K stack is what macOS defaults to for a
pthread.  I doubt your shell per se would have become threaded,
but maybe it was launched from a thread of a multithreaded program.
I wonder if you have anything unusual in your ~/.bashrc, X startup
scripts, etc.

                        regards, tom lane
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Stack size limits
      • From: Mike Thornburg <email@hidden>
References: 
 >Stack size limits (From: Volker Blum <email@hidden>)
 >Re: Stack size limits (From: "David Ledger" <email@hidden>)

  • Prev by Date: Re: Stack size limits
  • Next by Date: Re: Stack size limits
  • Previous by thread: Re: Stack size limits
  • Next by thread: Re: Stack size limits
  • Index(es):
    • Date
    • Thread