`

To see the Buffer Pool size in GB run this:

 
阅读更多

To see the Buffer Pool size in GB run this:

SELECT FORMAT(BufferPoolPages*PageSize/POWER(1024,3),2) BufferPoolDataGB FROM(SELECT variable_value BufferPoolPages FROM information_schema.global_status
WHERE variable_name ='Innodb_buffer_pool_pages_total') A,(SELECT variable_value PageSize FROM information_schema.global_status
WHERE variable_name ='Innodb_page_size') B;

Database pages 360515 This is the number of pages with data inside the Buffer Pool

To see the amount of data in the Buffer Pool size in GB run this:

SELECT FORMAT(BufferPoolPages*PageSize/POWER(1024,3),2) BufferPoolDataGB FROM(SELECT variable_value BufferPoolPages FROM information_schema.global_status
WHERE variable_name ='Innodb_buffer_pool_pages_data') A,(SELECT variable_value PageSize FROM information_schema.global_status
WHERE variable_name ='Innodb_page_size') B;

To see the percentage of the Buffer Pool in use, run this:

SELECT CONCAT(FORMAT(DataPages*100.0/TotalPages,2),' %') BufferPoolDataPercentage FROM(SELECT variable_value DataPages FROM information_schema.global_status
WHERE variable_name ='Innodb_buffer_pool_pages_data') A,(SELECT variable_value TotalPages FROM information_schema.global_status
WHERE variable_name ='Innodb_buffer_pool_pages_total') B;

Modified db pages 300 This is the number of pages in the Buffer Pool that have to be written back to the database. They are also referred to as dirty pages.

To see the Space Taken Up by Dirty Pages, run this:

SELECT FORMAT(DirtyPages*PageSize/POWER(1024,3),2) BufferPoolDirtyGB FROM(SELECT variable_value DirtyPages FROM information_schema.global_status
WHERE variable_name ='Innodb_buffer_pool_pages_dirty') A,(SELECT variable_value PageSize FROM information_schema.global_status
WHERE variable_name ='Innodb_page_size') B;

To see the Percentage of Dirty Pages, run this:

SELECT CONCAT(FORMAT(DirtyPages*100.0/TotalPages,2),' %') BufferPoolDirtyPercentage FROM(SELECT variable_value DirtyPages FROM information_schema.global_status
WHERE variable_name ='Innodb_buffer_pool_pages_dirty') A,(SELECT variable_value TotalPages FROM information_schema.global_status
WHERE variable_name ='Innodb_buffer_pool_pages_total') B;

As for the other things in the display, run this:

SHOW GLOBAL STATUS LIKE'Innodb_buffer_pool%';
分享到:
评论

相关推荐

    Learning-to-See-in-the-Dark-master.zip

    《暗光视觉:CVPR 2018论文“Learning to See in the Dark”的深度学习实践》 在当今的计算机视觉领域,低光照环境下的图像处理一直是挑战之一。"Learning to See in the Dark"是2018年CVPR(计算机视觉与模式识别...

    微软内部资料-SQL性能优化2

    To run in the same address space. In-process servers are loaded in the client’s address space because they are implemented as DLLs. The main advantage of running in-process is that the system usually...

    mongodb: mongod 启动报错[about to fork child process, waiting until server is ready for connections]

    mongodb 命令行mongod启动报错 about to fork child ...To see additional information in this output, start without the "--fork" option. 可能的问题原因: 已经有mongd进程在运行了 配置错误(如dbpath log等)

    pytorch-Learning-to-See-in-the-Dark-master.zip

    在这个名为"pytorch-Learning-to-See-in-the-Dark-master"的项目中,我们看到的是一个针对CVPR(计算机视觉与模式识别)会议发表的论文实现。CVPR是计算机视觉领域的顶级会议,每年都会展示许多前沿的研究成果。此...

    commons-dbcp-1.4-src&commons-pool-1.5.4-src

    commons-pool-1.5.4 RELEASE NOTES This is a patch release containing a fix for POOL-152, a ...patches, or suggestions for improvement, see the commons-pool website: http://commons.apache.org/pool/

    BURNINTEST--硬件检测工具

    - A printer to run the printer test, set-up as the default printer in Windows. - A CD ROM + 1 Music CD or Data CD to run the CD test. - A CD-RW to run the CD burn test. - A network connection and the ...

    Learning-to-See-in-the-Dark-master_Dark_treeview_

    在IT领域,尤其是在软件开发中,"Learning to See in the Dark"通常指的是在低光照条件下的图像处理技术,旨在提高暗环境下拍摄的照片或视频的质量。然而,在Java编程中,"Dark treeview"可能是指一种特定的UI组件...

    The Definitive Guide to Spring Batch, 2nd Edition.epub

    The Definitive Guide to Spring Batch covers how running finite tasks on cloud infrastructure in a standardized way has changed where batch applications are run. Additionally, you’ll discover how ...

    MIPS经典教程《see mips run中文版》

    《See MIPS Run中文版》是一本深入探讨MIPS架构的经典教程,特别适合对计算机体系结构有浓厚兴趣的学者和研究人员。MIPS(Microprocessor without Interlocked Pipeline Stages)是一种广泛应用于学术研究、教学以及...

    数位板压力测试

    In this document, the words "tablet" and "digitizer" are used interchange¬ably to mean all absolute point¬ing or digitizing devices that can be made to work with this interface. The definition is ...

    计算机网络第六版答案

    23. The five layers in the Internet protocol stack are – from top to bottom – the application layer, the transport layer, the network layer, the link layer, and the physical layer. The principal ...

    See mips run

    In manyways, the first edition of See MIPS Run was a ground-breaking book on the MIPS architecture and its implementations. While other books covered similar material, See MIPS Run focused on what the...

    VclZip pro v3.10.1

    PLEASE TAKE A LOOK AT THE "WHAT's NEW IN THIS VERSION" LINK IN THE HELP FILE AS IT HAS CONVENIENT LINKS TO ALL OF THE NEW TOPICS. ==================== Version 3.10 Build 1 - Several bug fixes. - ...

    See MIPS Run 2nd(第二版中文版)

    ### MIPS体系结构与See MIPS Run 2nd Edition #### 一、MIPS体系结构概述 MIPS(Microprocessor without Interlocked Pipeline Stages)是一种RISC(Reduced Instruction Set Computing)架构,由MIPS ...

    acpi控制笔记本风扇转速

    The disassembler now emits a comment if a buffer appears to be a ResourceTemplate, but cannot be disassembled as such because the EndTag does not appear at the very end of the buffer. AcpiExec - ...

    Machine Learning (NG)第一部分

    讲义+题目In this exercise, you will implement linear regression and get to see it work on data. Before starting on this programming exercise, we strongly recom- mend watching the video lectures and ...

    a project model for the FreeBSD Project.7z

    This, combined with the vast amount of dependencies in the kernel and that it is not easy to see all the consequences of a kernel change, demands developers with a relative full understanding of the ...

    Ehlib_6.1.129

    See the example that shows this opportunity in a project: <EhLib Archive> \ Demos \ DBGridEh.LoadingStatus \ Project1.dpr compiled project: <EhLib Archive> \ Demos \ Bin \ DBGridEh.LoadingStatus....

Global site tag (gtag.js) - Google Analytics