Performance monitor VS sys.dm_os_performance_counters

Hi Experts ,

Does anyone knows why some counters values are different in performance monitor and sys.dm_os_performance_counters . and how can I make them equal.
For example buffer cache hit ratio is almost 100 in performance monitor but in DMV is different . or Checkpoint pages/sec  is  0  in performance monitor and in DMV is more than 80000.

Regards
shahin37Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Vitor MontalvãoMSSQL Senior EngineerCommented:
Please give us an example (screenshot).
Also confirm that you are watching for the same instances in both counters.
0
shahin37Author Commented:
Hi Vitor,

here is the screen shot, I hope it helps you to diagnose the issue.
Counters.png
0
Vitor MontalvãoMSSQL Senior EngineerCommented:
Ok, now I see what you are talking about.
They are on different scale. For example for Buffer cache hit ratio, in SQL Server you get the number of pages in buffer cache and in Performance Monitor you get the percentage used.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
shahin37Author Commented:
Thanks Vitor
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.