怎样理解Buffer hit ratio 是99%, 但Page life expectancy<200?

Garnett_KG 2009-12-30 03:26:38
一个时间段内(10min)

Memory\Available MBytes 基本桓定在1.7G

Avg. Disk Queue Length >1 AND <50, 平均值是 5

Processor(_Total)\% Processor Time <30

Buffer Manager\Buffer cache hit ratio >99

Buffer Manager\Page life expectancy <200

RAID 1

除了明显的Disk bottleneck 之外,我的Server还有其它问题吗?
...全文
1033 34 打赏 收藏 转发到动态 举报
写回复
用AI写文章
34 条回复
切换为时间正序
请发表友善的回复…
发表回复
Garnett_KG 2009-12-31
  • 打赏
  • 举报
回复
thanks, tom.
xman_78tom 2009-12-31
  • 打赏
  • 举报
回复
找到这篇文章,希望对你有用
http://www.rampant-books.com/t_hpsdba_62_buffer_cache_performance.htm
(别人的东西,我就不再重复了)
Garnett_KG 2009-12-31
  • 打赏
  • 举报
回复
顶一下,客已同意升级硬件,做Raid 10了。可以暂时不管它。

继续我的问题,

hit ratio>99% AND page life expectancy <200 这2个数据放一起怎样理解?



78TOM:
是SQL 2005 std version
Love_baba_mama 2009-12-30
  • 打赏
  • 举报
回复
bu dong
xman_78tom 2009-12-30
  • 打赏
  • 举报
回复
另外,sql server 2000 标准版最大支持 2g 内存。而 sql server 2005 标准版按微软的说法,最大支持的内存取决于系统最大支持的内存,但是没有说明是否指的是 64 位版。
xman_78tom 2009-12-30
  • 打赏
  • 举报
回复
看来 lz 的主要问题是 sql server 进程没有充分利用到 3g 的物理内存空间。建议使用 vmmap (sysinternals 工具集)检查一下 sql server 进程的内存使用情况,看看 3g 开关有没有作用(total+free,正常情况下,进程可访问的内存地址空间为 3g)。
nzperfect 2009-12-30
  • 打赏
  • 举报
回复
你上不去客户的服务器,不好定位,内存压力有可能源于io瓶颈,而io也许是因为table scan.
ws_hgo 2009-12-30
  • 打赏
  • 举报
回复
gz
nzperfect 2009-12-30
  • 打赏
  • 举报
回复
[Quote=引用 24 楼 garnett_kg 的回复:]
hit ratio>99% AND page life expectancy <200  这2个数据放一起怎样理解?
[/Quote]

这个我以前也遇到过,但即使page life expectancy <300 ,hit ratio也难以<98%.
Garnett_KG 2009-12-30
  • 打赏
  • 举报
回复
[Quote=引用 19 楼 hery2002 的回复:]
http://sql-server-performance.com/Community/forums/p/29571/156170.aspx

Page life expectancy =300是系统默认设置,小于这个值的话,貌似有内存的Issue,
-------------------
This counter can be helpful in determining whether you have a memory problem, giving you a reasonably accurate view of whether your server has memory pressure. According to Microsoft, 300 seconds is the minimum target for page life expectancy. If the buffer pool flushes your pages in less than 300 seconds, you probably have a memory problem. Looking at this value is particularly handy when your page life expectancy is significantly higher or lower than 300 seconds.
-------------------
如前完美所说,看看Target Server Memory和Total Server Memory这两个的值是多少?

[/Quote]


暂时拿不到Target Server Memory和Total Server Memory的数据...
Garnett_KG 2009-12-30
  • 打赏
  • 举报
回复
hit ratio>99% AND page life expectancy<200 这2个数据放一起怎样理解?
Mr_Nice 2009-12-30
  • 打赏
  • 举报
回复
每次看关于performance的都能学到点儿。呵呵!@
高兴!
Garnett_KG 2009-12-30
  • 打赏
  • 举报
回复
是memory有问题? 为什么有1.7G的可用内存呢? 难道/3gb没起作用吗? 我出个mail问下。
wzy_love_sly 2009-12-30
  • 打赏
  • 举报
回复
[Quote=引用 12 楼 garnett_kg 的回复:]
每天都如此,都是出现在员工上班时。一下班,disk queue 立马减小到0.000几, available memory 还是1.7G, page life expectancy>300.
[/Quote]
ple大于300应该是正常的,disk queue和raid的盘数有关
xman_78tom 2009-12-30
  • 打赏
  • 举报
回复
Buffer Manager\Page life expectancy < 200
是从没被引用的页面在缓冲区中存放了小于 200 秒,微软推荐不小于 300 秒。
hery2002 2009-12-30
  • 打赏
  • 举报
回复
http://sql-server-performance.com/Community/forums/p/29571/156170.aspx

Page life expectancy =300是系统默认设置,小于这个值的话,貌似有内存的Issue,
-------------------
This counter can be helpful in determining whether you have a memory problem, giving you a reasonably accurate view of whether your server has memory pressure. According to Microsoft, 300 seconds is the minimum target for page life expectancy. If the buffer pool flushes your pages in less than 300 seconds, you probably have a memory problem. Looking at this value is particularly handy when your page life expectancy is significantly higher or lower than 300 seconds.
-------------------
如前完美所说,看看Target Server Memory和Total Server Memory这两个的值是多少?
Garnett_KG 2009-12-30
  • 打赏
  • 举报
回复
[Quote=引用 17 楼 perfectaction 的回复:]
噢,那添加一下呢?这个性能计数器的数据心集不是你配置的吧。
[/Quote]



不是我配值的,是客人的Server, 我连不到.
nzperfect 2009-12-30
  • 打赏
  • 举报
回复
噢,那添加一下呢?这个性能计数器的数据心集不是你配置的吧。
Garnett_KG 2009-12-30
  • 打赏
  • 举报
回复
也没有,我拿到的总共

Memory\Available MBytes
Paging File(_Total)\% Usage
PhysicalDisk(_Total)\% Disk Time
Avg. Disk Queue Length
PhysicalDisk(_Total)\Avg. Disk sec/Read
PhysicalDisk(_Total)\Avg. Disk sec/Write
PhysicalDisk(_Total)\Disk Reads/sec
PhysicalDisk(_Total)\Disk Writes/sec
Processor(_Total)\% Processor Time
SQLServer:Buffer Manager\Buffer cache hit ratio
Page life expectancy
SQLServer:General Statistics\User Connections
Memory Manager\Memory Grants Pending
System\Processor Queue Length
nzperfect 2009-12-30
  • 打赏
  • 举报
回复

那Buffer Manager下的Target Pages和Total Pages呢?
加载更多回复(14)

34,575

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server相关内容讨论专区
社区管理员
  • 基础类社区
  • 二月十六
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