Automatically Tune MashZone Memory and Cache Configuration
This uses a simple script to automatically update memory and cache configuration based on preset sizes. These preset values, however, do not take any memory requirements for Presto or Presto In-Memory Stores into account and thus may not be suitable in some circumstances.
1. Determine which present configuration you want to use.
Preset memory configuration is defined by three sizes: s = small, m = medium and l = large. These presets are configured based on the following assumptions:
Preset Option | Heap | Core Threadsize | Maximum Threadsize | Internal Caches |
S: a small application on a host with: ![*](bullet.gif) 64 bit ![*](bullet.gif) 2 Cores ![*](bullet.gif) 4G of memory | 1G | 4 | 4 | ![*](bullet.gif) Base = 125M ![*](bullet.gif) Top = 100M ![*](bullet.gif) Debug =25M |
M: a medium application on a host with: ![*](bullet.gif) 64 bit ![*](bullet.gif) 4 Cores ![*](bullet.gif) 16G of memory | 8G | 8 | 12 | ![*](bullet.gif) Base = 1G ![*](bullet.gif) Top = 800M ![*](bullet.gif) Debug =200M |
L: a large application on a host with: ![*](bullet.gif) 64 bit ![*](bullet.gif) 8 Cores ![*](bullet.gif) 64G of memory | 16G | 16 | 24 | ![*](bullet.gif) Base = 2G ![*](bullet.gif) Top = 1.6G ![*](bullet.gif) Debug = 400M |
2. Open a command or terminal window and move to the presto-install/mashzone/tool/runtool folder.
3. Enter the appropriate command shown below based on your operating system:
![*](bullet.gif)
For Windows, enter
upgradetool.bat -system preset-sizeUsing the size option you determined in step 1.
![*](bullet.gif)
For Linux, OS/X or UNIX, enter
upgradetool.bat -system preset-sizeUsing the size option you determined in step 1.