Clericer Posted November 2, 2019 Share Posted November 2, 2019 Hey guys, this is my first post, so please tell me if i do something wrong. My Problem: I'm using mysql innodb on Ubunut 18.04 > sql Ver 14.14 Distrib 5.7.27 < and im running unto some strange issues. First: if i change the values in my.cnf for innodb_buffer_pool_size=48G mysql using 50gb of ram but the database is 11gb large (there is only one Database) . Can someone tell me what mysql is doing? where are the 37gb of data comming from? I have some heavy select and write querys and i need fast results. At the beginning with my mysql experiences i wanted to create a fstab ram directory and put mysql into it, but then i found the buffer pool option and i hoped it would solve my problem. I hope someone have some ideas what to do or what i missunderstand. Best regards . Quote Link to comment https://forums.phpfreaks.com/topic/309455-mysql-using-50gb-ram/ Share on other sites More sharing options...
requinix Posted November 2, 2019 Share Posted November 2, 2019 There's a lot more to cache than just the data itself. Does your 11GB count indexes? It definitely won't include a query cache. Quote Link to comment https://forums.phpfreaks.com/topic/309455-mysql-using-50gb-ram/#findComment-1571192 Share on other sites More sharing options...
Shanaya Posted February 27, 2020 Share Posted February 27, 2020 That's 11 GB of database you have. Does it only include InnoDB data and indexes, then you should only have about buffer size accordingly. Most of the times buffer pool size should not fit your data size. Many tables are inactive, like backup tables lying around. Please check your complete database size including inactive components. For MySQL buffer size you can check this post, try tuning for improved performance. If nothing works, run MySQL Database recovery tool, free download is available for the preview of repaired database. Quote Link to comment https://forums.phpfreaks.com/topic/309455-mysql-using-50gb-ram/#findComment-1574948 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.