In this post I will try to explain how memory management works
inside MySQL Cluster.
Memory management differs between different versions of MySQL
Cluster.
The general idea is as follows:
- Data (and ordered indexes) is stored in the DataMemory section. The DataMemory is organized in pages where each page is 32KB.
- You can view the DataMemory as a pool of pages consisting of
X number of 32 KB pages.
- A table is associated with one or more pages from the
DataMemory (pool of pages) depending on how much data is stored
in the table.
That is the general stuff, now let's see how this is used.
5.0 and 5.1
Allocation
- If the table is empty and there is an insert - one page will
be allocated from the page pool (DataMemory) and associated with
that table.
- Subsequent inserts will fill up the data …