Memory Estimation Tool
Introduction
This tool calculates the minimum memory for writing to meet specific workload through a number of parameters input by users. (Memory in IoTDB is divided into three parts: write memory, read memory and reserve memory. Write memory is used for data write allocation. The ratio of the three can be set in the configuration file) The unit of result is in GB.
Input parameters
When using this tool, the parameters needed to be input are as follows:
Parameter | Parameter Description | Example | Necessary |
-sg | —storagegroup <storage group number> | storage group number | -sg 20 | true |
-ts | —timeseries <total timeseries number> | total timeseries number | -ts 10000 | true |
-mts | —maxtimeseries <max timeseries> | maximum number of timeseries among storage groups.If the time series are evenly distributed in the storage group, this parameter may not be set. | -mts 10000 | false |
In memory estimation, if the calculation takes a long time, the tool will show the running progress below, which is convenient for users to master the progress.
Usage
Users can use the tool using scripts under the IOTDB_HOME/bin
folder. For Linux and Mac OS X users:
- Assume that there are 20 storage groups, 100k timeseries and timeseries are evenly distributed in the storage groups:
Shell >$IOTDB_HOME/bin/memory-tool.sh calmem -sg 20 -ts 100000
- Assume that there are 20 storage groups, 100k timeseries and maximum timeseries number among storage groups is 50000:
Shell >$IOTDB_HOME/bin/memory-tool.sh calmem -sg 20 -ts 100000 -mts -50000
For Windows users:
- Assume that there are 20 storage groups, 100k timeseries and timeseries are evenly distributed in the storage groups:
Shell >$IOTDB_HOME\bin\memory-tool.bat calmem -sg 20 -ts 100000
- Assume that there are 20 storage groups, 100k timeseries and maximum timeseries number among storage groups is 50000:
Shell >$IOTDB_HOME\bin\memory-tool.bat calmem -sg 20 -ts 100000 -mts -50000