|
|
|
InnoDB System Tablespace, ibdata1 file size
|
|||
|---|---|---|---|
|
#18+
Dear experts, I have another question about InnoDB Data Structure. As i read documentation it states that System Tablespace is the default place where InnoDB store all his tables, indexes and datas if innodb_file_per_table = 0 (or disabled). It also states that ibdata1 file is the only "data file" created by default after MySQL fresh installation. So data file is a file that InnoDB/MySQL and any other RDBMS uses for storing all it's data. And as i stated above if innodb_file_per_table = 0 then all InnoDB data will be stored in ibdata1 and it equally means that ibdata1 is System Tablespace. Another thing that Documentation says is in System Tablespace InnoDB stores it's : data dictionary, undo log, change buffer and doublewrite buffer. System Tablespace So in ibdata1 file there are segments other than Table Datas --- data dictionary, undo log, change buffer and doublewrite buffer. OK. That is quite simple to catch. i agree :) But After fresh installation of MySQL 5.6.15 on Centos 6.5: Код: sql 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. Fresh default installation states that initial size of ibdata1 will be 12M and with autoextend feature. For testing i just check size of ibdata1: Код: sql 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. Size of ibdata1 file is 79691776 bytes: Код: sql 1. 2. 3. 4. 5. 6. 7. So it is 76 M in size. It is a fresh installation so there are nothing but system tables in MySQL: Код: sql 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. Size information of these system tables are: Код: sql 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. It is just 0.79 M in size. So The question is how i can figure out why my single ibdata1 file in 79 M in size? in fact i have not got such size of tables. Actually 79 - 0.79 = 78.21 M size of data file is used some other things or it is just allocated for feature use. How and why? Maybe it is allocated and captured by Undo Log? if it is? how i can measure the size of Undo Log? Thanks in advance. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 02.02.2014, 14:37:02 |
|
||
|
InnoDB System Tablespace, ibdata1 file size
|
|||
|---|---|---|---|
|
#18+
Shahriyar.R, Размер пустого ibdata1 10 мегабайт. Если размер 72М, то скорее всего tablespace имеет какую-то историю. Я бы попробовал исследовать ibdata1 с помощью утилиты innodb_ruby Jeremy Cole. Посмотрите примеры тут: http://blog.jcole.us/2013/01/03/a-quick-introduction-to-innodb-ruby/ ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 02.02.2014, 19:49:24 |
|
||
|
|

start [/forum/topic.php?fid=47&tid=1835294]: |
0ms |
get settings: |
8ms |
get forum list: |
17ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
58ms |
get topic data: |
10ms |
get forum data: |
2ms |
get page messages: |
31ms |
get tp. blocked users: |
1ms |
| others: | 198ms |
| total: | 331ms |

| 0 / 0 |
