Mysql-File Space Management
innodb_file_per_table
configuration option (the default), which stores each newly created table in a separate tablespace file (with extension .ibd
).
Pages, Extents, Segments, and Tablespaces
Pages:
By default, all tablespaces have a page size of 16KB; innodb_page_size
Extents:
The pages are grouped into extents of size 1MB for pages up to 16KB in size (64 consecutive 16KB pages, or 128 8KB pages, or 256 4KB pages). For a page size of 32KB, extent size is 2MB. For page size of 64KB, extent size is 4MB.
segment
A division within an InnoDB
tablespace. If a tablespace is analogous to a directory, the segments are analogous to files within that directory. A segment can grow. New segments can be created.
- 点赞
- 收藏
- 关注作者
评论(0)