Important
Self-managed SingleStore will soon transition from version 9.1 RC to version 10. This new semantic versioning scheme will provide SingleStore with finer control over engine and feature releases that were not possible with the current versioning scheme.
In the interim, SingleStore 9.1 RC can be used to preview, evaluate, and provide feedback on the new and upcoming features in SingleStore 10 prior to its general availability. Ahead of this transition, SingleStore 9.0 is recommended for production workloads, which can later be upgraded to SingleStore 10.
Understanding Memory and Disk Usage with Studio
On this page
The following document demonstrates how to interpret the Total Memory Usage and Total Disk Usage statistics in the SingleStore Studio (or simply "Studio") Dashboard.
Cluster Memory Usage
Under Cluster Usage, Total Memory Usage accounts for cluster activities such as querying and logs, in addition to data storage.
The memory values displayed by the Info icon are evaluated using the following logic.
Total Memory Usage = Memory Used + Reserved Memory
Reserved Memory = Total Memory - Available Memory
The following sections demonstrate the queries that are used to compute the Total Memory Usage.
SELECTIFNULL(SUM(mv.VARIABLE_VALUE - mv2.VARIABLE_VALUE), 0) * 1024 * 1024 AS memoryUsageBFROMINFORMATION_SCHEMA.MV_GLOBAL_STATUS mvINNER JOININFORMATION_SCHEMA.MV_GLOBAL_STATUS mv2ONmv.NODE_ID = mv2.NODE_IDWHEREmv.VARIABLE_NAME = 'Total_server_memory' ANDmv2.VARIABLE_NAME = 'Buffer_manager_cached_memory' ANDmv.NODE_TYPE = 'LEAF';
memoryUsageB
1929170124.8The following query retrieves the Total Memory value.
SELECTSUM(totalMemoryB) AS totalMemoryBFROM (SELECTMAX(IF(CGROUP_TOTAL_B > POW(2, 62) OR CGROUP_TOTAL_B = -1,HOST_TOTAL_B,CGROUP_TOTAL_B)) AS totalMemoryBFROMINFORMATION_SCHEMA.MV_SYSINFO_MEMWHERETYPE='LEAF'GROUP BYIP_ADDR);
totalMemoryB
101335216128The following query obtains the Available Memory value.
SELECTSUM(MAX_MEMORY_MB) * 1024 * 1024 AS availableMemoryBFROM (SELECTMAX(MAX_MEMORY_MB) AS MAX_MEMORY_MBFROMINFORMATION_SCHEMA.MV_NODESWHERETYPE='LEAF'GROUP BYIP_ADDR);
availableMemoryB
91200946176When the memory values returned by the queries are converted from Bytes to Gigabytes and applied in the Total Memory Usage formula, the following results are obtained (demonstrated in the first screenshot).
Reserved Memory = 94.
Total Memory Used = 1.
Note
Unit conversion from Byte to Gigabyte is performed by dividing the byte values by (1024*1024*1024).
Cluster Disk Usage
Under Cluster Usage, you can view the Total Disk Usage of the cluster.
The first query below computes the Total Disk Usage, whereas the second one determines the Total Disk Space.
WITHmv_query AS (SELECTMAX(MOUNT_USED_B) AS diskUsageBFROMINFORMATION_SCHEMA.MV_SYSINFO_DISKWHERETYPE = 'LEAF'GROUP BYIP_ADDR)SELECTSUM(diskUsageB) AS diskUsageBFROMmv_query;
diskUsageB
350867456WITHmv_query AS (SELECTMAX(MOUNT_TOTAL_B) AS diskTotalBFROMINFORMATION_SCHEMA.MV_SYSINFO_DISKWHERETYPE = 'LEAF'GROUP BYIP_ADDR)SELECTSUM(diskTotalB) AS diskTotalBFROMmv_query;
diskTotalB
268435456000Note
Unit conversion from Byte to Gigabyte is performed by dividing the byte values by (1024*1024*1024).
Last modified: