Slow mutex performance in windows xp guest on ESX 5 host

I did some casual producer consumer benchmarks written in C with visual studio 2005 on dual core 2 ghz cpu, with identical o.s. win xp professional and cpu type it seems to me on ESX the performance of mutex, events and corresponding waitforsingleobject is from 1/10th to 1/2 the speed on the physical machine, on windows 7 instead the performance is about half of the corresponding physical machine, I was wondering if anyone else noticed, might this be due to how mutex/critical sections/events/semaphores are emulated in ESX binary translation, are there any settings for windows xp 32 bit guest under ESX 5 to enable boosting inter process/thread synchronisation speed to make it similar to physical machine perhaps ?
I enclose a small test project for vs 2005 in case anyone could take the trouble to try and compare raw speed of synchronisation primitives on physical and ESX especially if in win xp there is a macroscopic speed penalty or maybe I did something wrong like I ran the test on an overloaded ESX perhaps.

I tried this MS condition variables example in a "what the heck" style not expecting much difference :
http://msdn.microsoft.com/en-us/library/ms686903%28v=vs.85%29.aspx
I enclose a vs 2010 project that on 64 bit win7 it seems to run at about 20 million wake consumer/producer per second on 2 ghz 2 core cpu BOTH physical and ESX 5 (I don't have system level access to verify logs to tell whether binary or VT translation)
Notice in this test I am not trying to measure memory bandwidth, i.e. how fast I can transfer data bidirectionally from/to processes, but, rather how fast I can wake the consumer, which in my case is a real time database which carries out a field read/write transaction at each wake in the db process, from my tests the cpu utilization in terms of transactions (i.e. client producer W, db consumer R, consumer W, producer R) is much higher doing controlled wake up of the consumer db engine rather than have it haphazardly polling the producer because the o.s. scheduler misinterprets the consumer polling as useful "work" whereas it's just wasting memory bandwidth with unnecessary read cycles polling a data ready variable set by the client.
If this was true (?) and I haven't done any clumsy mistakes it would really be too good to be true imho, it would seem it's actually doing like 1 wake / 100 cycles ? possibly it may be running with VT and FlexPriority because it's very close to the 400 cycles mentioned, I am aware modern cpus don't work in terms of opcodes/cycles but actually the other way around i.e. many opcodes per cycle where possible with pipelining, so it would seem at first glance to "blow your socks off", so definitely the way to go seems win7 which was probably developed virtualisation aware from the word "go" it's about 300 x faster than win xp 32 bit, unfortunately WakeConditionVariable / SleepConditionVariableCS seem only inter thread not inter process, I could create a remote thread in the db process but it would have to be signaled from another process, I wonder if perhaps using vmware VMCI socket api it's possible to get low latency inter process ipc ?
I also looked at using WM_COPYDATA but it's really slow just like normal sockets about 50k/s signals.
Also there is UMS user mode scheduling but again only inter thread in win 7  User-Mode Scheduling (Windows) but I am in need of inter process scheduling ?
I also attempted with this MS example to call into a kernel device driver :
http://code.msdn.microsoft.com/windowshardware/Event-d245ecb4
with these results on win 7 64 bit :
event 180 k/s both physical and ESX
irp 180 k/s physical 110 k/s ESX
but I would need to make 2 blocking DeviceIoControl calls from both producer and consumer thus halving the rate making it not any faster than inter process event/waitforsingleobject 100 k/s  ... ?
I enclose visual studio 2013 example HardwareEventSample.rar if anyone is interested to benchmark ? you need to sign event.sys on win7 or you won't be able to load the driver, use "event 0 0" for irp and "event 0 1" for events methods respectively.
Another method is APC asynchronous procedure calls with QueueUserAPC, I enclose a visual studio 2005 project that does :
on win 7 64 bit 500 k/s both physical and ESX which is the highest rate of one directional consumer wakes so far I could get on ESX (I have the producer polling for the reply in order not to incur inter process waiting with APC)
on xp 32 bits it's only 80 k/s wakes though wrt to xp physical 500 k/s (I also tried putting consumer/consumer affinity:
DWORD res1= SetThreadAffinityMask( GetCurrentThread(), 1 );// consumer core 1
DWORD res1= SetThreadAffinityMask( GetCurrentThread(), 2 );// producer core 2
but it didn't change thread switching rate appreciably possibly because windows is not really real time oriented)

Similar Messages

  • Slow download performance with windows 7 on Cisco 2960S

    has someone experience with the the windows 7 on Cisco 2960S.
    One customer had the issue with very slow download rate ( 500kByte) with 100MB / full duplex and  default tcp paramenter under win 7 with IOS 12.2.55SE1.
    No error was seen.
    The change of follwing in windows improve the performance a litte bit to 1-2 MByte.
    no compression, no tcp windowing, no received side scaling, no windows side heuristic, no checksum offloading and a smaller MTU size than default.
    After update the Switch to 12.2.55.SE2 the performance imporve to 4-12 MByte.
    Has someone an idea about the chances in IOS 12.2.55SE2. I cant find anything in RN about this issue.
    Best regards
    Steffen

    I have the same issues in WS-C2960G-48TC-L  . my downloads dropped in my lan from 2 mb/s to 100kb/s in all operating systems including linux workstations . my ios version is 12.2(44)SE5 in 2960 switches .
    i have 2 x 4503-E L3 and 14 2960-48TC-L switches but i can not access the new ios versions to test if the issue is coming from ios version because of end of support .
    can someone ensure that the new ios remove this issue ?

  • Sudden slow graphics performance in Windows

    I'm using Boot Camp on my Retina MBP and it ran games like Borderlands 2 and League of Legends fine at high settings. Today, their frame rates dropped by about half. I have no idea why. GPU usage as shown by GPU-z was still at 100% during games and was at full clock speed.. I tried different graphics drivers, reinstalling Windows, wiping NVRAM, and am currently reinstalling OSX to see if it makes a difference. So far, nothing has worked. Does anyone know what the problem might be and how to fix it?

    OK: This worked for me:
    You need reset the SMC.
    http://support.apple.com/kb/ht3964
    You have to shutdown the computer,
    make sure it's connected to power and press:
    Left shift + CTRL + ALT (Option key) + PowerON Button
    (It won't turn on, the power light on your cable should flash green).
    Now restart it.
    Trine 2 now glistens perfectly. I'll now have to see what happens on the other side...

  • T520 - 42435gg / Sound stutter and slow Graphic performance with Intel Rapid Storage AHCI Driver

    Hi everybody,
    I have serious Problems with my 42435gg
    Any time I install the Intel Storage AHCI Driver (I've tried plenty of different versions) which is suggested by System Update I experience a horrible Sound stutter and slow Graphic performance in Windows 7 64-Bit.
    The funny thing in this case: If the external e-sata port is connected the problems do not occur. If the port is unused again, the stutter begins immediately.
    The only thing I can do is using the Windows internal Storage Driver with which I am not able to use my DVD recorder for example.
    The device was sent to lenovo for hardware testing with no result. It was sent back without any repairing.
    Anybody experience on this?
    Kind regards,
    Daniel

    Did you try the 11.5 RST beta? Load up DPClat and see if DPC conditions are favorable.
    What are you using to check graphics performance?
    W520: i7-2720QM, Q2000M at 1080/688/1376, 21GB RAM, 500GB + 750GB HDD, FHD screen
    X61T: L7500, 3GB RAM, 500GB HDD, XGA screen, Ultrabase
    Y3P: 5Y70, 8GB RAM, 256GB SSD, QHD+ screen

  • Slow system performance...

    Hey guys, i recently installed Arch Linux via my 0.7.2 CD.  I then did a full system upgrade, up to the 2.6.19 kernel, boots fine, followed the new kernel instructions.. however it just seems like my overall system performance is SLOOWW.  Keep in mind, i have installed Arch on this computer when 0.7.2 first came out, and it ran perfectly fine, everything ran fast.  However now since i did a fresh install, upgraded to the latest, things seem slow.
    i have installed xorg as well as gnome, including the nvidia drivers.  When ever i type startx, it takes more then a few seconds for anything to happen after the command has been entered, before it would be VERY snappy.  Gnome seems to take longer to load as well.  When i launch xterm from within gnome, it takes a while for the xterm window to show, this includes any other windows.  When i move windows around overtop of firefox, it seems alot of ghosting is happening, alot of trailling over the desktop when the window is being dragged overtop another window.  I checked to see if Nvidia drivers are being loaded which they are.  a glxtest reports back a 1500fps + as well as showing nvidia corporation in the glxinfo....
    This is a fresh BASE install, upgraded to the current, then Xorg and gnome installed.  Top shows no high cpu spikes and i cant figure out why suddenly, application loading seems to be slow...
    P.S also, with all of this, accessing webpages seem very slow as well....this includes Pinging an IP address...
    -Dan
    Last edited by bolero (2007-01-31 22:52:13)

    well, i added that in, startx as well as gnome + application seem to load as they should now, if that was the reason thanks for telling me about that.
    However my internet is still very very slow.  Booting into Windows XP i can confirm its not my internet connection, no lag in XP, however in Arch, seems very slow.  If its any help, im using the sundance driver
    actually, now that applications seem to be loading as they should, my internet connection probebly can be asked in the network section?
    -Dan
    Last edited by bolero (2007-01-31 23:48:52)

  • Firefox 4 is extremely slow to perform any function on my lap top compared to previous versions. Why? And how do I change this!

    Firefox 4 is extremely slow to perform any function on my lap top compared to previous versions. Why? And how do I change this!

    Firefox 21 and Firefox 22 running on Windows 7 have been reported to take a long time to "wake up" from sleep. I realize hibernation is different than sleep, but... this is the closest match for your description.
    Some users have reported that this problem is resolved in Firefox 23 (currently in beta). Others have had inconsistent luck with minimizing Firefox before letting Windows sleep and other measures.
    Please check out this (very long) thread for more information: [https://support.mozilla.org/questions/961898 browser freezes after resuming from sleep]
    Or jump to the part about Firefox 23: https://support.mozilla.org/questions/961898?page=3#answer-457321
    The fact that this just started recently suggests perhaps it is related to another program or update, but I don't think anyone has confirmed the exact interaction that causes the problem.

  • Continued SLOW online performance after two Archive & Installs

    Hi.
    I have been living with slow online performance – pages slow to load, movies very slow to load, movies don't play back smoothly, constant buffering – for some 3-4 months before trying to do something about it... (this timeline coincides with a potential Security Update 2008-006 issue discussed here: http://discussions.apple.com/thread.jspa?threadID=1730909&tstart=0 , but I don't have enough savvy to know if that's the problem.)
    Equivalent slow performance in both Safari and Firefox... I've compared the same sites I visit on other peoples workstations, PC and Mac, various ISPs – all of their pages and movies light up and play instantly.
    Tried to research and do as much as I could before coming here, but I don't have great diagnostic skills... here's what I've got so far:
    By late November, I managed to eliminate the ISP (Earthlink) as a cause of the problem... however, due to their direction to change DNS numbers, I can no longer automatically connect online upon booting, but must repeatedly connect via Internet Connect (separate issue?)... via these forums, I've reset the DNS to 208.67.220.220, 208.67.222.222.
    Neither hard drive is even half full.
    I did an initial Disk and Permissions Repair prior to first A&I... they needed repair then, but subsequent verifications check out clean.
    After the first A&I (using the original OS X 10.4 install disk), I downloaded a complete full 10.4.11 update, including all current Security Updates... performance wound up much the same as before.
    After the second A&I, and before any updating, I tested online performance – still slow... this time I downloaded only the Mac OS X 10.4.11 Combined Update from November 07, looking to avoid the 2008-006 Security Update... general browsing speed is slightly improved, but any site with a movie or rich graphics behaves like dial-up, as before... Mail is just ok – not fast, but not problematic.
    Otherwise, the Mac works well enough, but it's never been a real speed-burner, imo... mainstream graphics apps (Adobe CS2, Quark 6)... the only atypical thing I might have is a Wacom graphics tablet (Intuos 3), but it's always worked fine... no games or brand-X playtime software.
    The only other thing I'd be suspicious of is Network Settings, after getting the runaround at Earthlink... but the fact that I can get online at all might rule that out.
    I've been at this for days, and am out of ideas... little help?
    Thanx.

    OK, network settings is the scary stuff that I DO NOT understand...
    BDAqua wrote:
    Make a New location in Network>Location>New, try it without PPoE, just Using DHCP under the TCP/IP tab>IPv4 setting. You can always switch back if it doesn't work.
    I found the PPPoE subpane.
    Made the New location, it seemed to work briefly, then didn't, then I fumbled my way back to prior settings... I'm willing to try it again, BUT...
    What scared me was that after setting New Location, the browser window opened to something called *Internet Configurator*, never seen this before... it asked for my email and password... is this normal?... I've got major privacy and security concerns and DO NOT want to put that password out there if I don't have to.
    Please advise before I do this... thanks.

  • How can I optimize my hard disk drive usage and performance in Windows 8 or Windows 7?

    QuestionHow can I optimize my hard disk drive usage and performance in Windows 8 or Windows 7?
    AnswerThere are a few simple steps you can take to ensure your hard disk drive is used optimally.
    Use Toshiba HDD Protection
    Many Toshiba laptops come with a program called Toshiba HDD Protection pre-installed. This program helps to protect your hard disk drive from being damaged due to falls or impacts. By default, it should already be enabled. You might be tempted to lower the detection levels in this application, but doing so could cause your hard disk drive to be damaged. Remember that while the application can reduce the chance of damage, you should still avoid allowing the laptop to fall or suffer rapid impacts.
    For more information on this utility, see the following article:
    TOSHIBA HDD Protection
    Optimize the drive
    Windows 8 and Windows 7 optimize hard disk drives automatically through a process called defragmentation. Unless you've disabled this, you don't need to do anything. If you have disabled this and want to run the process, you can still do so.
    In Windows 8, search for "Defrag" at the Windows Start screen and select "Defragment and optimize your drives."
    In Windows 7, search for "Defrag" in the Start Menu's search field and select "Disk defragmenter."
    You can use this tool to optimize your hard disk drives, allowing Windows to find needed files faster.
    Remove items from startup
    Some applications run automatically when Windows starts. This can add additional functionality, but it also decreases the performance of your computer. Sometimes you might want to disable certain programs from starting automatically.
    In Windows 8, search for "Task Manager" at the Start screen. Select the "Startup" tab. Select an application you'd like to disable from starting automatically and then click the "Disable" button in the lower-right.
    In Windows 7, type "msconfig" in the Start Menu's search field and press ENTER. Uncheck the boxes next to applications you'd like to disable from starting automatically.
    You should be sure of the purpose of an application before disabling it from starting automatically. Some applications might be important. If in doubt, you might consider searching on the Web to discover more information about a program. Remember that if you find that you disabled something vital, you can always re-enable it.
    For more information, please see the following video:

    QuestionHow can I optimize my hard disk drive usage and performance in Windows 8 or Windows 7?
    AnswerThere are a few simple steps you can take to ensure your hard disk drive is used optimally.
    Use Toshiba HDD Protection
    Many Toshiba laptops come with a program called Toshiba HDD Protection pre-installed. This program helps to protect your hard disk drive from being damaged due to falls or impacts. By default, it should already be enabled. You might be tempted to lower the detection levels in this application, but doing so could cause your hard disk drive to be damaged. Remember that while the application can reduce the chance of damage, you should still avoid allowing the laptop to fall or suffer rapid impacts.
    For more information on this utility, see the following article:
    TOSHIBA HDD Protection
    Optimize the drive
    Windows 8 and Windows 7 optimize hard disk drives automatically through a process called defragmentation. Unless you've disabled this, you don't need to do anything. If you have disabled this and want to run the process, you can still do so.
    In Windows 8, search for "Defrag" at the Windows Start screen and select "Defragment and optimize your drives."
    In Windows 7, search for "Defrag" in the Start Menu's search field and select "Disk defragmenter."
    You can use this tool to optimize your hard disk drives, allowing Windows to find needed files faster.
    Remove items from startup
    Some applications run automatically when Windows starts. This can add additional functionality, but it also decreases the performance of your computer. Sometimes you might want to disable certain programs from starting automatically.
    In Windows 8, search for "Task Manager" at the Start screen. Select the "Startup" tab. Select an application you'd like to disable from starting automatically and then click the "Disable" button in the lower-right.
    In Windows 7, type "msconfig" in the Start Menu's search field and press ENTER. Uncheck the boxes next to applications you'd like to disable from starting automatically.
    You should be sure of the purpose of an application before disabling it from starting automatically. Some applications might be important. If in doubt, you might consider searching on the Web to discover more information about a program. Remember that if you find that you disabled something vital, you can always re-enable it.
    For more information, please see the following video:

  • Intel processor bug causes Windows 2008r2 guest to blue screen

    We recently purchased several B200-M3 blades with E5-2680v2 processors.  Our UCS infrastructure and blade firmware is at 2.2(1d).  ESXi hosts are at 5.5u1.
    From my reading of the Release Notes, this makes the new blades vulnerable to Caveat CSCuo30572 which is a bug in the v2 processors that can cause Windows 2008R2 guests to blue screen.
    VMware KB2073791 also deals with this bug
    The Intel Erratum is C135
    Updating the firmware (2.2(1d) probably to fixed version 2.2(3d)) is a relatively long process in our environment.
    Has anyone experienced this bug?  Do the guests blue screen at any particular time; e.g. when booting?  Are Windows 2012 guests impacted?  One of our new v2 blades was running Windows 2008R2 guests for about a week without any known problem.  It has since been taken out of production.
    The Release Notes (2.2) description for CSCuo30572 is:  "Intel v2 processors no longer cause PSOD with Microsoft Windows 2008 R2 VM guests."  Should the PSOD (ESXi crash) actually be BSOD (Microsoft crash)?  Or can ESXi purple screens be caused also, crashing the entire host?
    The Release Notes also indicate that the Caveat is resolved in release 2.2(2c)A.  Does the A indicate that an Infrastructure update is all that is needed?  That does not seem like it would supply the fixed microcode to the processors via BIOS.
    I'm basically looking for some insight before proceeding with another FW update.  Thank you.

    Yes, it refers to Infrastructure (UCS Manager, FI and IOM). You could just upgrade the infrastructure to 2.2.3d and leave your Servers at 2.2.1d 
    Table 2 Mixed Cisco UCS Releases Supported
    of the release notes.
    CSCuo30572
    Intel v2 processors no longer cause PSOD with Microsoft Windows 2008 R2 VM guests.
    2.1(3a)A
    2.2(2c)A

  • HT1535 i have 4 ipods on my itunes but my computer was running slow so i put windows 7 on it and installed itunes but if i sync my ipod it will erase all my music i want to know how to take my music from my ipod and send it to my playlist so when i sync m

    i have 4 ipods on itunes but my computer was running slow so i put windows 7 on it but it wants me to sync my ipod but if i do i will lose all my music on my ipod how do i take my music and send it to my playlist so i can sync myipod so i won't lose any music

    Sync is only oneway, from PC to your device.  Unless you have the music on your PC, iTunes is going to wipe out what you have on your device if you are syncing to a new library.
    You can only transfer Purchased music over to Itunes on your PC.
    iTunes Store: Transferring purchases from your iOS device or iPod to a computer
    http://support.apple.com/kb/HT1848
    As for you own music, you may have to use a third party software.  A good Free one is called Sharepod which you can download from Download.com here:
    http://download.cnet.com/SharePod/3000-2141_4-10794489.html?tag=mncol;2

  • Slow Effect performance in IE

    hi everyone ,
    I'm using slide effect in this page
    http://www.dostfindik.com.tr/test2
    Effects are working proper in all browsers except ie .
    Does using alpha transparent background png slow down
    performance ?
    thanks.

    check out this:
    http://www.sitepoint.com/blogs/2007/09/18/png8-the-clear-winner/

  • Very slow to open new window

    How to fix very slow opening window. I have vista 64. Since the last foxfire update it is very slow to open new windows. It can take some windows opening over a minute to open. (yes minutes not seconds)
    Once a window is open I can open in new tab with no problem, but not with new window. (I like to have many windows open at a time)
    When l click to open a new window either from a link or new window, it seems that nothing is happening. Then clicking to open another one which seems to open faster. Then all of a sudden the first window decides to open after about a minute or so. Sometime it seems to hang longer than other times.

    I did try the safe mode and didn't work. I did make iexplorer my default and then back again to foxfire and it somewhat worked. It was work not bad (but not as good as before) until I rebooted and it seemed the more I used it the better it became. Go figure :)
    Well I just did another firefox update to 4 and it works perfect and maybe even better than before. (or I got use to how slow it was :) )
    Thank You for you quick reply and I'm very happy for the new update... So far so good.

  • 10.6.8 Slow SMB browsing of Windows Servers 2008

    MY IMAC 21 .5 Inch MAC OS X 10.6.8 slow SMB browsing of windows Server 2008 kindly anybody have any idea why its happened or after LION release maybe this issue will be solve.

    Hehe... Servers are tricky things for sure. 
    It sounds like you're expecting to have users log in from outside your network, but that you're testing from within?  Is this the case?
    If your users are trying to log in from outside the local network of the server, then you'll need to ensure that the correct port forwarding is set up on your firewall.
    Next thing I'd try...  Simplify your share to ensure that the problem isn't with your group set up.  Eliminate all the ACL's associated with it.
    Add one sole user to the ACL, give it read and write, and try to log in using that credential.
    Ensure that the POSIX Permissions are set to default.  (administrator should be the owner, staff should be group, read and writable only by the owner, everyone else gets read only)
    If that works, remove that user, add a group to the ACL and try and log in using a user that's listed in the new group specified.
    Perhaps if you supplied a little more info about your server and how it's connected to it's network.  What it's roles are etc. we might be able to give a little more insight.
    HTH
    -Graham

  • Performance Using Windows and Parallels?

    We are getting new computers at work and are fighting to stay on the Mac, but we are running more and more Windows apps. How does performance of Windows apps under Parallels compare (relatively) to the old days of running Virtual PC? Seems to me that having an Intel processor would provide a big boost in performance, since you no longer have to emulate an Intel. I'm talking about RoboHelp, PowerPoint, and web-based applications, nothing too graphic or processor intensive.

    Unless the Windows software you want to use is incredible CPU intensive, using Parallels or VMWare (or even the free VirtualBox) will probably suit you fine. I use PD and Win7 with a number of applications on a 2011 MBA. The ony time I notice any speed degredation is when Win7 is booting up or coming out of hibernation; once it is running there's no noticable performance hit. I can move back and forth between Windows and the Mac smoothly and the programs run fine. (There is, however a noticable hit on battery life because PD is a heavy CPU user.) BootCamp, because it allows you to run Windows natively, has no affect on the Mac because when you are running Windows in BootCamp you aren't running the Mac OS. With BootCamp you run one or the other at one time unlike PD which lets you run multiple OS versions at one time

  • Kapsel Fiori Client (FC): self-built iOS FC shows very slow UI performance

    Hi Experts,
    I have used KapselSDK to build our own FC using:
    SMP3.0 KapselSDK SP07_PL00
    Cordova 3.6.3
    Xcode 6.2
    OS X 10.10.2 Yosemite
    Enterprise distribution certificate for deplyment
    .ipa for iPhone4S, 5 (tested)
    ipd also inside Airwatch (tested)
    App config:
      SMP proxy is not used.
    The issue:
    We use FC to launch the Fiori Launchpad where there are some Fiori apps. The problem is that after type usr pwd, it took very long time to see the Launchpad UI. Tried the standard FC from Apple Store, and it worked very fast.
    Does anyone have any idea? I see some info about the slow UI performance for Android devices which can be solved using crosswalk, but my understanding is that crosswalk is not for iOS.
    Thanks.
    Dong

    Have you tired testing the same URL through Mobile Safari to see if it is slow also?
    We have had reports of slowness on iOS and we are researching.  The details are iOS uses HTTP pipelining when the connection is slow. This means iOS bundles several requests (2-3 to our observations) together but the ICM does only response to one of them and ignores the others. After a timeout of about 1 minute (transparent to the FLP) the Safari automatically repeats the ignored requests. It may happen that this happens a second time, but not a third time – then the requests are not repeated anymore.  Seems to happen in Mobile Safari Browser more often than Fiori Client and doesn't happen in Mobile Chrome on same device.
    Thanks,
    Kevin Bates
    SAP AGS

Maybe you are looking for