Slashdot Mirror


XP Service Pack Slows Programs

AEton writes "Vnunet and others are reporting that Windows XP's Service Pack 1 has introduced a flaw into the operating system. Changes to memory handling code result in programs which often allocate memory (which is many of them) can take up to ten times longer than normal to start. Microsoft has acknowledged the problem in Q815411, and while a patch is available by request from Microsoft Product Services, it will not be widely released until Service Pack 2."

90 of 457 comments (clear)

  1. In the meantime by worst_name_ever · · Score: 5, Funny

    ...In the meantime, Microsoft suggests you refrain from running programs which use memory. Thank you for your patience.

    --

    In Soviet Rush, today's Tom Sawyer gets high on you.
    1. Re:In the meantime by dserpell · · Score: 2, Funny

      Go developers! Boycot M$... Just made your programs allocate large ammounts of memory!

      On a second tought, perhaps that's what M$ programs are already doing...

  2. HAHA by teamhasnoi · · Score: 5, Funny

    It looks like the pirates who weren't allowed to upgrade to SP1 have gotten the last laugh. Piracy does pay! Thanks MS, for pointing this out.

    1. Re:HAHA by bonch · · Score: 5, Funny

      Pirates everywhere are outraged that the hard work they put into downloading, spreading, and cracking Windows XP in order to install SP1 has resulted in another bizarre Microsoft bug.

      "I sat and ran my key generator for up to 20 minutes before I was able to get a valid key! Then I had to reactive Windows and change the key to install SP1," said one anonymous source. "But if errors like this are the results of all the effort I put into providing slipstreamed SP1 installs on eMule and USENET, Microsoft has definitely lost another customer."

      Efforts are underway to convert pirated Windows installations to free alternatives in order to reduce costs and save time. "I don't have to download BlueKey to upgrade a few RPMS. Once XP's SP2 beta leaks onto the net, you can bet I won't be so forgiving next time when I crack it."

    2. Re:HAHA by zootread · · Score: 2, Insightful

      It looks like the pirates who weren't allowed to upgrade to SP1 have gotten the last laugh. Piracy does pay! Thanks MS, for pointing this out.

      I thought the same thing. Unfortunately, I'm one of the pirates who used a crack which allowed me to install SP1. Now I regret what I have done.. no, not pirating WinXP, I regret installing SP1.

      Fortunately, I don't use that WinXP box for much (at least not for booting WinXP).

      --
      Zoot!
    3. Re:HAHA by KiwiSurfer · · Score: 2, Insightful

      3 minutes on what kind of processor?

    4. Re:HAHA by Anonymous Coward · · Score: 3, Informative

      There's a faster keygen out there. TheBlueList works by generating random keys and checking for validity, you know - oh, and its random routine is messed up so it has the tendency to generate the same group of keys at the beginning (leave it running for a couple of days, count duplicates, THEN take one that wasn't duplicated). There are flaws in the key algorithm which allow for more intelligent guesses - not much more intelligent, but the quasi-random routine in the new keygen's better. That keygen works at about three keys a minute on an Athlon XP 2200+.

      Of course, I can't give a link here, so you'll have to go searching.

  3. Typical Slashdot FUD by MillionthMonkey · · Score: 5, Funny

    This is really just more anti-Microsoft Slashdot FUD. After all, this only affects programs that allocate memory.

    Programmers can easily work around this bug by returning right after printf("Hello World") finishes.

    1. Re:Typical Slashdot FUD by addaon · · Score: 4, Funny

      printf allocates money. Use fprintf directed to stderr, which doesn't buffer output. :-)

      --

      I've had this sig for three days.
    2. Re:Typical Slashdot FUD by cscx · · Score: 5, Funny

      On Windows I think stderr and stdout are one and the same.

    3. Re:Typical Slashdot FUD by MillionthMonkey · · Score: 5, Funny

      printf allocates money. Use fprintf directed to stderr, which doesn't buffer output. :-)

      That's interesting. Who gets the money?

      Of course fprintf() will be illegal soon since nobody can make any money off of it.

  4. "Service" Pack by TheBigOh(n) · · Score: 5, Funny

    Now I know why they call them service packs rather than upgrades. Apparently Microsoft doesn't even trust themselves.

    1. Re:"Service" Pack by use_compress · · Score: 3, Funny

      You get serviced (like a horse)

  5. The fix will cost you by Rick+the+Red · · Score: 5, Informative
    You have to pay for Microsoft Product Support Services. From Knowledge Base Article 815411: "In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem." May be canceled. Or maybe not. So it's entirely up to Microsoft whether or not to charge you for the fix to a problem they admit having! Of all the nerve.

    Avoid Service Pack 1, or better yet, avoid Windows.

    --
    If all this should have a reason, we would be the last to know.
    1. Re:The fix will cost you by Guppy06 · · Score: 4, Insightful

      "So it's entirely up to Microsoft whether or not to charge you for the fix to a problem they admit having! Of all the nerve."

      Welcome to Microsoft's new "Captive Audience" pricing plan.

      Remember kids, this is why monopolies that abuse their powers are bad.

    2. Re:The fix will cost you by Rick+the+Red · · Score: 2, Insightful

      Did you read the KB article? "To resolve this problem immediately, contact Microsoft Product Support Services to obtain the fix." Not, "go to Windows Update to obtain the fix." I'm sure you can download the fix for free, but finding out how requires a call to Support Services, which will cost you if you don't already have a support contract (in which case it already cost you). From the tone of the KB article it's clear they don't want just anyone downloading this fix -- I'm guessing it's not fully tested -- and they probably want the Support droids to try and talk you out of it.

      --
      If all this should have a reason, we would be the last to know.
    3. Re:The fix will cost you by Qrlx · · Score: 2, Insightful

      You've obviously never worked with PSS. If you want this hotfix, they will give it to you for free. You call PSS, say "I'm calling a known issue, Q so-and-so." They email you the hotfix in WinZip format and the password to unzip it.

      They also helped me for free when I couldn't get Visual Studio .NET to install. About a thirty minute call there, including my callback to the support engineer.

      Knock MS all you want, PSS is pretty effective.

    4. Re:The fix will cost you by mentin · · Score: 3, Interesting
      It is Oracle which uses the "Captive Audience" pricing plan - their user do have sign for service agreement (and pay for it) to download service packs and even security fixes.

      Microsoft at least releases the fixes free.

      --
      MSDOS: 20+ years without remote hole in the default install
    5. Re:The fix will cost you by IIRCAFAIKIANAL · · Score: 2, Informative

      I have come across zip files that would only open in winzip. And he could very well mean a self-extracting archive.

      Honestly, how is this flamebait insightful? Parent was more insightful despite the possible (or probable) typo regarding the format of the file.

      This place is going to hell, I swear. If we're going to quibble about minor mistakes instead of focusing on the thrust of the arguments, then I could waste another three lines pointing out the ones you made in your post.

      --
      Robots are everywhere, and they eat old people's medicine for fuel.
    6. Re:The fix will cost you by Dave2+Wickham · · Score: 2, Funny

      Yeah... I often find myself typing "porn" instead of "port"... Gets annoying ;).

  6. w2k is effected as well by Billly+Gates · · Score: 5, Interesting

    Both Openoffice and Mozilla have slowed down quite alot with the latest security updates from Microsoft.

    When I open openoffice is just sits there doing nothing for like 20 seconds and then launched. No excess cpu overhead or anything. It just stalls and then runs. Its just annoying and I wonder if its a conspiracy theory.

    Has anyone else noticed this?

    1. Re:w2k is effected as well by Anonymous Coward · · Score: 3, Funny

      It definitely is a conspiracy theory.

    2. Re:w2k is effected as well by archen · · Score: 5, Funny

      Is it possible to tell if Mozilla runs slower? That's like determining the exact second the paint started to peel ;)

    3. Re:w2k is effected as well by randyest · · Score: 5, Informative

      Yes, I have, a lot! I even have some very informal and unscientific benchmark results (counting 1-mississippi, 2-mississippi, . . after the double click until load) because not long before SP1 came along I was testing my system to see if changing my BIOS RAM timing made any diff on prg load times. It didn't, but I scratched the MS times (that's the state abbrev for mississippi, BTW, which I am quite tired of typing already) on some paper that, as they so often do, stayed on my desk past it's useful life.

      After installing SP1 I immediately noticed longer load times. The load times are all, consistently, still the same, and noticeably longer than XP (pro, BTW) before SP1, which I used for almost a year (more?). I really started to take for granted sub-1s ie load times. Sigh. Anyway, here are the data:

      ie: 1 MS max, every time. with SP1: 3-4 MS, depending on what else is up

      adobe premiere 6.5: 7-9 MS, with SP1: 18-25 MS

      excel xp with a 16MB spreadsheet (loaded from a shortcut to the sheet file): 20-25 MS. with SP1: 60-90 MS.

      DVArchive (replay tv simulator, all in JAVA 1.4.1, a very slow-loading monkey): 30-35 MS. with SP1: 90-100 or tired of counting MS.

      This sucks. Especially now that I know why, for the following reason. Before, I simply attributed the slow down to the mysterious hardware and software gremlins (and I'm an ASIC designer -- we know better than most just how real these critters really are -- ask me about typical chip testing coverage (90-98%), or to compare the MS bugs we cry about to the insane, random bugs in million-dollar EDA software from Cadence and Synopsys), but now I know that an upgrade that ostensibly should have improved system performance has instead worsened it, I'm bummed. Worse, there were some hassles with my (legit) corp key for XP with SP1, causing me quite a bit of hassle getting the thing installed to begin with.

      OK, maybe SP1 made it more secure, or less crash-prone (wasn't bad before though, and doesn't seem better now), or something. Yes, I'll tell myself that -- something improved. I'm just not sure exactly what it is.

      --
      everything in moderation
  7. quality by tabby · · Score: 5, Funny

    More good work from MS's 'does it compile?' quality assurance program

    --
    I've experiments to run, there is research to be done on the people who are still alive.
    1. Re:quality by miratrix · · Score: 4, Insightful

      I genuinely am surprised that something like this could've slipped through the cracks.

      Service Packs are suppose to be stable, extensively tested set of updates unlike hotfixes, and the bug description makes it sound like it could be a programming logic error, not a programming bug. I mean, they must've noticed *something* if certain programs take up to 10 times as long...

    2. Re:quality by elmegil · · Score: 2, Insightful

      But see, only third party software actually has to use the documented interfaces to allocate memory, and so they're the only ones affected.

      --
      7 November 2006: The day Americans realized corruption and incompetence weren't addressing 11 September 2001
  8. Re:never installed sp1! by Unregistered · · Score: 3, Funny

    you use XP. Serves you right for piracy.

  9. "a" flaw? by RawDigits · · Score: 5, Funny

    Windows XP's Service Pack 1 has introduced a flaw into the operating system.

    Drat, just when we all thought windows had achieved perfection. Back to the Visio board...

  10. Bloated by DJ+Rubbie · · Score: 5, Funny

    Each component in Windows is so intertwined together that when one thing needs to be fixed, the a few other pieces breaks, which must be fixed, therefore more pieces break and it will get to a point when all pieces break and it is better off to run NT4, as Microsoft stopped breaking it.

    --
    Please direct all bug reports to /dev/null
    1. Re:Bloated by Anonymous+Brave+Guy · · Score: 2, Insightful
      ... it will get to a point when all pieces break and it is better off to run NT4, as Microsoft stopped breaking it.

      No, no... They stopped fixing it. That's different, y'see. :-)

      --
      If you disagree, post your argument. (-1, Overrated) isn't your personal censorship tool for views you don't like.
  11. Where you can find this patch... by phreak404 · · Score: 5, Informative

    Here: http://www.neowin.net/comments.php?id=9815&categor y=main

    1. Re:Where you can find this patch... by jafisherton · · Score: 2, Informative

      Click this instead of copying and pasting. http://www.neowin.net/comments.php?id=9815&categor y=main

  12. I'm sure no one is interested but... by JSmooth · · Score: 4, Informative

    Here's a link to the file:

    http://home.t-online.de/home/520092137223-0001/x p/ Q815411_WXP_SP2_x86_ENU.exe

  13. Have seen this by IanBevan · · Score: 4, Informative
    We have seen this exact behaviour when benchmarking our heap management product. Although our software is targetted at multithreaded software and multiprocessor machines, we've been surprised to see it improve performance of non-multithreaded programs by so much on XP. We've seen it speed up single threaded applications on Windows 2000 too, but not by so much.

    And please, before somebody gets started with a flame war, WinHeap is not open source (although there is a source code license available), but it is free for non-profit use.

  14. Reminds Me of Python-Esque Humor by mistermund · · Score: 5, Funny

    This patch, along with the fact that MS won't be releasing a patch for that recent gaping hole in NT4, reminds me of a scene...

    (Read along in a mock British-imitating-French accent, ala the castle scene in Monty Python's Holy Grail)

    Microsoft Engineer: We've got a problem here, chaps!
    MS Users (All, Amongst Selves): Well, how about a patch then?
    Microsoft Engineer: Uh, we've already got one, you see.
    MS User 1: Are you sure he's got one?
    MS User 2: He says they've already got one!
    Microsoft Engineer: Oh, yes. It's very nice-a.
    MS Engineers: [chuckling]
    MS Users: Well, u-- um, can we come up and have a look?
    MS Engineer: Of course not! You are clueless types-a!
    MS Users: If you will not show us the patch, we shall switch all our systems to Linux!
    MS Engineer: You don't frighten us, clueless pig-dogs! Go and boil your bottom, sons of a silly person. I blow my nose at you, so-called Linux King, you and all your silly open source k-nnnnniggets. Thpppppt! Thppt! Thppt!
    MS User 1: What a strange person.
    MS User 2: Now look here, my good man--
    MS Engineer: I don't wanna talk to you no more, you empty headed animal food trough wiper! I fart in your general direction! Your mother was a hamster and your father smelt of elderberries!
    MS Users: Is there someone else up there we could talk to?
    MS Engineer: No. Now, go away, or I shall taunt you a second time-a! [sniff]

    (With aplogies to Monty Python)
    Script here.

    1. Re:Reminds Me of Python-Esque Humor by MisterFancypants · · Score: 3, Funny

      Monty Python just isn't funny. Never was, never will be.

  15. Memory Management??? by wideBlueSkies · · Score: 5, Funny

    What the hell did they have to go and touch that for? Was is broken?

    Yeah, so the new Microsoft standard malloc() and takes 10 times as long to load as the old version. But with this increase in time, the customer can be sure that the memory allocations are being done more securly, and in a way that's good for them.

    Also as a bonus, no more pesky free()'s. When that memory gets allocated, it STAYS allocated untill you (have to) reboot your system.

    --
    Huh?
  16. Re:Show me the mirror! by TBone · · Score: 2, Informative

    And I answer my own question... :) http://www.warp2search.net/article.php?sid=11377

    --

    This space for rent. Call 1-800-STEAK4U

  17. I knew it. by Hershmire · · Score: 5, Funny

    SecureCRT takes forever to start up.

    So I suppose SP1 is to XP as beer is to me: a tool to slow your reaction time. Too bad it doesn't make XP more attractive...

    --
    if(!toilet_paper) roll.replace(new roll); //Stupid roommates.
  18. More mirrors for Patch by N8F8 · · Score: 4, Informative
    --
    "God fights on the side with the best artillery." - Napoleon, Marshal of France - speaking truth to power
    1. Re:More mirrors for Patch by Mattsson · · Score: 2, Interesting

      Eum... Is this patch availible somewhere for other languages than English?
      I would need a Swedish version. =)

      (I can't belive that MS hasn't stopped using different binaries for different languages yet. It's idiotic. They even *rename* systemfiles and folders between languages, making some poorly made programs incompatible with other languages than English...)

      --
      /.Mattsson - My native language is not English, so please don't whine over linguistic errors. (That's lame anyway...)
  19. That explains it by jkirby · · Score: 2, Informative

    This explains why my Acrobat reader is crawling. I installed the fix and now all is back to normal.

    --
    Jamey Kirby
  20. Re:Here's a thought... by PhoenixFlare · · Score: 2, Insightful

    Here's another thought...Wait until you (or someone trustworthy) has actual evidence of something like that, before spouting off?

    Linux is cool, I have a dual-boot set up myself, but- I cannot reliably run 99% of the Windows games and many other programs i've spent hundreds of dollars on under Linux. Hence, I and many others like me can't just switch over to an all-Linux box, just because the Man at Microsoft might be slipping nasty stuff in that there's no evidence of.

  21. I'm such a whore by alexburke · · Score: 2, Interesting

    Why bother asking Microsoft for the patch? Here you go. :)

  22. Downloads/Patches Right Here -- i386/Alpha by mattyohe · · Score: 4, Informative

    Just because im a nice guy...

    http://www.paricom.com/matt/xphotfix/

    --
    - what is the definition of simultanagnosia?! I've been meaning to look it up!
  23. RTFriendlyKBA by hackwrench · · Score: 2, Informative

    This particular fix requires calling Technical support to get. It's even in the Slashdot article!

  24. what so unusiual by Brigadier · · Score: 2, Funny


    Historically speaking this makes it an upgrade ...

  25. Ah, Finally!!! by jlrowe · · Score: 5, Funny
    Finally Microsoft has a fix to slow down the spread of Code Red and other MS related worms and virii.

    Sure, it has some side effects, but don't all fixes?

  26. Re:Well, I am not installing XP SP1 anyway... by mabinogi · · Score: 2, Interesting

    It's ok, it just refuses to install SP1, it doesn't invalidate your product key.

    --
    Advanced users are users too!
  27. Re:wasn't xp by itself already bad enough. by Blaine+Hilton · · Score: 2, Funny

    Probably job security. They have to have people that patch the patches to the those other patches that were ment to fix the O/S.

  28. Re:Downloads/Patches Right Here -- i386/Alpha by Soko · · Score: 3, Funny

    Whoa, whoa whoa. Hold it right there. Alpha patches? For WinXP?

    You , sir, are one of two things:

    1.- You are an evil cracker who is tempting people into downloading your latest Trojan Badger^WHorse code so you can r007 them and be a 1337 h4x0r. Except they'd actually have to be for NT4 to run at all, you fucking lamer.

    2. - You are a Microsoft engineer who has XP running on the Alpha processor. Which means Microsoft still supports the Alpha internaly, and Compaq needn't of killed it. I could have had an EV8!!!

    In either case, you can expect your next of kin to recieve a very large bill for beer, .44 magnum shells and dry cleaning. I refuse to pay one red cent towards dragging you into the street by the hair, shooting you and then pissing in the 6 craters I will have just created in your body.

    HAND.

    Soko

    (Still mourning the Alpha)

    --
    "Depression is merely anger without enthusiasm." - Anonymous
  29. THE FIX DOES NOT COST ANYTHING -- DOWNLOAD LINKS by mattyohe · · Score: 5, Informative

    What you can do is call 1-800-936-4900 which is Microsoft's Hotfix Line.. Tell them the Q article and they will pull it up and send a link in your email.

    But I have already done this for you.. And I didn't forget you alpha users!

    http://www.paricom.com/matt/xphotfix

    --
    - what is the definition of simultanagnosia?! I've been meaning to look it up!
  30. XP SP1 Slowdown by aSiTiC · · Score: 2, Interesting

    I don't know about anyone else but I noticed a fairly noticable slowdown in XP when I installed SP1. I've since uninstalled SP1.

    Personally I prefer speed over security.

  31. One other major problem by AsnFkr · · Score: 5, Informative

    I work in a local computer repair shop, and 30% or so of the computers we load SP1 on stop booting properly. No safe mode, no VGA mode, just a wipe and reload. They boot then restart as soon as they should be getting to the desktop, caught in a eternal loop. Unless it is specifically requested by the user, I definatly don't load it. Thats just the major of many other problems we have come across with SP1.

  32. This would have been the first post ... by Mikey-San · · Score: 5, Funny

    But due to the Service Pack update, IE took ten times longer to launch! ;-D

    -/-
    Mikey-San

    --
    Mikey-San
    Karma: +Eleventy billion (mostly affected by watching Celebrity Jeopardy)
  33. Has anyone actually witness this slow down? by antdude · · Score: 3, Interesting

    I haven't on my machines and test machines at home and office with various softwares. Are there any known programs or games that does show this?

    --
    Ant(Dude) @ Quality Foraged Links (AQFL.net) & The Ant Farm (antfarm.ma.cx / antfarm.home.dhs.org).
    1. Re:Has anyone actually witness this slow down? by mallfouf · · Score: 3, Insightful

      I did notice the slowdown.
      XP took longer to boot. Some applications also took longer, like AOL, and some games.
      I downloaded the patch, and everything ran faster. I'm playing C&C Generals at the moment, and the game did run a lot faster after installing the patch.

  34. Re:So that's why Mozilla's been slow... by digitalhermit · · Score: 3, Funny

    Memory leaks are often caused when using streaming applications because they tend to use a lot of bandwidth, causing your internet "pipe" to have what's known to us programmers as an "overflow condition". This problem is often exacerbated by having too many open ports. On Linux and BSD you can generally fix memory leaks by applying a tarball with the "patch" utility to the affected server.

    Memory leaks were very common in older systems that used 'bubble memory' and lots of pointers.

    Other things you can try are entering the BIOS and turning off the "memory hole". This is unnecessary for everything but OS/2 anyway. If you do need to keep the memory hole, you can try using the "finger" utility to plug the hole. This method is popular with Netherlands programmers.

    HTH.

  35. Release candidates by Tomster · · Score: 4, Interesting

    It is plain that Microsoft's internal testing is insufficient. I don't really fault them for this -- it's simply impossible to have enough configurations, testcases, and procedures to cover more than a small percentage of the actual ways the product is used.

    IMO, Microsoft would benefit by issuing public release candidates for new OS versions and patches. It would greatly reduce the impact of problems with patches and new releases.

    -Thomas

    1. Re:Release candidates by Fweeky · · Score: 2, Funny
      IMO, Microsoft would benefit by issuing public release candidates for new OS versions

      Huh? I thought that's what alt.binaries.warez.ibm-pc.ms-beta was for. Isn't it official?!?

      <looks shocked>
    2. Re:Release candidates by nbvb · · Score: 2, Funny

      Hrm, worked fine here with Safari on OSX and Mozilla on Solaris.... dunno what your problem is...

      Oh wait, yes I do. The OS.

  36. This is not really news by tsphere · · Score: 2, Insightful

    Every new release of windows runs slower than the one before. Looks to me like MS is trying to stay ahead of the curve.

    --
    Tetris rules.
  37. Re:THE FIX DOES NOT COST ANYTHING -- DOWNLOAD LINK by SonicBurst · · Score: 4, Informative

    Not to be an ass or anything, but XP doesn't run on alphas. If you take a careful look at the patch file, you'll see ia64 in the file name. 2 completely different architectures.

    --

    Geek used to be a four letter word. Now it's a six-figure one.
  38. So - Using printf() supports terrorism by SuperKendall · · Score: 5, Funny

    I knew it!! Where else is that money going? I never see any...

    I never did quite trust printf(), a little on the seedy side it always seemed to me. How can it just keep taking arguments? That's just not natural.

    --
    "There is more worth loving than we have strength to love." - Brian Jay Stanley
  39. At last! The re-birth of tail-recursion!! by SuperKendall · · Score: 5, Funny

    For too long have tail-recursive supporters been laughed at and ignored while people used fancy stacks that grew without bounds!

    No longer! Now, arise my tail-recursive brethren and let a new day of shallow-stack programming commence!!

    Wait - stack growth is not the same as memory allocation? My bad. Back, I say, supporters of the One Recursion! The time is not yet right.

    --
    "There is more worth loving than we have strength to love." - Brian Jay Stanley
  40. Re:More /. FUD. by Mattsson · · Score: 4, Informative

    Well... Actually, it's not /. FUD.

    1.
    It's being reported in other places than /.
    I first read about it in the newspaper...

    2.
    It's being reported on Microsofts own website.
    So maybe it's microsoft FUD? =)

    3.
    The problem actually exists. (Thus is not FUD)
    It doesn't appear on *every* XP computer with SP1, but some actually load programs at 1/10 the speed that they did without SP1.

    Even on /. some bad news about Microsoft turns out to be true. =)

    --
    /.Mattsson - My native language is not English, so please don't whine over linguistic errors. (That's lame anyway...)
  41. 640K is enough by RalphBNumbers · · Score: 4, Funny

    Well, Bill said 640K of memory is enough for most people, so I guess M$ it taking that as a design goal and ooptimizing their OS for things that don't need more RAM than that

    --
    "The worst tyrannies were the ones where a governance required its own logic on every embedded node." - Vernor Vinge
    1. Re:640K is enough by ReadParse · · Score: 3, Informative

      That's an urban legend.

  42. As a programmer by SynKKnyS · · Score: 2, Interesting

    As a programmer, I have yet to run into this bug. I am using Windows XP SP1 with all patches from Microsoft Baseline Security Analyzer applied. My game engine contains a few routines that rapidly allocate and deallocate memory for linked lists. There might be more than 400 allocation and deallocations every second from the time the engine starts. I have used GlobalAlloc (or the synonym LocalAlloc), HeapAlloc, VirtualAlloc, and CoTaskMemAlloc. Not one has proven to be slow at all, however, I settled on HeapAlloc since it seemed to be the most flexible. But, this may change if my plug-in system needs direct access to allocated memory (which only CoTaskMemAlloc provides). Does anyone know how to reproduce the bug in code?

    1. Re:As a programmer by NeuroManson · · Score: 3, Interesting

      It may be (a) Microsoft application specific, or (b) independant application specific, IMO. There are often hundreds of applications, be they shareware, freeware, or third party, that cause this issue, but lacking an exact basis for comparison between systems running each and every one of them, I doubt there is an easy answer, let alone a way to conveniently reproduce the bug.

      Until more detail is offered as to the applications involved, there is no way to reproduce the bug, unless one develops psychic abilities, and can read the minds of every person using XP.

      --
      Just because you can mod me down, doesn't mean you're right. Shoes for industry!
  43. Re:VM issue? by stratjakt · · Score: 2, Interesting
    It is very obscure.

    If it was the major flaw the slashbots would want you to think it is, you wouldnt have heard about it first on slashdot. (Did you hear about Code Red, Nimda, Slammer, etc on slashdot first?)

    As an aside, here's another nifty coding flaw I found recently:


    Slashdot requires you to wait 2 minutes between each successful posting of a comment to allow everyone a fair chance at posting a comment.

    It's been -282 seconds since you last successfully posted a comment


    I guess I posted from the future! (cue scary music)
    --
    I don't need no instructions to know how to rock!!!!
  44. Jeez, learn to read by fm6 · · Score: 5, Interesting
    It's a cute joke, but...
    This problem may occur if the programs you run frequently allocate and deallocate large blocks of memory. Changes in Windows XP SP1 in the memory management system have caused this operation to take significantly longer than with pre-SP1 Windows XP.
    It's "frequently allocate and deallocate large blocks of" not just "allocate". This is not a small nit to pick, especially for Linux people. For years, GNU libc had a memory leak bug that was triggered by frequent allococation and deallocation of small blocks of memory. It only became an issue back in 2000, when Borland ported their component libraries to Linux.
    1. Re:Jeez, learn to read by jhylkema · · Score: 5, Funny

      (This is rhetorical and not meant as a troll.)

      Mein Gott!

      The poster criticized a Microsoft competitor and didn't get modded into oblivion? The poster deigned to utter a discouraging word on /. about an open-source product and got away with it? What is this world COMING TO?!? C'mon, libc is perfect in every way and when a fully-functioning HURD kernel is released in 2060 or so, it's gunna be awesome!

  45. Chill out by Anonymous Coward · · Score: 3, Insightful

    Holy crap... I love the fact that every post that's been modded to 4 or 5 seems to be written by someone who doesn't use Windows.

    FYI: It's not a big deal. I've been using SP1 for months, and haven't noticed anything. Obviously, so have a whole lot of other people.

    It's nothing to get so worked up about.

    (Posted AC because this will be flamebait to some people).

  46. DHCP Problems persist as well by citking · · Score: 3, Informative

    SP1 for XP was supposed to address the DHCP problem that Microsoft has had with XP Home. Being a tech guy for a college, I can tell you that the DHCP issue was never corrected and people had to end up upgrading to XP Pro or upgrade to 2000 (yes, XP Home to 2000 is an upgrade, IMHO).

    --
    "This food is problematic."
  47. Re:really nice fast mirror by bezza · · Score: 2, Funny
    That domain name gives me a whole heap of confidence when choosing a download site. Thanks!

    --
    WARNING: This sig does not contain a joke
  48. No problems.. by ball-lightning · · Score: 2, Interesting

    I haven't seen any slowdown personally...
    I run:
    Internet Explorer
    Photoshop 6.0
    Dreamweaver (yes, I am that lazy)
    SimpleMu
    Winamp
    Windows Media Player
    Office
    Slowdown really bothers me too, so I'd expect if it was really noticable, I would have noticed. I suspect this may be more of a "benchmark thing" than anything else.

  49. Wait by sw155kn1f3 · · Score: 3, Funny

    That means apps will be loading 10ms instead
    of 1ms on my brand new p4 with stripe raid ?

    *going to shoot myself in the head*

    --
    - Arwen, I'm your father, Agent Smith.
    - Well, you're just Smith, but my father is Aerosmith!
  50. Re:never installed sp1! by hdparm · · Score: 4, Funny
    Not gonna work either. Try

    IN5T4-LLM3T-0CR4P-UPURW-1ND0Z

    Works as per SP1 specifications.

  51. But... by Lolaine · · Score: 2, Interesting

    Doesn`t the whole OS slow programs? I mean, since whe are running an OS, we know it will slow down our apps. Is the counterpart to run only an app, no network, and so on, but Why cant be developed critical apps for the PC (or other cheap platforms) with no OS? (I mean, apps that boot themselves) It would make OS crashes less critical for that critical apps and make response speed (since no scheduler, context switches, etc...) increased. It would be a pain to work in one of those apps from scratch, but they would not rely in nothing but hardware. I remember playing a game for the PC (80286 era) that selfbooted from a 1.44 Mb Disk....

    --
    ------- The last Sig. got fired.
  52. It really makes a difference by forged · · Score: 2, Interesting

    I have Apache 2.0 and MySQL 4.0 configured as services. Then upon logon, Mozilla 1.3 loads itself in memory. I often had to wait up to one full minute after system boot and user logon, for the networking subsystem to get started !!! This meant no Internet access until one minute after logon - not acceptable. With the hotfix applied, boot is faster (as in pre-SP1) and there was a sizeable difference in programs load time.

  53. Huzzah for retro-gamers! by Hadlock · · Score: 2, Funny

    This means me and my friend will be able to play Descent 1 without the originally gentle bobbing of the ship sped up to a nauseating earthquake speed! Dust off that copy of Descent and try it for yourself. I dare you to try and play for 15 minutes without getting a nauseating headache!

    :-D

    --
    moox. for a new generation.
  54. In the meantime .... by Atomic+Anvil · · Score: 2, Funny

    ... folks with Macs are yawning and getting on with their lives. Macintosh: more than a computer, it's a way of life.

    --
    be an ultimate recycler - buy an old used car every year
  55. Re:Downloads/Patches Right Here -- i386/Alpha by nbvb · · Score: 2, Funny

    Yeah yeah, I gots me one of them thar Itanic workstations at work .... I bought it to run HP-UX, and well, it bites.

    Ready for prime-time my ass.

    I'll stick with my SunBlade & PA-RISC workstation, thanks ...

    Now off to get a nice shiny AlphaStation :)

  56. M$ New Slogan by Geeyzus · · Score: 2, Funny

    Where do you want to go eventually?

  57. Re:Solution to your problem by AsnFkr · · Score: 2, Interesting

    You work in a repair shop and you don't know how to get to Safe Mode?

    You are kidding right? Of course I know how to get into safe mode. If you'd READ my post you would understand that the machine will not *allow* safe mode to be entered when this problem occurs. I hope this has restored your faith in the human race, as your comment has diminished mine. :)

  58. no big deal by ethelred · · Score: 2, Insightful

    Considering the relatively large amount of people running a pirated version of WinXP, and haven't installed service pack 1, i'd say the problem is rather contained.

    --

    Remember: If you buy anything from spammers, you have a small penis.
  59. For all you naysayers out there.... by John+Courtland · · Score: 2, Informative

    I've just installed the hotfix and it has made quite a difference on my 433MHz w/ 256MB RAM laptop. Trillian and my wireless network monitor both start up noticably faster, and Opera starts faster as well. I would say I notice a speedup of a few seconds for the network and maybe 1-2 seconds for Trillian, maybe 4 for Opera.

    --
    Slashdot is proof that Sturgeon's Law applies to mankind.
  60. malloc/free broken under NT...Memory Management??? by lent · · Score: 2, Informative
    malloc() and free(), the first two dynamic memory management functions that most C programmers learn, were broken back in Windows NT.


    If you ever had an application ported from UNIX to NT that wasn't a memory hog under UNIX but slowly ate its way through virtual memory on NT, this is most likely why.

    Microsoft sneakily added the _heapmin() function to combine contiugous small free'd blocks into big chunks of memory.
    Unfortunately, free(), malloc()'s happy buddy, had been combining free blocks on each call to free() since the dawn of the C programming language.
    My guess is Microsoft got better performance on benchmarks by essentially not freeing memory!
    If you look at K&R "The C Programming Language", Kernighan & Ritchie implement malloc and free
    free() itself is the last thing. It scans the free list, starting at freep, looking for the place to insert the free block. This is either between two existing blocks or at the end of the list. In any case, if the block being freed is adjacent to either neighbor, the adjacent blocks are combined. The only troubles are keeping the pointers pointing to the right things and the sizes correct.
    Hey but don't take my word for it. Intel has warned you about this for a while, [p.61 of 101].
    NOTE for MSVC users: As in any C application, the standard C calls malloc() and free() may be used to manage memory. If you are using the Microsoft Visual C++ compiler, it is VERY IMPORTANT to note a scarcely documented fact of the Win32 API, in that free() does not actually free the memory that is being accessed (as it does in most standard C compilers). MSVC will free the pointer to the memory but will not actually release the physical memory. To release the physical memory a call to the Windows extension function _heapmin() must be made. This function should be documented in Win32 API documentation but it may be noted that it is difficult to find a reference to it otherwise. If the application uses free() and malloc() but not _heapmin() then virtual memory issues will arise during extended use of the application.

    But Mircosoft "fixed" it in MSVC 4.0 and up.
    Note [New feature hides ugly bug]In Visual C++ Version 4.0, the underlying heap structure was moved to the C run-time libraries to support the new debugging features. As a result, the only Win32 platform that is supported by _heapmin is Windows NT. The function returns -1 and sets errno to ENOSYS, when it is called by any other Win32 platform. [But what happens if you run an old VC < 4.0 compiled binary? Probably the old function gets called]


    In a related move, Microsoft has quietly added to the Windows SDK that the color red, formerly 622 - 760nm, shall be redefined with the values 455 - 492nm (formerly known as blue). Programs from other platforms should add a call to the _PutOnRoseColoredGlasses() function to avoid compatibility problems. :-)