Problems with QueryPerformanceCounter on Windows Server 2003 Multi-Processor Hyper-V guests? مشاكل مع QueryPerformanceCounter على ويندوز سيرفر 2003 المعالجات المتعددة الإفراط في الخامس الضيوف؟ 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. وهناك صديق لي من مجموعة أخرى جاءت لمشكلة لي مع انه تم على وجود بعض الضيوف ويندوز سيرفر 2003.
They’re doing some nifty stuff with the .NET يفعلونه بعض الاشياء مع أنيق. صافي Stopwatch() ساعة توقيت () class, and some WPF animations, which uses the الطبقة ، وبعض الرسوم المتحركة لبرنامج الأغذية العالمي ، الذي يستخدم 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 لمعرفة توقيت خلال الرسوم المتحركة. على ما يبدو ، عندما تتعرض مصالحها للمدوناتها في الإفراط في الخامس ، أن ننظر النوع من الرسوم المتحركة... ليست جيدة.
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 ، وقد سبق أن صادف شيئا مثل هذا. ومن طوني 's 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. افتراضيا يستخدم الوقت الذي دعا مصدر التدريبي. وهذا هو مصدر وحدة المعالجة المركزية الوقت أن تعول أساسا دورات وحدة المعالجة المركزية. التدريبي للكل (افتراضية) المعالج يمكن أن تكون مختلفة بحيث لا يوجد ضمان أن قراءة البرنامج على معالج واحد لا شأن لقراءة البرنامج على معالج آخر. وهذا يعني العودة الى ما يلي من البرنامج التدريبي على مختلف نائب الرئيس 'sيمكن في الواقع تعود الى الوراء. Hyper-V guarantees that TSC will not go backwards on a single VP. المفرط الخامس ضمانات بان البرنامج لن تعود الى الوراء على واحد نائب الرئيس.
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. التحول إلى نظام التشغيل الخاص بك 'sالحذاء دخول. يحكي هذا النظام لاستخدام مختلف لQueryPerformanceCounter توقيت المهام المتصلة ، وينبغي تخفيف حدة المشكلة.
Written by mikekol. كتبها mikekol. Read more great feeds at is source اقرأ المزيد العظيم هو مصدر في يغذي WEBSITE موقع
no comments لا تعليقات . .
Read more articles on اقرأ المزيد المواد المتعلقة Hyper-V RTM المفرط الخامس الموائد المستديرة and و otherSoftware otherSoftware and و Miscellaneous V متنوعة الخامس . .
- [+] Digg [+] [ديغ] : Feature this article : ميزة هذه المادة
- [+] Del.icio.us [+] Del.icio.us : Bookmark this article : إشارة مرجعية في هذا مادة
- [+] Furl [+] [فورل] : Bookmark this article : إشارة مرجعية في هذا مادة















