Go Back   DaemonForums > NetBSD > NetBSD General

NetBSD General Other questions regarding NetBSD which do not fit in any of the categories below.

Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 11th January 2014
DaBSD DaBSD is offline
Shell Scout
Join Date: Jan 2013
Location: Russia/Iceland
Posts: 101
Default correct ulimit stack value

Just in case someone needs it, on my fresh NetBSD 6.1.2 (i386) install with 1GB memory, I experienced problems with running Emacs (installed from binary) which gave me segmentation fault (as already discussed somewhere on this forum). I followed the following recommendation:


.. and set stack size to 20000 in /etc/profile:
ulimit -s 20000
All fine, Emacs started launching. However, another program stopped to do, Firefox. It lead me to finding an interesting pattern: Firefox 'liked' lower stack size while Emacs was 'up for' a higher one. Consequently, if I set its value too low or too high one of the programs wouldn't run. At the end I found a value satisfactory for either program: ulimit -s 8000, so now I have both of them running.

I hope this advice will be useful for those who might experience a similar problem.
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to configure OpenBSD (5.1) to make use of Comcast's native dual stack IPv6 SlyM OpenBSD General 7 11th March 2013 10:27 PM
Stack Protector (PaX) for FreeBSD bryn1u FreeBSD Security 1 14th January 2013 06:56 PM
could ulimit value make them start faster ? daemonfowl OpenBSD General 0 16th August 2012 09:15 PM
is this a correct attitude ? daemonfowl OpenBSD General 6 28th March 2012 08:31 PM
Correct tag for ports & docs vigol FreeBSD Ports and Packages 1 6th December 2009 02:06 PM

All times are GMT. The time now is 09:39 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick