sql server 内存

previous parts of the SQL Server performance metrics series, we presented most important SQL Server memory metrics that indicate overall SQL Server memory pressure. The described metrics show how SQL Server uses memory and physical I/O to store, read and write data pages. In this part, we continue with 在SQL Server性能指标系列的前面部分中 ,我们介绍了最重要SQL Server内存指标,这些指标指示总体SQL Server内存压力。 所描述的指标显示了SQL Server如何使用内存和物理I / O来存储,读取和写入数据页。 在这一部分中,我们继续使用SQL Server Buffer Manager metrics and memory counters SQL Server缓冲区管理器指标和内存计数器

页面读取/秒 (Page reads/sec)

“Page reads/sec indicates the number of physical database page reads that are issued per second. This statistic displays the total number of physical page reads across all databases. Because physical I/O is expensive, you may be able to minimize the cost, either by using a larger data cache, intelligent indexes, and more efficient queries, or by changing the database design.”[1]

“每秒页读取数表示每秒发出的物理数据库页读取数。 该统计信息显示所有数据库中的物理页面读取总数。 由于物理I / O昂贵,因此您可以通过使用更大的数据缓存,智能索引和更有效的查询,或者通过更改数据库设计来使成本最小化。” [1]

In other words, this shows how many times the pages were read from disk, in a second. Please note that this is not the number of pages read from disk (which is the Pages input/sec metric described below). This is a server-level metric, the number indicates page reads for all databases on the instance

换句话说,这显示在一秒钟内从磁盘读取页面的次数。 请注意,这不是从磁盘读取的页面数(这是下面描述的“页面输入/秒”度量)。 这是服务器级别的指标,该数字表示实例上所有数据库的页面读取

The recommended Page reads/sec value should be under 90. Higher values indicate insufficient memory and indexing issues

推荐的页面读取/秒值应小于90。较高的值表示内存不足和索引问题

The value can be obtained from the sys.dm_os_performance_counters system view

该值可以从sys.dm_os_performance_counters系统视图中获得


SELECT object_name, counter_name, cntr_value
FROM sys.dm_os_performance_counters
WHERE [object_name] LIKE '%Buffer Manager%'
AND [counter_name] = 'Page reads/sec'

页面写入/秒 (Page writes/sec)

The Page writes/sec metric is similar to Page reads/sec and shows the number of times pages were written to disk on the server level

页面写入/秒”度量标准类似于“ 页面读取/秒”,并显示在服务器级别将页面写入磁盘的次数。

“Indicates the number of physical database page writes that are issued per second.”[1]

“指示每秒发出的物理数据库页面写入数。” [1]

The value can be obtained from the sys.dm_os_performance_counters system view

该值可以从sys.dm_os_performance_counters系统视图中获得


SELECT object_name, counter_name, cntr_value
FROM sys.dm_os_performance_counters
WHERE [object_name] LIKE '%Buffer Manager%'
AND [counter_name] = 'Page writes/sec'

The same as Page reads/sec, the recommended value for Page writes/sec is below 90

每秒页面读取次数相同, 每秒 页面写入次数的建议值小于90

High paging and disk I/O activity indicate insufficient memory. If the excessive disk activity is not caused by paging (indicated by normal Page Faults/sec values, compared to the defined metric baseline), Page reads/sec and Page writes/sec will be high. In this situation, it’s recommended to check the Lazy writes/sec and Page Life Expectancy values as well, as the non-zero Lazy writes/sec and low Page Life Expectancy require attention [2]

高页面调度和磁盘I / O活动指示内存不足。 如果过多的磁盘活动不是由分页引起的(由正常的Page Faults / sec值(与定义的度量标准基线相比表示)),则Page reads / secPage writes / sec将很高。 在这种情况下,建议同时检查“ 惰性写入/秒”和“ 页面寿命期望”值,因为非零的“ 惰性写入/秒”和较低的“ 页面寿命”需要引起注意[2]

