XP SP2 Can Slow Down Business Apps
An anonymous reader submits "Mobile PC magazine installed XP SP2 on a bunch of notebooks and benchmarked them, finding that SP2 caused a 9-percent performance reduction in business productivity apps. While a couple of notebooks performed better, the majority took a 3- to 22-percent performance hit." For now, the story is just at the top of the Mobile PC website, but they promise more details in an upcoming issue.
This is probably due to them recompiling a large number of libraries and system components with the buffer checking and other security features they added into the recent versions of Visual C++. If you ask me, it's worth it, just to know that my Windows box has a few less wide open holes to be exploited.
It definitely has proven its worth so far - I may be wrong, but I'm pretty sure the reason SP2 isn't vulnerable to that GDI+ JPEG exploit is that they recompiled GDI+ with buffer checks.
using namespace slashdot;
troll::post();
You can't install a really big bunch of fixes and expect Windows to run faster!
It has been always this way
This has to do with a buggy CPU "driver" in SP2, rolling back that driver to the pre-SP1 version should correct the slowdown.
I just installed SP2 on my personal laptop that I use for work. I reformatted it yesterday, and I had a CD with SP2 on it. I figured I would rather just install it off the CD that worry about downloading all of those frigging security updates and what-not.
Anyway, I could have sworn the laptop ran faster before I put SP2 on there. I never bothered to benchmark it, but it seems slugish now. And it's not a weak machine (as far as laptops go). 2.4GHz with 1GB Ram.
I'm not about to undo everything I've done. I've installed way too much, and don't want to worry about breaking those apps by removing the patch.
Oh well. I'll just live with it. It's not my main machine anyway, just something to do some DB work with.
Here is another article where they ran different benchmarks on SP2 and SP1. The office productivity test was the one with the biggest difference. The article puts the blame on the new firewall.
They should compare a PC with SP2 and one with SP1 with a third party firewall.
was this even posted at all?
This wasn't even a readable story - just a small synopsis of a story that will be featured in Mobile PC mag next month. There could have been plenty more info, but instead we got two paragraphs.....
OTOH, is an average 9% drop in performance even an issue? I mean, 9% in office apps is nothing....Who needs high performance when typing, making spreadsheets, or even a PowerPoint presentation?
This (once again) illustrates the MS push towards security over performance/compatibility
-thewldisntenuff
My MythTV HowTo
Cached link in case it gets Slashdotted.
I've seen some drag on my system since putting SP2 on, but it's really a double-edged sword.
However, in my experience it's harder now for sites to push ActiveX controls and executables to your PC now, unless you do a bit of tweaking or visit a deliberately malicious site.
Considering the system drag that occurs when the average user installs spyware inadvertently, I'd say the SP2 drag ought to be cancelled out for the time being, as it's a bit harder for spyware to propogate under it.
my internet lagged so bad I had to reinstall Windows Xp. Worked better after that.
Bollocks. Reinstall XP? Did you atleast try removing SP2 to begin with? You could atleast set a system restore point before you do any major upgrade that contains patches and/or including third party drivers.
I am no Windows fan but just trying to make it sensational that you had to reinstall XP from scratch doesn't really do anything. I have installed SP2 pretty much after it was released and have had no problems. (Well, of course some people are going to see glitches considering the size of that damn thing).
And maybe, just maybe, did you think of the possibility that your *P2P* app might be the bugger. Just a thought.
Free XBox, PS2
Has anyone noticed an increase in how long it takes Putty to start up post-SP2? I thought it was the firewall at first, but I disabled that. It still takes about 5 seconds to launch, where before it was instant.
One of the changes in SP2 was a rate limiting / queing behavior for the number of current sockets in the SYN/opening state.
In other words, suppose you have an app which tries to open 30 tcp sockets simultaneously. Some of them will get delayed by the OS.
This is to try and thwart the speed of worms or DDoS programs - which very often try and create a zillion tcp connections that never end up connecting.
Unfortuneately, it has the side effect of hurting some p2p apps (like bittorrent) and some web browsing configurations...especially if you've changed the registry value that sets the # of simultaneous socket connections IE will make to the same site. The default is like 3 or 4, but if you upped it to say, 20, and then hit a site that had 30 images all on the same server... it is likely that some of your http requests will get queued until other connect() attempts complete the handshake.
Does it suck that this is affecting some browser and other scenarios ? Yes. The topic is under discussion internally at microsoft.
The _intent_ was to try and slow down the spread of worms/ddos attacks in the event a machine got compromised....a good goal to have i think anyone would agree..
The implementation, however, does have disadvantages
If you decide to try SP2 again, anytime the connecting socket limit is reached, an very specific/obvious event will be logged in the eventlog. If you are experiencing slower network interactive speeds, try looking in the logs to see if you're hitting it.
One mitigation, by the way, is to have a proxy (i.e. squid) on another machine.. that way your handshakes from IE resolve _Very_ fast and your sockets rapidly go from handshake to connected...thus reducing the likelihood of you hitting the queing behavior.
My opinions are my own, and do not necessarily represent those of my employer.
specifically, the /GS flag to the VC++ compiler.
/GS compiled binaries will cause the OS to terminate the app rather then letting code execute. The source code generally doesn't need changes.
:)
The compiler was modified to support automatic stack overflow checking (i.e. canaries). Server 2003 was compiled with this (and as a result, MANY things that are shared-code problems resulting in exploits on other NT based OSes are either ineffective or DoS attacks on Server 2003).
The idea is that
So, its a defense in depth tactic. Ideally, there'd be no BO's in code. But there are. Terminating the program with an explanation as to why is better than letting people run code on your box.
My opinions are my own, and do not necessarily represent those of my employer.
If you thought SP2 would be a speed upgrade then you also buy the previous lines that Win98, ME, NT4, W2K, XP would make Windows faster than previous versions. Of course these fallacies are based on the assumption that you would install the upgrade on a *newer* PC than their sample set. No Windows update has ever been faster than its predecessors.
Period.
If I post an "article" on my 5 megs of webspace provided to me by my ISP denouncing Windows XP saying that installing SP2 will steal my first born and rape my cats, then "create" some benchmarks to prove my point, then submit the article to slashdot, will it make it on the frontpage?
I'll even conclude in the article that running linux will solve world hunger and even do my laundry.
Correct me if I'm wrong, but given today's hardware, is 10-20% slowdown even noticeable to the average user running, say, Word? IIRC, the threshold for user to notice anything meaningful is around 30% in day-to-day operations.
Games are a different beast, but does the user even care if loading a spreadsheet takes an extra second or two?
9% on average on "Business Apps" is to vague too draw any conclusions. Was the slowdown in disk, network, memory, network performance? All of the above?
The slowdown could mean that MS cut some corners and traded speed for security in XPs' pre SP2 version. While fixing security problems they had to perform some extra checks and that dragged performance down. Or, they could've discovered some serious architectural issues with fixing new holes, so they had to do it in a slow and inefficient way due to the fact that their architecture wasn't designed with those checks in mind.
On a side note, I experienced a significant slowdown when running Norton AV that supposedly does a bunch of extra security checks. File and network performance became unbearable at times. It got so bad that I had to ditch NAV so now I am reverting my Windows system every day (I run it under VMWare, Linux is a host system). I found this setup + Zone Alarm to be a better answer to endless Windows security issues.
"You mortals are so obtuse." -Q
Maybe Microsoft needs to determine what the most common software installed on Windows PCs is and even work with software manufactures directly to ensure the greatest compatibility.
http://support.microsoft.com/default.aspx?kbid=875 352&product=windowsxpsp2
/NoExecute=AlwaysOff option in the article.
Note the
Well known cause for much of the slow down some people find with SP2. Of course, this opens you up to morphic/purposefully overwritten code exploits, but such is life.
I found one instance where a fix actually allows you to pirate OTHER software (or at the very least violate otherwise restrictive "one machine at a time" clauses in the EULA).
I installed SP2 and didn't notice any problems at all. Then, I fired up Fireworks which has a little util that sees if other copies using the same license are running on the network (who, me?) and was prompted by Windows telling me that the service had been blocked and did I want to Continue Blocking, Unblock or should it Ask Me Later.
Well, so far, choosing Ask Me Later has enabled (for testing, of course) running multiple copies of single license software when we would not have been able to previously.
Neat! Thanx Bill!
R(k)
This should actually be posted in the politics corner. I gotta admit ./ is doing a lot better job at playing politics then certain US canidates. Seriously, a service pack to perform maintence and add some very usefull features. What is the general response? "SP2 broke my edonkey and made my girlfriend (online) break up with me." OH OH! now its slower with certain progams because they switched some compile flags that they should have enabled years ago!
You can either get your ass kicked by gamers for having a slow machine, or by hackers for having an insecure one.
I've attempted to install SP2 on three machines now and I'm not trying any more. After the 1st install, the system blue screened, and could not be recovered, had to reinstall from scratch.
The second attempted install got about 2/3rds of the way done and then crashed resulting in an unstable system. The partial install could not be completely removed, and the machine would crash often, another reinstall from scratch.
the third attempted install died in the early stages repeatedly (about 15 seconds after starting the install) and never got past that point.
These were three completely different systems with different software installed, but all ended up with the same result, no SP2 without a complete clean installation of XP first. I'm so disgusted with MSs QA right now, I never plan to install SP2 again, because my time is too valuable to spend entire days rebuilding systems just because they can't write updates to their software.
Hell in Gentoo and Debian I update the entire system with a single command and download hundreds of software packages equalling hundreds of MBs and it all goes smooth as silk, can't MS figure out how to copy files from an update package into the system without blowing it all to hell?
...actually HAS business apps.
Similar problems have been found with XP SP I, the original XP, along with Windows 2000, 98, ME, CE, 95, and 3.1.
Can anyone tell me how to set my sig on Slashdot?
It really sounds like this is the Data Execution Protection feature. It's emulation of the NX feature of processors in software, and somewhere on Microsoft's website, I've read that it can slow some applications. There are also instructions for turning this off for the whole system, or just a few apps that seem particularly affected by it.
samrolken
...some business apps like Gator even refuse to run!
Unsecure software runs faster. All that extra checking things to make sure they're valid and so forth requires processing power. I mean, a login script that just accepts any password entered would require less processing than one that actually checks the data against some other data.
After installing SP2, defragment your hard drive - so many core files are replaced that the system's performance will be even more sub-optimal than usual until you do this.
Since installing SP2 on a laptop, the printouts from Treeview Pro (a directory listing program) have had every printed character flipped on its vertical axis - all the letters are in the right place but the wrong way round so - for example, all 'b's look like 'd' - it's readable but makes your brain hurt!!
Does anyone have a weirder SP2 effect?
AT&ROFLMAO
You really don't get the Profit!!! joke, do you...
We Build Beautiful Websites
Thankyou for displaying your unbelievable lack of technical competency. The rest of us would've uninstalled SP2.
Conor "You're not married,you haven't got a girlfriend and you've never seen Star Trek? Good Lord!" - Patrick Stewart
XP2 also ships with a buggy xptheme.dll that causes any MFC application that creates windows with a caption (such as MDI child windows for example) to leak 6 GDI handles (HRGNs) every time a window is created. This bug is causing me some serious problems with one of my MFC apps that uses lots of CWnd-derived windows.
To make matters worse, MS actually fixed this bug with SP1, but have gone and broken it again with SP2! After all that testing they did? Unbelievable.
And, of course, I have no idea how I can officially report this bug to MS, let alone get them to fix it. There is a KB article for the original XP problem at http://support.microsoft.com/?kbid=319740.
There is a workaround - use Classic mode instead of Theme mode - fine for me, but try telling my users they cannot run in Fisher Price mode!
What a royal PITA. My users are screaming for a fix (as my app runs all day long, and as many users use Standby mode, it can stay loaded until the next reboot, leaking bloody handles at a frightening rate!).
Anyone here have any experience reporting problems like this and getting them actioned? I don't know where to start (I have posted the problem to the MFC group).
"When Windows 95 came out the days of setting individual apps to use your hardware (like sound cards) were over."
Maybe for you. But Apple had already solved that problem.
"You can't tell me that the surge of computer purchases starting around the mid-90's wasn't because of the launch of Windows 95."
You seem to be confusing the marketing push that Microsoft did with some form of technical excellence. The people bought the new PC's because they thought they needed them. That's marketing.
People lined up in the rain at midnight to buy Win95. That's marketing.
Win95 was not any technical advance over the existing (see Apple) technology.
"And since when did filtering out automatic-MS-hate make my ideas 'fucked up'?"
It doesn't. But that's not what you're doing. You seem to be claiming all the computer advances to be a result of Microsoft's efforts. They aren't. Microsoft merely took what was already available, put it into their own product and then hyped that product enough that every idiot out there thought Microsoft had invented something new and wonderful and that they had to have it.
This is a know issue. SP2 in fact runs *faster* in some workloads because of some fixes:
http://support.microsoft.com/?kbid=815227
http://support.microsoft.com/?kbid=328264
http://support.microsoft.com/?kbid=332023
http://support.microsoft.com/?kbid=838884
http://support.microsoft.com/?kbid=811169
http://support.microsoft.com/?kbid=815411
http://support.microsoft.com/?kbid=834937
Fixes like this can be found in any SO changelog, including linux and/or BSDs. Think that Windows XP SP1 has been out for a long time, that windows 2003 (which shares their code base) has been developed and in the development process they must have found some nice & safe improvements.
"News for Microsoft Haters. FUD that matters". I'm a linux user, but seriously, is there chance that editors stop putting fud in the front page?
Here you've some lessons: How about instead of "XP SP2 Can Slow Down Business Apps" you name it "MobilePC detected a SP2 slowdown for bussines apps in their notebooks" or "SP2 bug slowdowns some notebooks" (which is the real issue) or some objetive shit instead of your FUD & subjective crap which tries to imply that there's something wrong with the whole SP2? Sure, Windows sucks, but I love to read news about how much it sucks, not just FUD. Just a wish, I don't collaborate with slashdot so I cant tell people what the content is, but I think your readers will appreciate a raise in the quality of windows posts. Thanks.
just wondering. these service packs replace more or less every file in the operating system. the files/registry might have been fragmented somewhat, or perhaps the newer files weren't all grouped together nicely for quick access. Laptop disks are usually slower than desktops, i believe they only started shipping 7200 RPM disks in the high end laptops recently (and we all know how much difference 7200 rpm drives made when we started getting them in desktops 4-5 years ago). just a theory, but I would have fully defragged sp1 (including registry hives, pagefile etc...), benched, installed sp2, defragged again and benched. probably wouldn't account for all the slowness, i'm sure bufferchecking and sending personal information to mothership take up plenty of resources as well.
You wouldn't use gets to input a string, would you? I hope
There's a difference between fgets, a safe alternative to gets that is in ANSI C89, and snprintf, a safe alternative to sprintf that is in ISO C99 but is not in ANSI C89. Not all useful platforms have a conforming C99 compiler. So how can one do the equivalent of snprintf portably?
And then between steps 2 and 3, 3 and 4, and 4 and 5.