當前位置:編程學習大全網 - 網站源碼 - mysql內核源碼是什麽語言寫的

mysql內核源碼是什麽語言寫的

mysql的內存管理龐大而先進,這在mem0pool.c文件的開頭註釋中都有說明,粗略的可以分成四部分,包含9大塊:

buffer pool,

parsed andoptimized SQL statements,

data dictionarycache,

log buffer,

locks for eachtransaction,

hash table forthe adaptive index,

state andbuffers for each SQL query currently being executed,

session foreach user, and

stack for eachOS thread.

9大塊通過4部分進行管理

A solution tothe memory management:

1. the bufferpool size is set separately;

2. log buffersize is set separately;

3. the commonpool size for all the other entries, except 8, is set separately.

也就是緩沖池,redo日誌緩沖,普通池和8(用戶session信息,可看做壹部分)

redo日誌緩沖由redo部分單獨管理,bufferpool也就是緩沖池是壹個復雜的部分,內容很多,普通池上面說了,除了8,和1,2.其余的都歸它管。上面這個結構就是mysql內存子系統的完整圖景。

所以說是c和c++寫的

  • 上一篇:Tc源代碼
  • 下一篇:誰有2019古箏名曲欣賞百度雲資源鏈接請發我壹下地址謝謝
  • copyright 2024編程學習大全網