Skip to content

Commit

Permalink
Further update to MacOS X stack memory section
Browse files Browse the repository at this point in the history
Signed-off-by: Bob Yantosca <yantosca@seas.harvard.edu>
  • Loading branch information
yantosca committed Jul 7, 2022
1 parent 4588103 commit 020497d
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions docs/source/getting_started/01_installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -374,10 +374,10 @@ defined (if necessary).
Request maximum stack memory
----------------------------

Unlike GNU/Linux systems, MacOS X has a hard limit of 65332 bytes for
stack memory (i.e. the memory space where temporary automatic variables
are stored). This is a much lower amount of stack memory than would be
available on GNU/Linux systems.
MacOS X has a hard limit of 65332 bytes for stack memory (i.e. the
memory space where temporary automatic variables are stored). This is
a much lower amount of stack memory than would be available on
GNU/Linux systems.

To make sure you are using the maximum amount of stack memory on MacOS
X add this command to your :file:`.bashrc` file:
Expand All @@ -386,6 +386,12 @@ X add this command to your :file:`.bashrc` file:
ulimit -s 65532
and then apply the change with:

.. code-block:: console
$ . ~/.bashrc
This stack memory limit means that KPP will not be able to parse
mechanisms with more than about 2000 equations and 1000 species.
Because of this, we have added an :code:`#ifdef` block to KPP header
Expand Down

0 comments on commit 020497d

Please sign in to comment.