Rechercher dans le manuel MySQL
22.5.10.26 The ndbinfo memoryusage Table
Querying this table provides information similar to that
provided by the ALL REPORT
MemoryUsage
command in the ndb_mgm
client, or logged by ALL DUMP
1000
.
The following table provides information about the columns in
the memoryusage
table. For each column, the
table shows the name, data type, and a brief description.
Additional information can be found in the notes following the
table.
Table 22.400 Columns of the memoryusage table
Column Name | Type | Description |
---|---|---|
node_id |
integer | The node ID of this data node. |
memory_type |
string | One of Data memory , Index memory ,
or Long message buffer . |
used |
integer | Number of bytes currently used for data memory or index memory by this data node. |
used_pages |
integer | Number of pages currently used for data memory or index memory by this data node; see text. |
total |
integer | Total number of bytes of data memory or index memory available for this data node; see text. |
total_pages |
integer | Total number of memory pages available for data memory or index memory on this data node; see text. |
The total
column represents the total amount
of memory in bytes available for the given resource (data memory
or index memory) on a particular data node. This number should
be approximately equal to the setting of the corresponding
configuration parameter in the config.ini
file.
Suppose that the cluster has 2 data nodes having node IDs
5
and 6
, and the
config.ini
file contains the following:
[ndbd default]
DataMemory = 1G
IndexMemory = 1G
Suppose also that the value of the
LongMessageBuffer
configuration parameter is allowed to assume its default (64
MB).
The following query shows approximately the same values:
- +---------+---------------------+------------+
- | node_id | memory_type | total |
- +---------+---------------------+------------+
- +---------+---------------------+------------+
In this case, the total
column values for
index memory are slightly higher than the value set of
IndexMemory
due to
internal rounding.
For the used_pages
and
total_pages
columns, resources are measured
in pages, which are 32K in size for
DataMemory
and 8K for
IndexMemory
. For long
message buffer memory, the page size is 256 bytes.
Document created the 26/06/2006, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/mysql-rf-mysql-cluster-ndbinfo-memoryusage.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.