Slashdot Mirror


Playing Music Slows Vista Network Performance?

An anonymous reader writes "Over the months since Vista's release, there has been no doubt about the reduced level of network performance experienced compared to Windows XP. However, some users over at the 2CPU forums have discovered an unexplained connection with audio playback resulting in a cap at approximately 5%-10% of total network throughput. Whenever any audio is being sent to a sound card (even, several users report, while paused), network performance is instantly reduced. As soon as the audio is stopped, the throughput begins to climb to its expected speed. It's a tough one for users — what do you pick, sound or speed? So much for multi-tasking."

21 of 748 comments (clear)

  1. Not Just MP3's Slowing Network Performance by MarkToronto · · Score: 4, Interesting

    Interesting... I thought I was going nuts the other day... I was Transcoding Video from my (powerfull) Vista PC to my XBox360. I noticed that if I was using Media Player to do anything on the PC, that it was slowed my network performance down quite a bit. I thought at first it was because of the transcoder working hard to buffer the other video, but realized the two cores weren't even being used that much, and memory was fine.

  2. Re:The hits just keep on rolling for Vista by gravyface · · Score: 3, Interesting

    Vista network performance is *supposed* to be better: "support for the Next Generation TCP/IP Stack" and "TCP/IP window size auto-tuning" are two features that the Que book, "Using Microsoft Windows Vista" describes. This audio issue is probably related to DRM, however.

    There are some things that sound good, but I had to dig to find them -- "I/O cancellation" is one of them. I don't know how many times I've had a client crash their desktop when trying to access a non-synched shared folder when disconnected from their laptop; this is supposed to allow you to cancel requests to unresponsive network and hardware resources, but I've yet to try it out.

    --
    body massage!
  3. Re:how on earth? by DigitalSorceress · · Score: 3, Interesting

    My guess is that it's a deliberate attempt to make sure that users aren't streaming the music out over the network.

    DRM sucks... it's gotten so bad that they're interfering with all sorts of normal (non-infringing) activities in the hopes of getting the genie back in the bottle. When will they learn that it's too little, too late.

    I mean, what? I'm supposed to choose between listening to music, or doing my job? BAH!

    Every day, MacOS and Linux are looking better and better.

    --

    The Digital Sorceress
  4. Microsoft user here. by Pojut · · Score: 4, Interesting

    I have been a long time Microsoft user (notice I didn't say supporter, simply user) I've given OSX and various flavours of Linux a shot, but for whatever reason I decide to stay with Windows every time...no particular reason, I just like the interface the best...maybe it's cause I was raised on it, I dunno. Been using windows regularly since Windows 3.1.

    Now. That being said. Ever since I saw screens of "longhorn" and the list of proposed features, I was excited. I knew a lot of it wouldn't be in the retail release, but still...Microsoft had me more excited about an operating system than I had been since the first press releases of Windows 95. It wasn't just Aero (which frankly doesn't really sway me one way or the other), it was primarily the little tweaks and things that they were talking about. Vista looked like it was going to be mind blowing.

    And then it was released. Every week, some new story surfaces about something not working right, or something being broken, or some kind of fucked compatability...as it stands, I don't think Vista will ever be on my computer. XP works fantastic for me (although I do have an Ubuntu box hooked up to my computer for movie and TV show playback), and Vista seems to case more problems than it solves.

    Grats, MS. Unless you pull something out of your asses soon, you are going to lose more and more users such as myself. And we are important insofar as your desktop buisness goes, because we KNOW you are full of shit and we still don't care.

    We are starting to care, though.

  5. Synopsis by stinerman · · Score: 4, Interesting

    The forum goers seem to think the problem lays with something called MMCSS that boosts audio priority when files are being played back. This looks to be a buggy scheduler rather than nefarious DRM checks mucking up performance. The problem hasn't been pinned down by a long shot, but the scheduler makes the most sense.

  6. Iterative Development Cycle by Enonu · · Score: 3, Interesting
    I really hope Microsoft adopts an iterative development and release cycle on the order of around every six months for Windows some time in the future.
    • Bugs like this get noticed sooner and are easier to fix since they are fresh.
    • QA cycles are more focused.
    • Customer feedback helps drive the product to something the customers actually want to use.
    • Customers can have an easier time adapting to smaller changes.
    Please note that OS X has proven that a faster iterative development model can work for a desktop operating system. They're releasing every year or so http://en.wikipedia.org/wiki/Mac_OS_X#Mac_OS_X_10. 0_.28Cheetah.29/, which might be the sweet spot, but I bet they could do better.


    Big-bang software releases, ala Vista taking years to develop, are destined for bugs and customer rejection like this. If you, as a software developer are stuck in a project with a release date longer than a year away, please take the time to set your project manager straight.

  7. Re:how on earth? by TheRaven64 · · Score: 4, Interesting

    My guess would be that it's a bug in the PCI code. You interact with network and sound hardware in roughly the same way; write a memory address to a control register and the device DMAs it across. If there's a race condition or stale lock in the code that deals with the PCI bus then data being sent from the network or sound card drivers down through the PCI abstraction layer could be delayed. My guess would be that someone decided to optimise things for media playback, and so put the sound drivers at a higher priority than the network drivers (since most of the time you are more likely to notice audio skipping than slight drops in network performance), and the sound card driver is not releasing a lock in a timely fashion.

    This, of course, comes with a huge disclaimer to the effect that I have no inside information as to the structure of the Vista kernel, and might be completely making all of this up.

    --
    I am TheRaven on Soylent News
  8. My PC Did Something Similar by UdoKeir · · Score: 3, Interesting

    I run Mandriva at home and my wi-fi would grind to a halt if I played any kind of audio. As soon as I stopped the audio, the network came back. I found a couple of reports online from people that appeared to have the same problem, but never a solution.

    I had to change out the motherboard for an unrelated reason, and the problem went away. It was a completely different chipset on the new motherboard, so I figure there was a problem with the drivers for the old one. I think it was C-Media audio.

  9. Audio drivers in userspace ? by this+great+guy · · Score: 3, Interesting

    I am surprised no slashdotter mentionned this already... But could it be caused by the fact that, in Vista, the audio drivers are implemented in userspace ? My guess is that an actively used audio driver in userspace causes roughly 5,000 to 10,000 extra context switches per second. I didn't RTFA but this kind of CPU overhead would definitely be big enough to cause a visible reduction in network throughput when trying to max out a GbE link... Either because of the CPU time spent dealing with the context switches, or the extra latency it can introduce if some locks have to be held too long by the Vista kernels on some data structures concurrently used by the audio and network layer. Keep in mind that GbE network cards generate roughly 10,000 to 50,000 interrupts/sec when transferring at speeds approaching 1 Gbit/s, so a low latency in processing these IRQ is also critical.

  10. Re:how on earth? by GIL_Dude · · Score: 5, Interesting

    Well we do know that there are new API's in Vista that allow reservations of bandwidth for devices (like disk drives) and that media player does indeed make use of them (this has been demonstrated at events like Tech-Ed and Mark Russinovich's talks have contained demonstrations of this as well). I can't imagine that they purposefully tried to reserve network bandwidth though when the files are local on your hard drive. You can see why they would reserve some hard drive bandwidth though; as the GP said it is to provide skip-free audio and is indeed a new Vista feature. Sounds like they either have a bug with it where it reserves network bandwidth when it doesn't need to, or it is something to do with it having to reserve a certain percentage of the total number of interrupts regardless of which device is being triggered?

  11. Windows License Exchange/Refunds? by NeuroManson · · Score: 3, Interesting

    Just bought a Toshiba laptop that was new, on clearance, for $359 this month. Of course, it came with Vista, Home Basic. First thing I did was research replacement drivers for the audio/network/video chipsets, blanked the HD, then installed a slipstreamed Windows XP Pro. So now I have a perfectly legit license for a POS OS I never wanted (took me a day just to verify for myself why everyone hates Vista). The laptop, for the record, runs at almost 1/3 to 1/2 faster than it did under Vista.

    Anyhoo, my question is, does Microsoft offer license exchanges or refunds? Before you laugh, I recall sometime or another, that a PC manufacturer offered refunds on PCs shipped with XP, when the end user wanted to build a Linux box, or an XP box with a preexisting license. Hopefully I can at least try this with Toshiba, I could use the beer money.

    --
    Just because you can mod me down, doesn't mean you're right. Shoes for industry!
  12. Re:Could be DRM related by rcpitt · · Score: 4, Interesting

    Has anyone checked to see if the CPU usage display is really correct?

    Maybe Redmond in their infinite wisdom are hiding all the DRM processing in a way that doesn't show up on the CPU use graphs - but impacts the system performance because in reality the CPUs are all pegged doing DRM compares to see if heuristic signatures match copyright violations.

    --
    Been there, done that, paid for the T-shirt
    and didn't get it
  13. Re:how on earth? by Gibbs-Duhem · · Score: 5, Interesting

    Back in 2003, my ethernet card (under debian) would *only* work if I was also playing music. Granted, that was because my ethernet card was broken and didn't properly send interrupts (so the sound card was sending them, and the ethernet driver was being activated when it noticed that it had an interrupt too), but it was still pretty awesome. Perhaps Vista has a similar problem... =)

  14. Re:how on earth? by The+MAZZTer · · Score: 5, Interesting

    Vista does put in place measures to ensure that multimedia applications have a higher I/O priority than other operations.

    Whoever did these tests should try again with the Multimedia Class Scheduler service disabled to see if it makes a difference. Also they need to try multiple multimedia applications (WMP would benefit from MCS, but other multimedia apps may not yet).

  15. Maybe its because... by hacker · · Score: 3, Interesting


    Perhaps they're sending your music up the network pipe for comparison and analysis as you play?
    </theory>

  16. My Guess by Nom+du+Keyboard · · Score: 3, Interesting
    My guess is that Vista is intensively scanning the sound hardware to ensure that all the voltages and other parameters remain in compliance -- and hiding this fact from the user. It's well known that part of the Vista DRM infection is that it checks to ensure that the Secure Audio Path remain intact, and that part of this is that it tries very hard to detect any "illegal" modifications or equipment.

    Vista is just overall a hugely bad idea -- the idea being the Hollywood now owns your PC.

    --
    "It's the height of ridiculousness to say for those 9 lines you get hundreds of millions."
  17. Re:Or more accurately by oliverthered · · Score: 5, Interesting

    Wine have just moved the direct 3d layer from glx over to wgl, this should mean that it will compile on windows any time soon.

    And as soon as it gets directX 10 support you should be able to run the DX10 only games on XP.

    --
    thank God the internet isn't a human right.
  18. Re:how on earth? by jandrese · · Score: 4, Interesting

    The thing is, you can't buy a new computer anymore that has XP installed. It's all Vista these days and you don't even get a choice. That's why it is inevitable that people will switch to Vista, they'll buy a new computer for whatever reason and not have the choice to stick with XP no matter how much they might want to.

    --

    I read the internet for the articles.
  19. Re:how on earth? by trogdor8667 · · Score: 3, Interesting

    Actually, if I remember correctly (and I very well may not), we had a Microsoft Recruiter on campus late last year, and he was demoing the final release of Vista (not yet released), and I remember him talking about the priority of threads in Vista. He showed us WMP with no other applications running (music played fine, the visualizations ran flawlessly). Then he closed WMP. Opened a program he had written to basically cause increased CPU usage. He then opened task-manager, and then WMP again, and played the same track. Everything on the system slowed, but the song never missed a beat, and the CPU usage was at 100%. He ended the program, CPU usage dropped back to normal, and the song (and visualizations) didn't miss anything.

    So, based on this (and how accurate my memory is), I'd say that Vista definitely gives priority to audio over other resources.

  20. Except... by InvisblePinkUnicorn · · Score: 5, Interesting

    Except that the Windows Audio service depends on MMCSS, so if you try to disable the Multimedia Class Scheduler, you can't listen to any music at all.

    For the record, I just tested this bug on Vista Small Business and found the same result. If I load WMP, I can still utilize ~35% of the network, but as soon as I start a song, or have a song paused (or even stopped but still loaded) it drops down to 8-10% every time.

  21. Re:Incompetence! Opportunity! by gatesvp · · Score: 4, Interesting

    Actually, I think it means a boost for Apple (so kind of Linux :) rather than Linux directly. Apple is intended to be a consumer desktop system and it does this very well. Linux variants are undoubtedly improving, but (in my experience) unlike Apple, the Linux systems are simply not designed to be consumer desktop system. If somebody actually did this, then you'd have an Apple competitor.

    But Linux development seems more focused on generating dozens of distros and taking all of the forks in the road instead of picking something and sticking with it. For the simple example look at KDE vs GNOME. You can argue back and forth about the merits of both, but as a person building software I don't want to have to make screenshots for both and test under both, this is just needless doubling of my work.

    Linux does not encourage the development of shrink-wrapped, quick-to-develop software. Part of making a consumer (non-business) OS is making decisions for the consumer (b/c they don't know how) and then to sticking with those. We can yell about the Windows Registry, but Linux has how many "replacements" (all of them better)? How does this help consumers? All it does is make things more complicated for developers rather than simpler.

    Linux is like the giant sandbox of great ideas, it constantly gets better, but it's goals is not be a consumer desktop OS. Until somebody stands up and says: "This is THE linux consumer OS and EVERYTHING done for consumer (not business) needs will work here", until that day, disgruntled MS users will simply shift to MAC.