页面输入/秒和页面输出/秒 (Pages Input/sec and Pages output/sec)

Pages Input/sec and Pages Output/sec are memory counters

页输入/秒页输出/秒是内存计数器

Pages Input/sec is defined as “the number of pages brought in from disk every second. The difference between this value and Page Faults/sec represents soft page faults.”[3]

页输入/秒定义为“每秒从磁盘引入的页数。 此值与“页面错误/秒”之间的差表示软页面错误。” [3]

Pages Output/sec is defined as “the number of pages written to disk every second to make room in the working set of the process for newly faulted pages. If the process modifies the pages, they must be written out. They cannot be discarded.”[3]

每页输出每秒数定义为“每秒写入磁盘的页数,以便为新出现故障的页在进程的工作集中腾出空间。 如果该过程修改了页面,则必须将其写出。 他们不能被丢弃。” [3]

In other words, these metrics show how many of the requested pages not available in memory had to be read from and written to disk in order to resolve hard page faults

换句话说,这些指标表明必须从磁盘读取和写入磁盘中多少个内存中不可用的请求页面才能解决硬页面错误

The Pages/sec metric is the sum of Pages Input/sec and Pages Output/sec. If the Pages/sec value is constantly higher than 50, to confirm that hard page faults are happening, additional investigation is needed. It’s recommended to monitor disk behavior and paging via memory and disk counters, such as Pages Input/sec, Pages Output/sec, Disk Reads/sec, and Avg. Disk Read Bytes/sec

页面/秒”度量标准是“ 页面输入/秒”和“ 页面输出/秒”的总和。 如果“ 页数/秒”值始终高于50,则要确认是否发生硬页错误,需要进行其他调查。 建议通过内存和磁盘计数器(例如, Pages Input / secPages Output / secDisk Reads / secAvg)监视磁盘行为和分页 磁盘读取字节/秒

Another metric that is closely related to Pages Input/sec and Pages Output/sec is Page Faults/sec. It shows both hard and soft page faults. As soft page faults don’t affect SQL Server performance, it’s good to check the Page Reads/sec value first and compare it to Pages Input/sec. If the latter is greater, it indicates a high page fault rate that can be solved by increasing memory designated to SQL Server

Pages / secPages / sec紧密相关的另一个指标是Page Faults / sec 。 它同时显示硬页面错误和软页面错误。 由于软页面错误不会影响SQL Server性能,因此最好先检查“ Page Reads / sec”值并将其与“ Pages Input / sec”进行比较。 如果后者更大,则表明页面错误率很高,可以通过增加指定给SQL Server的内存来解决

Both Pages Input/sec and Pages Output/sec values are recommended to be lower than 10

建议页面输入/秒页面输出/秒的值都小于10

SQL Server Buffer Manager Page reads/sec and Page writes/sec metrics, and Pages Input/sec and Page Output/sec memory counters help identify and solve performance issues, such as insufficient or inadequately configured memory. They show the number of times the pages were read/written from disk and the total number of pages read/written. The threshold is clearly defined so performance issues can be diagnosed without creating a baseline first

SQL Server Buffer Manager页面读取/秒页面写入/秒的度量,以及页面输入/秒页面输出/秒的内存计数器有助于识别和解决性能问题,例如内存不足或配置不正确。 它们显示了从磁盘读取/写入页面的次数以及读取/写入的页面总数。 明确定义了阈值,因此无需先创建基准即可诊断性能问题

翻译自: https://www.sqlshack.com/sql-server-memory-performance-metrics-part-3-sql-server-buffer-manager-metrics-memory-counters/

sql server 内存

