Increasing workspace size
2 posts
• Page 1 of 1
Increasing workspace size
Could somebody explain in detail how to get a larger workspace size? I'm using Dyalog 16.0 on OS X Yosemite 10.10.5. I read the documentation about MAXWS but nothing I tried worked.
- shallit
- Posts: 14
- Joined: Fri Oct 27, 2017 12:25 am
Re: Increasing workspace size
To set MAXWS to other than the default value, edit the file $HOME/.dyalog/dyalog.config using your preferred editor. I for example prefer to open a Terminal window and run
In that file you need to add a line similar to:
The "export" is critical as that defined MAXWS to be an environment variable rather than just a shell variable .. without the "export" MAXWS is not seen by the APL process. The "M" is for MiB; you can use G for GiB.
It is tempting to set MAXWS to a very large value, but you shoud consider how many APL processes you are likely to run at one time, and also bear in mind the amount of physical memory in the machine and the amount of swap space .. setting MAXWS too large can result in the O/S killing processes or restarting.
There is a description of how Dyalog's memory manager works at http://help.dyalog.com/16.0/Content/UserGuide/Installation%20and%20Configuration/Workspace%20Management.htm
vi .dyalog/dyalog.config
In that file you need to add a line similar to:
export MAXWS=2048M
The "export" is critical as that defined MAXWS to be an environment variable rather than just a shell variable .. without the "export" MAXWS is not seen by the APL process. The "M" is for MiB; you can use G for GiB.
It is tempting to set MAXWS to a very large value, but you shoud consider how many APL processes you are likely to run at one time, and also bear in mind the amount of physical memory in the machine and the amount of swap space .. setting MAXWS too large can result in the O/S killing processes or restarting.
There is a description of how Dyalog's memory manager works at http://help.dyalog.com/16.0/Content/UserGuide/Installation%20and%20Configuration/Workspace%20Management.htm
-
AndyS|Dyalog - Posts: 257
- Joined: Tue May 12, 2009 6:06 pm
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group