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."

38 of 748 comments (clear)

  1. Could be DRM related by Zontar_Thing_From_Ve · · Score: 2, Interesting

    There's probably a very good chance this is related to Vista's heavy handed DRM software. It's been reported that Vista does constant checking to see if you (gasp!) might be playing a file it thinks you don't have rights to. I could certainly believe that this kind of overkill DRM might effect network performance.

    1. 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
  2. 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.

  3. Re:Wow! by One+Childish+N00b · · Score: 1, Interesting

    Ever think this might be some sort of DRM feature designed to make streaming audio suck? This would after all crap all over things like Shoutcast, which is the sort of thing the record companies are going after; basic internet radio.

    Could be a case of defective by design - I hope I'm wrong, but I fail to see any sane reason why the two systems would affect each other like this.

    --
    Dealing with lawyers would be a lot less tedious if they all looked like Casey Novak.
  4. 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!
  5. 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
  6. Re:how on earth? by Anonymous Coward · · Score: 2, Interesting

    As part of the move out of the kernel, Vista's sound support is software only and doesn't take advantage of any potential acceleration that your sound hardware may provide. They have the nice per-application volume levels and faders in volume control, but it also means more CPU usage any time you play something.

  7. 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.

  8. 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.

  9. 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.

  10. 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
  11. 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.

  12. Re:DRM or I/O priority by conspirator57 · · Score: 2, Interesting

    some of the nicer netwerk cards' network processors have large portions of the stack implemented wholly within the cards' processor firmware. http://www.networkcomputing.com/channels/networkin frastructure/showArticle.jhtml?articleID=15000186

    it would be interesting to try one of these cards in a Vista machine whilst playing audio to see to what extent the performance is still impacted. Of course this would require a quick profiling of network performance with the new card without audio active as a baseline.

    --
    "If still these truths be held to be
    Self evident."
    -Edna St. Vincent Millay
  13. 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.

  14. Re:how on earth? by NekoXP · · Score: 2, Interesting

    Sounds very reasonable to me. TCP/IP is meant to deal with a couple dropped packets here and there, but audio protocols are generally very sensitive.

    I wonder how it affects systems where the networking is not on PCI (maybe an integrated northbridge component which is not glued to an internal PCI bus), or the audio controller is on a completely different PCI host controller (this scenario is practically unheard of on most x86 systems though.. would be intriguing to find out nonetheless :)

    Ooh. Could it be that these systems are PCI Express and Vista UAA has been coddled to make PCI Express audio not such a bitch? http://www.guru3d.com/newsitem.php?id=3005 although as of last month or so, they seem to have decided they CAN do it without a bunch of the features; http://www.custompc.co.uk/news/115666/creative-unl eashes-pci-express-xfi.html

  15. 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?

  16. Re:how on earth? by ari_j · · Score: 2, Interesting

    What sound is being sent to the card when the track is paused? It sounds like a scheduler issue, probably combined with an issue in the media player being used that grabs the CPU even when paused. Unless I'm missing something and "pause" really means "tell the sound card to play 44.1kHz 16-bit silence" instead of "stop sending audio to the sound card until I tell you otherwise."

  17. 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!
  18. Re:how on earth? by bzipitidoo · · Score: 2, Interesting

    ...too little, too late.

    Are you implying DRM would have worked if only they'd done more, sooner? I try to avoid such phrasing. DRM-- the entire idea of DRM, not just the implementations-- is fundamentally flawed. Don't want any non-tech people who happen to read these posts to get the wrong idea. DRM works about as well as a locked door in a free standing wall-- a few people will be fooled and not notice the wall can be walked around or that they can be on either side of the wall anytime they want, and that in turn fools a few more into thinking DRM maybe could work. That MS tried it anyway shows even many smart, technologically sophisticated people got it wrong, or more likely knew better but couldn't convince a few key people (presumably smart, knowledgeable people themselves) that DRM wouldn't work and should not be tried. Maybe MS isn't too smart anymore-- they don't seem to have learned the right lessons from the WGA mess they made earlier.

    --
    Intellectual Property is a monopolistic, selfish, and defective concept. It is "tyranny over the mind of man"
  19. 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... =)

  20. 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).

  21. Re:how on earth? by meringuoid · · Score: 2, Interesting
    That's because the Ipod has it's very own hardware MP3 player. Faster, more efficient, less flexible.

    Does it? I thought it just had a really low-power CPU and highly optimised - as in assembler - software. If the iPod was based on hardwired chips that did MP3 and only MP3, Rockbox would never have worked on it.

    --
    Real Daleks don't climb stairs - they level the building.
  22. Re:how on earth? by tgatliff · · Score: 2, Interesting

    My thought is that it is not an overlap, but rather an "future upgrade reason"... Think about it... When the next version to Vista comes out, seeing as Apple is demonstrating that DRM is going way, M$ can simply remove their slow DRM support, in addition to removing the Accept/Deny screens, and then talk about a HUGE performance and productivity enhancement for the user. Of course they would basically be releasing XP SP2 again, but talk about brilliant marketing... :-)

  23. 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>

  24. 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."
  25. 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.
  26. Re:Or more accurately by Gogo0 · · Score: 2, Interesting

    This is what a lot of people said when XP came out, and now everyone is using it and refusing to move to vista.

    When the next vista-only killer app (game) comes out, everyone will bitch and moan about how MS is forcing them to upgrade -and then they'll upgrade. Fast-forward six years and "Vista SP2 is the best windows, i'll NEVER upgrade to Windows PecanPie (or whatever focus groups call it)!!"
    Im not saying it cant be done, i run win2k when i have to use windows.

  27. Re:Or more accurately by nuzak · · Score: 2, Interesting

    Win2k's wireless support is horrendous for starters. XP added an ugly skin on top of 2k and killed pipe performance, something most people don't notice, but didn't destroy overall performance or break things to such a degree that Vista did. Run without a theme and XP is pretty much a better 2k.

    To some extent, some things needed breaking. The audio path wasn't one of them. Hell, DirectShow used to be one of the best features of Windows, but they had to go break that to serve their DRM masters.

    --
    Done with slashdot, done with nerds, getting a life.
  28. 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.
  29. 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.

  30. 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.

    1. Re:Except... by Kashif+Shaikh · · Score: 2, Interesting

      The audio layer (audiodg.exe) was ripped from kernel and moved to user space in Vista. This required audio drivers to be re-written and in my case my Creative Audigy sucks a lot of CPU because the driver guys had bugs with incorrect usage of buffers.

      This means playing sounds sucks 30-40% of my 1.2GhZ CPU! Playing videos with sound suck 100% CPU on Vista!

      When I moved back to XP, playing sounds suck 5% of CPU and Playing videos /w sound suck 25-30% of CPU! Now what the fuck is vista doing? And who to blame? Microsoft or Creative?

      Kashif

  31. I strongly disagree by etymxris · · Score: 2, Interesting

    Part of the reason for posting things like this is to see if there is a genuine issue or if it's just a biased set of anecdotes. Those with knowledge of the area can relay their own experiences and offer expertise relevant to determining exactly this. In this way slashdot can do it's own bit of "investigative journalism".

    If slashdot could only publish what was already published by "reliable sources", then it would be even more derivative than it already is. Those who want to read things help up to wikipedia standards should probably stick to reading wikipedia.

  32. could be realted to... by Mister+Whirly · · Score: 2, Interesting

    This could be related to the SVCHOST.EXE stuff if MS is doing it the same in Vista as they were in XP. A friend had some malware that would flood his network with so many outgoing packets that his sound would go away. I finally figured out that the same SVCHOST process that controls the networking stuff also handled the sound, and when the networking would eat up to 95% system usage, there was no more processing power left to handle the sound. Cleaned up the malware and the sound was back to normal.

    --
    "But this one goes to 11!"
  33. 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.

  34. Re:how on earth? by Rorzabal · · Score: 2, Interesting

    Um, wow. I was the author of Blue Wave. Seeing a reference here, 17 years later, makes me feel really OLD.

  35. Maybe this is a hardware problem exposed by Vista? by ScottKin · · Score: 1, Interesting

    I can remember back to the day that we all took out a piece of paper that had our Slot numbers and the IRQ's, ports & memory block addresses written down in pencil to make sure that we didn't have any other card colliding with another cards memory address or trying to share an IRQ, and then checking that against the fabled "PC Ref" Blue Book to make sure that everything was cool.

    I'm not sure if people are still aware that specific PCI slots *do* share IRQs, and that even though Windows has had "successful" IRQ sharing since Win98 that it's not always dead-on. We all know that there were huge (if not massive) changes in how Windows Vista manages resources; hence, maybe Vista has actually shown the world that IRQ assignments and which slots that they're assigned to still DOES matter. Since I only build my own systems, I'm still making sure that certain cards are not in slots that share IRQs - that's just a habbit of mine. I would like to hope that companies like HP, Dell, etc. still pay attention to those things and just don't slap cards or on-motherboard functions into any old position in the IRQ space, thinking "Oh, we don't have to care about that anymore and haven't had to care about it since the days of Win98"

    If this is the case, wouldn't that just suck massively for users of "full-boat" motherboards, with video & networking features on them and have them hardwired for the same IRQ? I've seen the same companies listed above (and many more) do some pretty stupid things in the past, and I wouldn't be suprised if this scenario was prety close to home.

    --ScottKin

    --
    I don't give a rat's behind about "karma" here or anywhere else. Don't like what I have to say here? Deal with it!
  36. Re:Incompetence! Opportunity! by gatesvp · · Score: 2, Interesting

    but it is unrealistic for you to expect one camp to throw away everything and basically say "whoops, sorry everyone - we got it completely wrong, the other camp were right so we'll use all their stuff now."

    Hey, when you put it that way, you're right. But that's just developer hubris. That one camp of devs staunchly dedicated to the correctness of their solution and frankly that's not what I asking. I'm asking both camps to say: "The arguing is pointless b/c we have the two best solutions and the two smallest market shares, let's put aside our differences, flip a coin and run with it."

    Of course, this won't happen, Linux is built by nerds for nerds; MS and Mac were built by Businessmen for Businessmen (or by money for money). And this is why I laugh when people ask about Linux as a consumer desktop OS. The guys dedicated to Linux don't actually want it to become a consumer desktop OS and so the market share will stay small. And it's b/c of the very thing you illustrated, the developer mistakenly believes that conceding their solution makes them wrong, it's the very hubris that made Linux so powerful. This has nothing to do with being right or wrong, this has nothing to do with egos, this has to do with becoming big.