sql server 内存_SQL Server内存性能指标–第3部分– SQL Server Buffer Manager指标和内存计数器相关推荐

  1. sql server 内存_SQL Server内存性能指标–第1部分–内存页/秒和内存页故障/秒

    sql server 内存 SQL Server performance basics article, we explained why performance monitoring was imp ...

  2. sql server 内存_SQL Server内存性能指标–第5部分–了解惰性写入,空闲列表停顿/秒和待批内存授予

    sql server 内存 SQL Server performance metrics series with the SQL Server memory metrics that should b ...

  3. sql server 内存_SQL Server内存性能指标–第6部分–其他内存指标

    sql server 内存 Memory Manager metrics, the memory pressure can be indicated via the 内存管理器指标,可以通过Buffe ...

  4. sql tempdb清理_SQL Server 2019内存优化的TempDB元数据

    sql tempdb清理 In this article, I will walk you through the new feature in SQL Server 2019, memory-opt ...

  5. sql server 运维时CPU,内存,操作系统等信息查询(用sql语句)

    原文:sql server 运维时CPU,内存,操作系统等信息查询(用sql语句) 我们只要用到数据库,一般会遇到数据库运维方面的事情,需要我们寻找原因,有很多是关乎处理器(CPU).内存(Memor ...

  6. sql server 连接工具_SQL on file 工具

    无论程序员,还是数据分析师或科研工作者,有很多人都会编写SQL.无论单机上的access,还是局域网中的mysql 或云环境中的Hadoop,也有很多平台都支持SQL.经过半个多世纪的演化,SQL已是 ...

  7. python中引入sql的优点_SQL Server 2017中的Python:增强的数据库内机器学习

    Microsoft SQL Server是一款优秀的关系型数据库管理系统,Python是目前流行的数据科学语言之一,拥有丰富的库生态系统.从SQL Server 2017的CTP 2.0版本开始,可以 ...

  8. sql server序列_SQL Server中的序列对象功能

    sql server序列 序列介绍 (Introduction to Sequences) 序列是SQL Server 2012中引入的用于密钥生成机制的新对象. 它已在所有版本SQL Server ...

  9. sql server 性能_SQL Server硬件性能调整

    sql server 性能 SQL Server Performance Tuning can be a difficult assignment, especially when working w ...

最新文章

  1. PHP安装扩展mcrypt以及相关依赖项 【PHP安装PECL扩展的方法】
  2. Matlab与线性代数 -- 对角矩阵
  3. vs2005格式化代码
  4. 组态王6.55安装教程
  5. 软件测试功能测试都有哪一些,【软件测试基础】功能测试常用方法都有哪些
  6. Nexys4DDR+OV7670实现图像灰度显示系统
  7. 【英语学习】【WOTD】stratagem 释义/词源/示例
  8. ueditor滚动条
  9. Android9怎么剪辑音频,音频剪辑铃声制作
  10. [Maven实战-许晓斌]-[第二章]-2.4设置HTTP代理
  11. 第17节 三层交换机技术—工作原理及相关命令
  12. 前端面试:经典面试题Foo与getName()
  13. 微信小程序授权登录取消授权重新授权处理方法 附可用代码
  14. CDMA移动通信网的关键技术(转)
  15. hdu4416——后缀自动机
  16. 彻底关闭windows Update服务
  17. 当音乐学博士搞起编程,用一本书改变了Java世界!
  18. 何谓光电传感器-看看基恩士如何说
  19. c语言链表中何时用点何时用箭头,链表基本操作及其过程详细叙述
  20. 魔兽世界服务器排队状态app,魔兽世界服务器排队插队软件-魔兽世界7.0服务器免排队辅助预约1.2.01[预约]-乐游网游戏...

热门文章

  1. LeetCode: Add Binary 解题报告
  2. nginx的addition模块在响应的前后报文添加内容与变量的运行原理
  3. Gym - 101128F Landscaping(网络流)
  4. github上传文件
  5. MySQL 授予普通用户PROCESS权限
  6. 自己定义View学习之12/7(进度条之混合模式)
  7. 字符串参数传递与返回值(转)
  8. Html5 小球键盘移动
  9. SILVERLIGHT访问WCF时通过WEB.CONFIG 指定服务器地址
  10. Sqlserver:timestamp数据类型