Your best source of information and news about secrets , secrets and windows vista on the internet 인터넷에서 정보와 비밀, 비밀과 윈도우 비스타에 대한 소식의 제일 친한 소스

Vista ARTICLES 비스타 기사 TOP 50 탑 50 Spyware Virus 스파이웨어 바이러스 Vista SOFT 소프트 비스타 Vista HELP Vista 도움말

Problems with QueryPerformanceCounter on Windows Server 2003 Multi-Processor Hyper-V guests? Windows Server 2003에서 QueryPerformanceCounter에 문제가 멀티 - 프로세서 하이퍼 - V를 인용? Here’s why. 여기에 같은 이유에서입니다.


A friend of mine from another group came to me with a problem he’s been having on some Windows Server 2003 guests. 다른 단체에서 제 친구가 내게 그는 일부 Windows Server 2003의 손님을 보내고있어 문제가됐다.

They’re doing some nifty stuff with the .NET 그들과 어떤 물건을 다하고 맵시. NET을 Stopwatch() 스톱워치 () class, and some WPF animations, which uses the 클래스, 일부 WPF 애니메이션, 이는 사용 QueryPerformanceCounter QueryPerformanceCounter에 Win32 API to figure out the timing during the animations.  Apparently, when they run their code in Hyper-V, the animations look sort of… not good. Win32 API를 애니메이션 중에 타이밍을 알아 내려고합니다. 분명히, 자신의 코드 때 하이퍼 - V를, 애니메이션을 실행하는 일종의 ... 잘 안 봐요.

They’re using Windows Server 2003 SP2 x86, which has been allocated two virtual processors. 그들은 윈도우 서버 2003 SP2를 두 개의 가상 프로세서를 할당하고있다는 x86, 사용하고있습니다.

It turns out that our performance guru, Tony Voellm, has already encountered something like this.  From Tony’s 그게 우리의 성능을 축하, 토니 Voellm, 이미이 같은 일이 발생한 것으로 나타났다.에서 토니의 blog post 블로그 게시물 :

The root issue comes about from the Win32 QueryPerformanceCounter function.  By default it uses a time source called the TSC.  This is a CPU time source that essentially counts CPU cycles.  The TSC for each (virtual) processor can be different so there is no guarantee that reading TSC on one processor has anything to do with reading TSC on another processor.  This means back to back reads of TSC on different VP's can actually go backwards. 근본 문제는 Win32 QueryPerformanceCounter 함수에 대한 유래. 기본적으로 그것이 시간 원본 TSC가 전화를 사용합니다. 이것은 본질적으로 CPU주기 CPU 시간을 계산 소스입니다. TSC가 각 (가상) 프로세서가 다를 수 있도록 보장이 없다는 그 독서를 하나의 프로세서 TSC가 다른 프로세서에 TSC가 독서와는 아무 상관있다.이 다시 돌아 의미 TSC가 실제로는 거꾸로 갈 수있는 다른 부서의 부사장을 읽습니다. Hyper-V guarantees that TSC will not go backwards on a single VP. 하이퍼 - V를 보장 TSC가 거꾸로 한 부사장에 가지 않을거야.

The fix for this is to modify the guest’s BOOT.INI file by adding the 이것에 대한 수정 프로그램을 추가하여 손님의 Boot.ini 파일을 수정하는 것입니다 /USEPMTIMER / usepmtimer switch to your operating system’s boot entry.  This tells the system to use a different timer for QueryPerformanceCounter-related tasks, and should alleviate the problem. 운영 체제의 부팅 항목으로 전환합니다.이 QueryPerformanceCounter에 대한 다른 타이머 - 관련 작업을 사용하기 위해 시스템에게, 그리고이 문제를 완화해야한다.

Popularity: 1% 인기도 : 1 %


Written by mikekol. mikekol 지음. Read more great feeds at is source 읽기에서 더 많은 훌륭한 피드 소스입니다 WEBSITE 웹사이트
no comments 덧글 없음 . .
Read more articles on 에 대한 자세한 기사를 읽기 Hyper-V RTM 하이퍼 - V의 RTM의 and otherSoftware otherSoftware and Miscellaneous V 기타 브이 . .

Related articles 관련 기사

No comments 코멘트가없습니다

There are still no comments on this article. 아직이 문서에 대한 댓글이없습니다.

Leave your comment... 귀하의 의견을 남겨주세요 ...

If you want to leave your comment on this article, simply fill out the next form: 만약 당신이 문서에 코멘트를 떠나고 싶다면, 간단하게 다음 양식에 기입 :




You can use these XHTML tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong> . 이들은 XHTML 태그 : title="">은 <a href="" 사용할 수있습니다 <abbr title=""> <acronym title="">에서 <b> <blockquote cite="">에 <code>을 <em> <나는 > <strike>의 <strong>.