Slashdot Mirror


Comprehensive Guide to the Windows Paging File

busfahrer writes "Adrian's Rojak Pot has a nice article about the internals of the Windows paging file. It explains what a paging file is and lists the differences between a swapfile and a paging file. But first and foremost, a large part of the article deals with the various methods of optimizing the Windows paging file, thus yielding a notable performance gain for people who are not overly blessed with RAM."

495 comments

  1. Defrag first, man. by inertia187 · · Score: 4, Informative

    One of the biggest performance helps is to keep the paging file from being fragmented, and I'm not talking about three or four fragments.

    I've come across workstations where the paging file is in thousands of fragments. This happens when someone messes with the settings. For instance, they might increase the size of the paging file thinking it'll help to have more. Normally, it's not a bad idea to increase it but if the drive is heavily fragmented, Windows dutifully uses the fragments for the new space.

    The only way to fix it is to completely delete (deactivate) the page file, then do a defrag, then re-create the page file (several reboots involved).

    That's probably the best way to tune the page file. There, I saved you from having to take the time to read the article.

    --
    A programmer is a machine for converting coffee into code.
    1. Re:Defrag first, man. by UCFFool · · Score: 5, Insightful

      OMG, you mean you didn't read the article and possibly learn something?

      Honestly, I wonder why people take the high and mighty road. The number one problem with computers is people simply don't understand them. The number one way to solve this problem is to educate the user about these little facets of the OS.

      The article covers some very basic differences in plain english, and unlike the 'just to do this and leave me alone' attitude, puts the user one step closer to a positive computer experience... a tough thing in today's virus/trojan/adware /. world.

      --
      "The more pity, that fools may not speak wisely what wise men do foolishly" - Touchstone,Shakespeare's "As You Like It"
    2. Re:Defrag first, man. by The+Snowman · · Score: 5, Interesting

      One of the biggest performance helps is to keep the paging file from being fragmented, and I'm not talking about three or four fragments.

      The best way to avoid fragmenting the swap file is a method I learned a long time ago, and the author mentions in his article but doesn't talk about much: keeping it on a separate partition. Sure, NTFS doesn't have a swap partition type like Linux does, but I keep a 2 gig partition with a fixed-size swap file on my WinXP box. Set the registry key to ignore "out of space" warnings for that drive, remove read privileges from everybody to that drive, and you basically have an invisible, un-fragmentable swap file that is invincible to user stupidity (I share my computer with my wife, so that last point is important. She does not have Administrator privileges on my box).

      --
      24 beers in a case, 24 hours in a day. Coincidence? I think not!
    3. Re:Defrag first, man. by Anonymous Coward · · Score: 1, Informative
    4. Re:Defrag first, man. by Monkelectric · · Score: 3, Insightful
      OMG, you mean you didn't read the article and possibly learn something?

      How could he? 15 posts and the server is toast.

      --

      Religion is a gateway psychosis. -- Dave Foley

    5. Re:Defrag first, man. by vp_development · · Score: 5, Funny
      ...She does not have Administrator privileges on my box...


      This seems unfair since I'm assuming you have admin privs on her box

    6. Re:Defrag first, man. by Clay+Pigeon+-TPF-VS- · · Score: 5, Funny

      What are you talking about?! Men never have admin privs on a woman's box.

      --
      Viral software licensing is not freedom, it is in fact GNU/Socialism.
    7. Re:Defrag first, man. by vp_development · · Score: 1

      I can make a new partition! I'm not allowed to use swap space though. I guess I don't control permissions though. I guess I'm not an admin

    8. Re:Defrag first, man. by computational+super · · Score: 1
      invincible to user stupidity (I share my computer with my wife

      Er, I sure hope she doesn't know your /. userid... or maybe she needs admin priviledges to read this post?

      --
      Proud neuron in the Slashdot hivemind since 2002.
    9. Re:Defrag first, man. by Anonymous Coward · · Score: 2, Funny

      Probably from low amounts of RAM, and slow fragmented swap file usage.

    10. Re:Defrag first, man. by nih · · Score: 1

      She does not have Administrator privileges on my box

      now thats just going to far!

      --
      I'm a rabbit startled by the headlights of life :(
    11. Re:Defrag first, man. by dfn5 · · Score: 5, Funny
      What are you talking about?! Men never have admin privs on a woman's box.

      At least, not after marriage.

      --
      -- Thou hast strayed far from the path of the Avatar.
    12. Re:Defrag first, man. by blackmonday · · Score: 4, Funny

      Hey - That's better than her rights being set to "Everyone".

    13. Re:Defrag first, man. by fm6 · · Score: 1
      I keep a 2 gig partition with a fixed-size swap file on my WinXP box. Set the registry key to ignore "out of space" warnings for that drive, remove read privileges from everybody to that drive, and you basically have an invisible, un-fragmentable swap file that is invincible to user stupidity...
      A logical strategy, but one that Microsoft strongly deprecates. Don't ask me to explain why, I don't understand either. Maybe their logic is, "We have this clever scheme for an adaptable page file, and if you don't use it you're a jerk!"

      But I don't get the "invincible to user stupidity" bit. Are you afraid that your wife will somehow delete the paging file? I'm pretty sure that's not possible.

      Another reasonable scheme (only good after you've defragmented the page file, or before its had a chance to fragment) is to specify a fixed size page file -- you just specify the maximum and minimum as the same. Not quite as efficient as your scheme, but a little easier to set up.

    14. Re:Defrag first, man. by Anonymous Coward · · Score: 0, Funny

      Would you want admin privs on her box?

      Sorry to get personal, man. Just in fun, right?

      Here's a hint. You can tell Apache to deny access to slashdot.org referrers. That won't prevent people from entering the URL manually, though. Oh, did I say that?

    15. Re:Defrag first, man. by the+unbeliever · · Score: 4, Funny

      Access to her box is on a per-request basis, most likely.

    16. Re:Defrag first, man. by Anonymous Coward · · Score: 0

      You must not be married...

    17. Re:Defrag first, man. by Anonymous Coward · · Score: 0

      use linux, you muppets.

    18. Re:Defrag first, man. by Anonymous Coward · · Score: 0

      This knowledge is about as new as running memmaker to free up upper memory to run leasure suit larry I. WTF this is news...

    19. Re:Defrag first, man. by Anonymous Coward · · Score: 0

      I would. She married a lucky man, that's for sure.

      What, you don't have a thing for geek chic? What the fuck are you doing on Slashdot?

    20. Re:Defrag first, man. by The+Snowman · · Score: 4, Funny

      ...She does not have Administrator privileges on my box...

      This seems unfair since I'm assuming you have admin privs on her box

      No, I don't want admin privileges on her box. I don't want to have to deal with daily admin tasks. Instead, I am a power user. Oh yeeeeah!

      --
      24 beers in a case, 24 hours in a day. Coincidence? I think not!
    21. Re:Defrag first, man. by riptide_dot · · Score: 2, Funny

      and you basically have an invisible, un-fragmentable swap file that is invincible to user stupidity (I share my computer with my wife, so that last point is important. She does not have Administrator privileges on my box).

      This seems unfair since I'm assuming you have admin privs on her box

      If she reads that last comment, I'm thinking those rights are gonna get revoked...:)

      --
      I was in the park the other day wondering why frisbees get bigger and bigger the closer they get - and then it hit me.
    22. Re:Defrag first, man. by Anonymous Coward · · Score: 0

      It's going to far? Oh no! Quick, we must stop it from farring!

    23. Re:Defrag first, man. by Profane+MuthaFucka · · Score: 2, Funny

      I'll settle for 'read-only'.

      Signed, the neighborhood peeper.

      --
      Fascism trolls keeping me up every night. When I starts a preachin', he HITS ME WITH HIS REICH!
    24. Re:Defrag first, man. by snorklewacker · · Score: 1

      > The only way to fix it is to completely delete (deactivate) the page file, then do a defrag, then re-create the page file (several reboots involved).

      Hardly, unless you're so short on space that you can't fit a copy of the largest fragment. Do a normal defrag, run pagedefrag (from sysinternals), and reboot. Once. Or get a defragger that will do the pagefile -- have it do the registry files and MFT while you're at it. O&O defrag's pretty good, but just about anything is better than the piece of garbage defragger in windows.

      --
      I am no longer wasting my time with slashdot
    25. Re:Defrag first, man. by Anonymous Coward · · Score: 0

      It's a joke. Don't take it personal, man, or else what the f*** are *you* doing on Slashdot. ;-)

    26. Re:Defrag first, man. by oliverthered · · Score: 1

      That's the second best way...

      the best way is to save up $50 and stick another gig of ram in the box.

      --
      thank God the internet isn't a human right.
    27. Re:Defrag first, man. by iminplaya · · Score: 1

      There, I saved you from having to take the time to read the article.

      Thanks. The Internal Revenue code is an easier read than that was, and that was just the first page. Damn I wish they had an "everything on one page" thing for that so I could just download and read it over the next week or so.

      --
      What?
    28. Re:Defrag first, man. by The+Snowman · · Score: 1

      But I don't get the "invincible to user stupidity" bit. Are you afraid that your wife will somehow delete the paging file? I'm pretty sure that's not possible.

      Oh come on. I have had to clean up enough customers' computers to know they find ways to do stupid things. Hell, I've destroyed enough of my own OS installs to know I can do it myself. Like the time I wanted to see just how much damage "rm -rf /" as root can do. Turns out it is as bad as I thought. (I was reinstalling anyway)

      Another reasonable scheme (only good after you've defragmented the page file, or before its had a chance to fragment) is to specify a fixed size page file -- you just specify the maximum and minimum as the same. Not quite as efficient as your scheme, but a little easier to set up.

      Yeah, but to get that set up right you need to defragment and move the swap file which is a few extra steps. Not that it is a bad solution, of course, one that works well with NT-based Windows because it is slightly less retarded than 95-based Windows. I found even in the old days of 3.1 and 95 that I would have issues with corrupt swap files, partly due to programs that misbehaved and a kernel memory manager that was about as smart as a doorknob. So I would have to spend an hour messing with the swap file to get it set up the way I wanted it... again.

      --
      24 beers in a case, 24 hours in a day. Coincidence? I think not!
    29. Re:Defrag first, man. by jackbird · · Score: 1

      You need to have about 5 MB of free space on the swap partition for voodoo reasons. Making the drive invisible helps with that.

    30. Re:Defrag first, man. by Anonymous Coward · · Score: 0
      The argument has always boiled down to exactly when life begins: specifically when an embryo/fetus/baby becomes a human deserving of legal rights.

      In other words, telling someone "you don't have the right to kill that baby" has no effect if the person believes it's not a baby.

    31. Re:Defrag first, man. by Anonymous Coward · · Score: 1, Insightful

      I didn't marry her for her looks, she didn't marry me for mine. She is a damn good wife and mother, has a good sense of humor, and a good work ethic. She isn't a full-blood geek like I am, but she is close.

      I don't now if the OP was joking or not, but thanks, I am glad to see more than one person who sees women as more than just T&A. Come on, how many women let their men spend hours writing code and only bug them with "need another soda?"

    32. Re:Defrag first, man. by That's+Unpossible! · · Score: 1, Offtopic

      That's bullshit. We pro-life people aren't trying to take away "reproductive rights" or any nonsense like that.

      Uh huh...

      My right to swing my fist ends where your nose begins, and a woman's right to "admin" her "box" ends where her unborn child begins.

      Define 'unborn child.' Most Republicans use this term to refer even to fetuses of any stage.

      I define an unborn child as a fetus at the point where it can be removed from a woman and live. Before that, it is a parasitic tissue and the host should have full control over it.

      Liberals are funny... you're all hardcore against the death penalty, except for the "crime" of being conceived at an inconvenient time.

      Republicans are funny... they claim to want smaller government, until it comes to our private lives.

      Democrats are funny... they claim to want larger government, until it comes to our private lives.

      Both sides should live their lives and not worry so much about everyone else's lives.

      If you want to kill yourself, that's YOUR choice. Not your mom's.

      Wow, poor time to bring this up Mr. Conservative, as your party sides with the delusional parents of Terry Schiavo and decimates her wishes to let her body die long after her mind and soul already has.

      --
      Ironically, the word ironically is often used incorrectly.
    33. Re:Defrag first, man. by Anonymous Coward · · Score: 0

      I would love to find a gig of ram for $50.

    34. Re:Defrag first, man. by fm6 · · Score: 1
      Oh come on. I have had to clean up enough customers' computers to know they find ways to do stupid things.
      Perfectly true. (Perhaps you've heard the saying, "There's no such thing as a foolproof system, because fools are very clever.") But that still doesn't explain what you're afraid a naive user could do to a swap file.
    35. Re:Defrag first, man. by dzym · · Score: 5, Funny

      It's called "root" privileges. Thanks.

    36. Re:Defrag first, man. by jd142 · · Score: 2, Informative

      Article is toast, but if you want to defrag our pagefile.sys, go to sysinternals.com and get their pagedefrag program. This has increased boot times on older computers running w2k by as much as 30 seconds. It also defrags some of the other system files.

      Sysinternals does good work.

    37. Re:Defrag first, man. by The+Snowman · · Score: 1

      You need to have about 5 MB of free space on the swap partition for voodoo reasons. Making the drive invisible helps with that.

      Windows XP needs a "RECYCLER" directory on each NTFS and FAT drive, whether or not you enable the recycle bin for that drive. I actually ran into a hard "out of disk space" error the first time I tried this in XP. The error was non-fatal but would not go away. So I recreated my swap file about 10 MB smaller and the problem went away.

      --
      24 beers in a case, 24 hours in a day. Coincidence? I think not!
    38. Re:Defrag first, man. by FauxPasIII · · Score: 1

      > That's probably the best way to tune the page file. There, I saved you from having to take the time to read the article.

      -nod- Although it costs, DiskKeeper Pro can do this directly without all the hoops. I think it's
      worth the money, and they have a free time-limited demo.

      --
      25% Funny, 25% Insightful, 25% Informative, 25% Troll
    39. Re:Defrag first, man. by Bloater · · Score: 4, Funny

      The real problem is where you get a nude sunbather, and they give you read-only access.

    40. Re:Defrag first, man. by fm6 · · Score: 1
      Honestly, I wonder why people take the high and mighty road. The number one problem with computers is people simply don't understand them. The number one way to solve this problem is to educate the user about these little facets of the OS.
      It is helpful to educate about system features they have interact with from day to day. But teach them all the little low-level features of the OS? Few users have the background, time, or patience.

      In any case, this article sucks. It's on an overdesigned server with a weird dynamic page generation thing that seems to malfunction under the slightest load -- so simply reading the article straight through is painful-to-impossible, depending on the degree of Slashdotting. And the author doesn't understand the technical concepts all that well anyway.

    41. Re:Defrag first, man. by Anonymous Coward · · Score: 0

      Excellent post!

    42. Re:Defrag first, man. by Anonymous Coward · · Score: 0

      use linux, you muppets.
      ......

    43. Re:Defrag first, man. by Anonymous Coward · · Score: 0

      You have BOTH been trolled. You have BOTH lost. Both of you have a very nice fucking day.

    44. Re:Defrag first, man. by Anonymous Coward · · Score: 0

      use linux, you muppets.
      .....

    45. Re:Defrag first, man. by Anonymous Coward · · Score: 0

      Bah! Guest privs at most.

    46. Re:Defrag first, man. by Malc · · Score: 1

      How come you're running with admin privs? I'm reading between the lines so sorry if I've made an incorrect assumption.

      Aaron Margosis has an excellent blog for those wishing to run as a normal user. I highly recommend using the Privbar so that you can tell the security level of Explorer and IE (you will sometimes need to run them as Admin without wanting to log off and log on as a different user).

      Unfortunately there are still a lot of things around that require admin rights to run. Fiddlying with NTFS and registry security permissions sometimes isn't enough (especially if the app has loads of COM objects). Most things can be right-clicked on and "run as" a different user. For things (like Explorer) that I need to run as admin on a regular basis, I have shortcuts setup to prompt automatically (so I don't have to think about it).

    47. Re:Defrag first, man. by mc6809e · · Score: 1

      One of the biggest performance helps is to keep the paging file from being fragmented, and I'm not talking about three or four fragments.

      The trouble is that some (like Windows) memory allocation algorithms combined with demand paging cause accesses to the page file to be mostly spacially random.

      While moving the pieces of the page file physically closer together on the disk helps a little, there isn't a huge improvement because accessing sectors in anything but sequencial order will still be terribly slow.

      In fact, for certain sequences of access, getting a sector from a neighboring track might even be faster than getting one on the same track. If you have a 7200 rpm drive, it might take up to 8 ms to get another sector from a track just accessed since you're forced to wait for the disk to spin it around to you. A track to track seek, on the other hand might take just 2 ms. If you seek a neighboring track and happen to pick up the sector you need right away, you might only have to wait 2ms. Of course, if you miss, you may end up having to wait 2ms+8ms, but like I said it depends on the sequence.

      One of the reasons SCSI drives have historically been so much faster than IDE is because they can take a list of sectors to be accessed and change the order to minimize total access time. Newer IDE and SATA drives have this ability, too.

      For a single faulting application this may not help that much since the app is probably waiting anyway for a new page to be brought in.

      But suppose you have several faulting processes. If the system is smart, these faults will get queued up, rearranged, and serviced by the drive in an manner that tends to get all of them up and running again as quickly as possible.

    48. Re:Defrag first, man. by kzinti · · Score: 1

      What are you talking about?! Men never have admin privs on a woman's box.

      At least, not after marriage.


      Damn straight. The best you can hope for after that is that she occasionally grants you execute permission. (And you'd best take advantage of it, or else she'll set world-execute permission.)

    49. Re:Defrag first, man. by Anonymous Coward · · Score: 0

      He mostly gets - Access Denied!

    50. Re:Defrag first, man. by The+Snowman · · Score: 2, Insightful

      I have gone back and forth between admin and non-admin a few times, more time without admin rights. Some programs have a tough time running, mainly because they want to access stuff they really shouldn't.

      I think the problem is the developer culture that built up around Windows, coupled with its changing ideas of how to separate code and data. With Windows XP we essentially have the core idea behind Unix: a /usr and /usr/local directory (Program Files), and a /home directory (Documents and Settings). However, I have several programs that insist on saving data in Program Files instead of my home directory. This could be as simple as using the %HOMEPATH% environment variable, or using one of several Win32 API calls that do the same thing. Unfortunately, developers get lazy, use Program Files, C:\, Windows, etc. to store data. The only exception should be daemons such as Apache and MySQL that do not "belong" to a user, sort of like "nobody" in Unix. And there you have /etc, instead of dot files in /home. Sigh. The way things are, and they way they should be...

      Anyway, the point is that this can make it very difficult to run certain programs without elevated permissions when you lock down the Program Files and Windows directories.

      --
      24 beers in a case, 24 hours in a day. Coincidence? I think not!
    51. Re:Defrag first, man. by Anonymous Coward · · Score: 0

      Come on, how many women let their men spend hours writing code and only bug them with "need another soda?"

      You're a lucky man. All my wife ever does is strip naked, walk in, mount me, and fuck my brains own while I'm coding (usually in the middle of a unit test, to her credit).

      Talk about pairs programming, eh?

    52. Re:Defrag first, man. by Anonymous Coward · · Score: 1, Insightful

      This must be the linux developer attitude:

      The number one problem with computers is people simply don't understand them. The number one way to solve this problem is to educate the user about these little facets of the OS.

      You could also say:

      The number one problem with microwave ovens is grandma simply does not understand them. The number one way to solve this problem is to educate gandma about these little facets of the Maxwell's Equations.

      or:

      The number one problem with cars is drivers simply don't understand them. The number one way to solve this problem is to educate the driver about these little facets of the thermal cycle of the gasoline engine.

      or:

      The number one problem with televisions is people simply don't understand them. The number one way to solve this problem is to educate the people about these little facets of analog circuitry.

      No, computers, like cars, microwave ovens, telephones, must just work, expecting the user to know how they work is absurd.

    53. Re:Defrag first, man. by Malc · · Score: 2, Insightful

      Yes, it can be a lot of work running as non-admin. But there's a certainly feeling of secureness knowing that half the worms and trojans out there can't get very far without admin rights too.

    54. Re:Defrag first, man. by Anonymous Coward · · Score: 0

      What are you talking about?! Men never have admin privs on a woman's box.

      Trust me, you don't want admin privs on a woman's box. Those things bleed every month. I wouldn't want to be stuck with the job of adminning those boxes.

    55. Re:Defrag first, man. by mph · · Score: 4, Funny
      This has increased boot times on older computers running w2k by as much as 30 seconds.
      That's great! My machine's been booting too fast, and I've been looking for a way to make it take a half minute longer.
    56. Re:Defrag first, man. by oliverthered · · Score: 1

      well if you don't ask too many questions about where it came from, you can often pickup too good to be ligit deals at ebay.

      --
      thank God the internet isn't a human right.
    57. Re:Defrag first, man. by NanoGator · · Score: 3, Funny

      "What are you talking about?! Men never have admin privs on a woman's box."

      Pity this discussion is strictly academic for the contributers.

      --
      "Derp de derp."
    58. Re:Defrag first, man. by Anonymous Coward · · Score: 0

      Yea, because someone who is comatose can adequately express that sort of thing.

    59. Re:Defrag first, man. by TheBlunderbuss · · Score: 0

      ...decimates her wishes to let her body die long after her mind and soul already has.

      You know her soul has died how? Oh yeah that's right. You must be God.
      Somehow I doubt God would choose an online forum as a vehicle.

    60. Re:Defrag first, man. by Anonymous Coward · · Score: 0

      still does'nt take from the fact that she's fatter than you. and you're pretty chubby too.

      fatso.

    61. Re:Defrag first, man. by Clay+Pigeon+-TPF-VS- · · Score: 0, Offtopic

      If you want to kill yourself, that's YOUR choice. Not your mom's.

      Wow, poor time to bring this up Mr. Conservative, as your party sides with the delusional parents of Terry Schiavo and decimates her wishes to let her body die long after her mind and soul already has.


      Conservatives don't hold the view that it is your right to kill yourself. Libertarians do. Also, the only person who claims that Ms Schiavo said she wanted to die is the one person who stands the most to gain from her death.

      --
      Viral software licensing is not freedom, it is in fact GNU/Socialism.
    62. Re:Defrag first, man. by networkBoy · · Score: 2, Insightful

      I just want to know how a Windows swapfile vs linux swap partition bashing thread turned into abortion rights!
      -nB

      --
      whois gawk date unzip strip find touch finger mount join nice man top fsck grep eject more yes exit umount sleep dump
    63. Re:Defrag first, man. by anethema · · Score: 0, Offtopic

      I personally define the baby as a human when brain activity starts. No brain activity=no self=not human (IMO).

      Medical science seems to back me up here I think.

      --


      It's easier to fight for one's principles than to live up to them.
    64. Re:Defrag first, man. by Spire · · Score: 1

      Set the registry key to ignore "out of space" warnings for that drive....

      What registry key is that? On Windows XP, the only relevant registry setting I'm aware of is the NoLowDiskSpaceChecks DWORD under:

      HKEY_CURRENT_USER \Software \Microsoft \Windows \CurrentVersion \Policies \Explorer

      But this is a global setting, and cannot be changed for individual drives.

      --
      begin 644 .sig22&%I;"P@9F5L;&]W(&=E96 LA`end
    65. Re:Defrag first, man. by freedom_india · · Score: 1

      This WHOLE tree should be modded as Offtopic.

      --
      "Doing what i can, with what i have." ~ Burt Gummer
    66. Re:Defrag first, man. by That's+Unpossible! · · Score: 0, Offtopic

      Conservatives don't hold the view that it is your right to kill yourself. Libertarians do.

      However, the person I was responding to was most definitely a pro-life (when it comes to abortion) conservative. I can't help it if he didn't get the memo about the right-to-die cases.

      Also, the only person who claims that Ms Schiavo said she wanted to die is the one person who stands the most to gain from her death.

      What does he have to gain by her death? Any money from the insurance was long spent on keeping her body alive. He was offered $15 million to sign over the custodial rights to her parents, and refused to do so. And logic would dictate that he was in a much better position to have heard her wishes about this scenario compared to her parents, since he actually lived with her for the years preceding her accident.

      So remind me again what he has to gain from her death? Peace of mind? After 15 years watching his brain dead wife be kept alive against her will, I'd say he's earned it.

      --
      Ironically, the word ironically is often used incorrectly.
    67. Re:Defrag first, man. by SA+Stevens · · Score: 1

      There's a certain amount of secureness in running all your computers behind a hardware firewall/NAT server, and not even giving the Windows machines the gateway IP address to reach out through it.

      That's what Linux and NetBSD boxes are for in my house. Windows machines are for Office Apps and games, and all the jolly stuff we were doing back in the classic Microsoft days (pre-network, Personal computers were little islands). Don't even install TCP/IP on more than one of your Windoze boxes. NetBUI is fine for the rest to talk among themselves.

    68. Re:Defrag first, man. by Nutria · · Score: 1

      But there's a certainly feeling of secureness knowing that half the worms and trojans out there can't get very far without admin rights too.

      There's a certainly feeling of secureness knowing that 99.99% the worms and trojans out there can't get very far on Linux, *BSD and OS/X.

      --
      "I don't know, therefore Aliens" Wafflebox1
    69. Re:Defrag first, man. by Anonymous Coward · · Score: 0

      The article says it's not optimal to put your swap on a 2nd partition of your master drive.

    70. Re:Defrag first, man. by Malc · · Score: 1

      Maybe because partitioning is a pain in the arse. Where are you going to put your paging partition? At the beginning or end of the disk? A geek might be concerned about the performance of that. How about in the middle, and then have two other partitions - that always ends up being a pain to manage too as one of the partitions (e.g. the one with Windows on it) will probably run out of space.

      I've been partitioning for years. OS, data, swap, temp partitions, and it's a pain at some point when space predictions go wonky and you start running out.

    71. Re:Defrag first, man. by Nutria · · Score: 1

      this has increased boot times on older computers running w2k

      Why boot so often?

      --
      "I don't know, therefore Aliens" Wafflebox1
    72. Re:Defrag first, man. by Anonymous Coward · · Score: 0

      Men never have admin privs on a woman's box.

      Michael Schiavo does...

    73. Re:Defrag first, man. by Malc · · Score: 1

      The funny thing is, my Debian server got hacked last night. It was up to date with the only ports exposed through my NAT box being ssh, smtp and http. Every OS has it's problems. Linux, *BSD and OS/X don't provide what I need and so I use Windows... therefore I don't care how secure they are in comparison.

      If you're interested: logcheck emails this morning indicated that my ethernet card had gone in to promiscuous mode, and there were a bunch of other warnings too. I don't know if the increase in probes I've seen in the logs against SSHD are related. Netstat indicated two connection to foreign port ircd (no PID associated with the connection), and another unknown process listening on TCP 48744. man couldn't bring up any pages. A double-check with apt-get (to confirm I was up to date, which I'm sure I am) failed as gzip seg faulted. Reboot failed with a bunch of messages, including a missing mtab file and this:
      rm uses obsolete (PF_INET,SOCK_PACKET)

      I guess I've got to pull the drive to get my data, and then rebuild. Never had a problem like this under Windows ;)

    74. Re:Defrag first, man. by Nutria · · Score: 1

      up to date with the only ports exposed ... being ssh, smtp and http

      Guess you'd better do a better job configuring your exposed daemons. Or choose better daemons.

      --
      "I don't know, therefore Aliens" Wafflebox1
    75. Re:Defrag first, man. by Malc · · Score: 1

      And that's the crux of it all, no matter what certain OS zealots around here might preach. Security is more to do with the users/admins than with the choice of OS.

    76. Re:Defrag first, man. by Anonymous Coward · · Score: 0

      rm -rf / alwaays reminds me of the deactivating HAL scene in 2001.

    77. Re:Defrag first, man. by pla · · Score: 1

      The only way to fix it is to completely delete (deactivate) the page file, then do a defrag, then re-create the page file (several reboots involved).

      Okay, this entire topic (as it pertains to Windows) only needs four points covered, and even if you ignore the rest, implement #1 ASAP...

      1) As the first thing you install after the OS, use PageDefrag by SysInternals. Set it to defragment at every boot (after the first time, it only takes a few seconds). This will keep your pagefile, hibernation file, and registry as contiguous as possible. Totally free-as-in-beer, and as with all SI's tools, absolutely rock-solid for stability (and no, I don't work for them).

      2) If you need a pagefile, set it to a fixed size (same max and min). This will avoid it getting fragmented in the first place. As for what size to use... On any modern drive, don't get stingy. Go ahead and set it to 4GB (perhaps 64bit versions of Windows can use more, but if you actually need more, you already know all about tweaking memory and pagefile performance).

      3) If you have two physical drives, put the pagefile on the non-system drive. If you only have one, put the pagefile on the same drive as the OS. Do not put the pagefile in its own partition, ever (the above two points prevent fragmentation anyway, and having it in the same general place on the disk as most activity will help minimize disk head movement).

      4) If you have a gig or more of RAM and don't have a special need for more, don't even bother using a pagefile. Set its size to zero, set your "system failure" section NOT to automatically reboot and the memory dump type to "none" (otherwise you can get into a state where you BSOD immediately on boot, which itself causes a reboot, laeding to another BSOD, and so on forever). Yes, I know this point seems to really drive self-proclaimed "experts" absolutely batty, and they'll tell you never ever ever to not have a pagefile, but I've run half a dozen machines without pagefiles over the last two years, without a single problem occuring as a result. Quite the contrary, you get a VERY noticeable speedup, particularly with opening new explorer windows (not MSIE, but the filesystem navigation you get to from "My Computer").

    78. Re:Defrag first, man. by Anonymous Coward · · Score: 0

      Shit, I think I just heard "ba-dum-dummm!"

    79. Re:Defrag first, man. by Anonymous Coward · · Score: 0

      You mean her soulmate who knows her better than anyone else in the world who visits his souless wives living dead body in her hell everyday and weeps and weeps?

    80. Re:Defrag first, man. by baudbarf · · Score: 1

      Why is the article necessarily more authoritative than this gentleman's firsthand experience? Why are you not referring to the article itself as high-and-mighty? It, too, was written by a human. What makes that author more credible than this one?

      --
      You can run but you can't hide, except, apparently, along the Afghan-Pakistani border.
    81. Re:Defrag first, man. by Anonymous Coward · · Score: 0

      If she ever sees what you wrote you'll lose all permissions to her box.

    82. Re:Defrag first, man. by Jesus_666 · · Score: 1

      This is extremely useful on dualboot systems. Make a FAT32 partition and create the Windows pagefile there. Then modify your Linux start scripts so that with every boot the pagefile is turned into a Linux swapfile and used as such. Don't worry about Windows, it will reinitialize the pagefile while booting.

      That way you can have a shared swapfile, which saves disk space.

      --
      USE HOT GRITS WITH STATUE OF NATALIE PORTMAN (NAKED AND PETRIFIED)
    83. Re:Defrag first, man. by Darren+Winsper · · Score: 2, Insightful

      Microwaves do one thing: heat whatever's placed inside them (assuming it contains water). Cars do one thing: take you from A to B. TVs do one thing: Display an image from an input signal.

      Computers are general purpose devices. They can do many things. With flexibility comes complexity, there's only so much you can do to avoid that.

    84. Re:Defrag first, man. by Anonymous Coward · · Score: 0

      You don't want to admin her box when code red comes!

    85. Re:Defrag first, man. by karnal · · Score: 1

      Sounds like whatever was on the machine trashed your machine so you couldn't just "reboot" and figure out what went wrong.

      There'll always be something left behind, though... I'd say make an image of the drive to DVD or another HDD and start over then. You'll have your data, and you'll also have everything else that's left on the drive (assuming the reboot didn't just cause more destruction....)

      --
      Karnal
    86. Re:Defrag first, man. by Darren+Winsper · · Score: 0, Offtopic

      Try removing a foetus any time inside the first trimester and see if it survives.

    87. Re:Defrag first, man. by fm6 · · Score: 1

      What you say is quite true, but kind of beside the point. What Microsoft deprecates is fixed-size swap files. Of course, that means they don't like you to have a special swap partition -- but that's just by implication, since a swap partition implies a fixed-size swap file.

    88. Re:Defrag first, man. by karnal · · Score: 1

      Damn it! I just lost mod points yesterday, and I see this...

      --
      Karnal
    89. Re:Defrag first, man. by Malc · · Score: 1

      I suspect there's no data loss. I think it's a case of a scripted exploit that didn't fit my system too well. Maybe some bins or libs were affected. Some of the boot messages indicate it trying to do the same things that logcheck first reported: e.g. network interfaces going to promisc mode. It gets quite a long way through the boot, with lots of modprobe messages (I think that's more to do with the machine being old and the clock having reset to 1994 due to the BIOS not being Y2K compliant). But those messages tell me that the FS is mostly okay.

      Thanks for the feedback though ;)

    90. Re:Defrag first, man. by kubrick · · Score: 1

      Only for eunuchs... oh, I mean Unix. Sorry.

      --
      deus does not exist but if he does
    91. Re:Defrag first, man. by Anonymous Coward · · Score: 0
      I let someone borrow my linux livecd distro to test on his windows 98 laptop. He did not want to set up a swap file. So, with only 128 MB of RAM, his PII was a bit slow and did not do as well as I had expected. I always set up a swap file right off. Other, slower laptops did well with a swap file set up.


      Then I thought about it all, and realized that from the beginning, Windows has always used a page file. In the days of Windows 3.1 it was common to have a laptop with only 4 MB of RAM. Very expensive to add a pcmcia card with more RAM. I paid $800 for one such card, then, when the prices fell, ponied up another 350 for a card to give me a grand total of 20 MB of RAM. The page/swap file really helped Windows in those days.


      So, after the LiveCD Beta tester deal, I decided to redo the remaster to ask the user to set up a swap file if the RAM was less than 128. This would allow all those Walmart Windows XP computers to boot without being bothered, as they cannot set up a swap in that partition. Kind of a compromise.

    92. Re:Defrag first, man. by Short+Circuit · · Score: 1

      If you can find a gig of good 256MB PC100 or PC133 sticks for only $50, I'd probably buy them from you.

      Saving up the $50 isn't a problem. It's spending the several hundred on a computer that supports the currently-cheap version of RAM that breaks my checking account.

    93. Re:Defrag first, man. by stanmann · · Score: 1
      Define 'unborn child.' Most Republicans use this term to refer even to fetuses of any stage.

      I define an unborn child as a fetus at the point where it can be removed from a woman and live. Before that, it is a parasitic tissue and the host should have full control over it.
      So some time between 16 and 18 years old then?
      --
      Food not Bombs is a nice platitude but it breaks down when you notice that the Bombees are usually well fed
    94. Re:Defrag first, man. by Gary+Destruction · · Score: 1

      Don't you mean decreased boot time?

    95. Re:Defrag first, man. by Anonymous Coward · · Score: 1, Funny

      Yeah, but there's always back-door methods.

    96. Re:Defrag first, man. by Anonymous Coward · · Score: 0

      Wow, poor time to bring this up Mr. Conservative, as your party sides with the delusional parents of Terry Schiavo and decimates her wishes to let her body die long after her mind and soul already has.

      My party? I'm an independent voter; I have no party. Even though I'm strongly pro-life and generally conservative otherwise, I HATE the retard monkey president and his ilk.

      When you say "until it comes to our private lives", you're being disingenuous. Abortion is an intrusion on one's private life if and only if you accept the premise that a woman has the right to kill her unborn child, which I certainly do not grant.

      Since I believe that abortion is murder, from my point of view the government has not only the right but the duty to protect defenseless fetuses/babies/whatever from butcher "doctors".

      As for Ms. Schiavo, I agree 100% that she should have her feeding tube removed and be allowed to die with dignity...

    97. Re:Defrag first, man. by Anonymous Coward · · Score: 0

      the pro-life defender here seems to be convinced that medical technology can make anything live

      I said nothing of the sort. If the fetus dies of natural causes, so be it. If the fetus is on track to live properly in the womb until birth, then we have no right to kill it.

    98. Re:Defrag first, man. by Anonymous Coward · · Score: 0

      However, the person I was responding to was most definitely a pro-life (when it comes to abortion) conservative. I can't help it if he didn't get the memo about the right-to-die cases.

      Pro-life conservative original poster here.

      You're exemplifying the retarded notion that there are precisely two political camps with neatly drawn boundaries and complete groupthink inside each one.

      Being pro-life does not mean that I hold conservative positions on any of the other myriad sociopolitical issues of our time, and it certainly does not make me an unthinking idiot "rah-rah W!" Republican who wants to keep what's left of Ms. Schiavo alive. I fucking hate W for his incompetance, lies, and warmongering, and I think that letting Terry die peacefully is the humane and reasonable option.

      Don't make assumptions about my political stance based on one issue. Tard.

    99. Re:Defrag first, man. by plague3106 · · Score: 1

      Just because you look at a woman's physical apperience doesn't mean she's just T&A.

      I'm not sure why you'd be someone you're not attracted to mentally and physically. Seems like you're kidding yourself if you don't admit physical apperence is a factor.

      Your wife lets you do what you want because she's likely got no self esteem and feels she has to put up with whatever you want to do and serve you.

    100. Re:Defrag first, man. by speaker4thedead · · Score: 1

      Why would you want admin privelidges on her box?

      Tampons and Bleeding and Yeast infections...

      Do you really want to have to deal with all that headache?

      --
      "My religion is to live --and die-- without regret." -- Milarepa
    101. Re:Defrag first, man. by RockModeNick · · Score: 1

      I acctually delete the "recycler" file after disabling the recycle bin on my RAMdisk virtual HDD ram partition and it still works fine. This partition contains my paging file, adobe workspace, and browser cache.

    102. Re:Defrag first, man. by plague3106 · · Score: 1

      You can make it so that Windows doesn't 'see' the drive (at least, there's no letter assigned to it). I think this is what the GP post was refering to to disable the warning message.

    103. Re:Defrag first, man. by Anonymous Coward · · Score: 0

      To the defarrinator!

    104. Re:Defrag first, man. by he-sk · · Score: 1

      Yes, but without proper memory management the computer can do nothing. It should just work, so the user can concentrate on what he wants to do.

      --
      Free Manning, jail Obama.
    105. Re:Defrag first, man. by Anonymous Coward · · Score: 0

      "What are you talking about?! Men never have admin privs on a woman's box."

      Her gynecologist might.

    106. Re:Defrag first, man. by Thuktun · · Score: 1

      Why not take a cue from *nix and put the pagefile.sys on its own partition, safely away from ANY other file activity that might cause it to fragment?

    107. Re:Defrag first, man. by rlsthree · · Score: 0, Offtopic

      Maybe. But what will cause some to argue with you is the destiny of that particular organism. Some will feel that if, in the natural course of things the baby will turn into a human, then it already is human.
      OK Devil's advocate here....... In the natural course of things => by using birth control, you interfered w/ the destiny of that particular organism.
      In the natural course of things => if you are fertile, and abstain from sex, you are interfering with destiny.
      We are sentinent beings, EVERYTHING we do interferes w/ destiny. In the natural course of things =>

      --
      Nunchucks don't kill people NINJAS kill people
    108. Re:Defrag first, man. by colinrichardday · · Score: 0, Offtopic

      Unborm child? Spare us your idiotic euphemisms!

    109. Re:Defrag first, man. by Anonymous Coward · · Score: 0

      Or you could simply use the free and excellent (and now ancient) Pagedefrag utility from Sysinternals.

      http://www.sysinternals.com/ntw2k/freeware/paged ef rag.shtml

      Then you can have your page file (and registry hives and event logs) defragmented when you start your machine. Works on NT, 2000, XP, and 2003.

    110. Re:Defrag first, man. by danheskett · · Score: 1

      I am not advocating one way or another, just saying that the definition previously given was bad. "When the fetus can be removed and live on its own" is a horrible definition. If a full-term fetus is delivered but requires immediate care to live, does that count? What about premies, etc.

      My whole point is that given medical technology and the uncertainity in it, a definiton based only on viability is bound for failure. Two people under identifical circumstances often end up with very different medical outcomes. A definition of a person based on the skill of a doctor, or luck, or the location of delivery, or anything else variable as such is bound for abuse and misunderstanding. I'd rather see a definiton like "when the cord is cut" than something unable to be defined like previously suggested. At least then everyone involved knows.

    111. Re:Defrag first, man. by danheskett · · Score: 0, Offtopic

      I think the difference is at some point the parents stop interferring, and nature independent of the parents takes course. You can always actively sabotage an unwanted pregnancy, but, barring that, there is a point that a baby will be born if no adverse action is taken.

      By taking birth control, or abstaining, or whatnot, you are preventing nature from taking root and doing that which is natural. You are preventing fertilization, which is when two diverigent human cell lines unify and produce a new DNA pattern.

      I don't think you are going down the right path.. but I can't think of a better or more sensible one.

    112. Re:Defrag first, man. by danheskett · · Score: 1

      The earliest baby ever delivered and had a non-infant death was, as far as my research shows, 17 weeks fetal age. That means 2nd trimester, rather early.

      Before that, it was 18 weeks, 19 weeks, 20 weeks, etc. Around 24 weeks the chances of healthy development are about 50%.

      So you could safely say, that at the start of the second trimester, plus a bit, is when the baby is a seperate human life, right?

      Well, what happens when one child is born four or five days closer, and 16 weeks? It is going to happen at some point. Medical development is such that sooner or later, probably sooner, it will happen. Then what? Where all those babies aborted at 16 weeks now considered murdered? Or is it a case by case basis? If it's case by case, then any pre-birth age is acceptable, since you could never know.

      It's extremely, extremely tricky.

    113. Re:Defrag first, man. by Anonymous Coward · · Score: 0

      It isn't always true. If the partition you create is too far away from the system partition or data partitions, the head of the hard disk has to move further away when swapping. It's better to have the partition for swapping on another drive.

    114. Re:Defrag first, man. by Anonymous Coward · · Score: 1, Funny

      Yeah, but there's always back-door methods.

      Huh huh... he said back door... huh huh...

    115. Re:Defrag first, man. by The+Snowman · · Score: 1

      "There's no such thing as a foolproof system, because fools are very clever."

      Invent a better system, God will invent a better idiot.

      But that still doesn't explain what you're afraid a naive user could do to a swap file.

      Oh, I need space for my new pr0n collection or 3D game... DELETE... Or whatever. Users make up excuses that sound good enough until you spend more than five seconds thinking about it. Hell, we have developers delete stuff on boxes to move stuff they think has something to do with testing the application or whatever but is just the tenth copy of the same tar file or whatever on the same damn drive, but they are too clueless to do a find command or just use common sense (/usr/src? hello?) to know they should just forget what they are doing and talk to an admin to be sure.

      Sigh. And these people have CS degrees?

      --
      24 beers in a case, 24 hours in a day. Coincidence? I think not!
    116. Re:Defrag first, man. by The+Snowman · · Score: 1

      You can make it so that Windows doesn't 'see' the drive (at least, there's no letter assigned to it). I think this is what the GP post was refering to to disable the warning message.

      Windows will always see every drive. Every drive will have a letter assigned. It is easy to deny access to drives for users, slightly more difficult to make them disappear in Explorer. However, they still exist from Windows' perspective and a command line window will still see them even if it gives a "permission denied" error when trying to view them.

      --
      24 beers in a case, 24 hours in a day. Coincidence? I think not!
    117. Re:Defrag first, man. by T-Ranger · · Score: 1

      Unless your catholic.

    118. Re:Defrag first, man. by The+Snowman · · Score: 1

      Yes, it can be a lot of work running as non-admin. But there's a certainly feeling of secureness knowing that half the worms and trojans out there can't get very far without admin rights too.

      I run all my computers behind a cable modem NAT firewall. Though simple, it stops 99% of malware at the gate. Windows firewall and paranoia stops the other 1% (I run Firefox, OpenOffice, etc. The only non-OSS I run is Windows itself). Even if this box is compromised, I turn 90 degrees to my right and use my Linux box: instant security :-)

      --
      24 beers in a case, 24 hours in a day. Coincidence? I think not!
    119. Re:Defrag first, man. by tylernt · · Score: 1

      I've done this on Windows 2000 for some time, and it seems to help. I thought I was clever because I came up with it all by myself, but obviously I was wrong. :)

      Another thing I thought would increase performance was creating a software RAID-0 across partitions on two drives, then install my programs and place my data on the RAID array. I don't think it really helps much though, because whenever there is heavy I/O on the RAID array, Windows 2000 seems to use all of the CPU for disk access and my application performance just tanks. Guess you need hardware RAID to get a real performance boost.

      The software RAID does let me have a single 30GB volume using two 20GB hard drives though, so that is one thing in its favor.

      --
      DRM 'manages access' in the same way that a prison 'manages freedom'
    120. Re:Defrag first, man. by The+Snowman · · Score: 1

      Set the registry key to ignore "out of space" warnings for that drive....

      What registry key is that?

      Annoyances.org has a page about this, but I know there is a way to specify this on a per-drive basis. I don't know for sure, but TweakUI might help. I did search my registry for my "s: (swap) drive" just to be 100% sure, but came up with a bunch of results for "Neverwinter Nights: subtopic" so I just gave up after about 20 results. I know I have it set up on my system just for that one drive. Sorry.

      --
      24 beers in a case, 24 hours in a day. Coincidence? I think not!
    121. Re:Defrag first, man. by The+Snowman · · Score: 1

      The article says it's not optimal to put your swap on a 2nd partition of your master drive.

      Okay, maybe I was not too explicit, but my Windows box has two physical drives on two separate P-IDE channels (until I can afford a new SATA drive). Swap is the first partition on my secondary drive.

      Even if it wasn't, having my swap file in a single contiguous chunk on a partition in the middle of my hard drive is okay performance, even by what the article says.

      Keep in mind that I believe in the /usr and /home idea of Unix, so I keep programs and data separate in Windows. Sure, I am not the typical user of Windows that brings his computer home from Worst Buy or CompUSA, but I am a nerd, and I do believe at least a little bit in the spirit of Unix :-)

      --
      24 beers in a case, 24 hours in a day. Coincidence? I think not!
    122. Re:Defrag first, man. by BreadMan · · Score: 1

      >> Before that, it is a parasitic tissue

      When you have a wife and family (you *should* be married, two parents getting along is very important to a child!) and you look at your children and think for a second they were ever "parasitic tissue" you need professional help.

      It's so nice to be objective, somewhere between hearing heart-beat for the first time, seeing the baby showing, or feeling those kicks (depending on the personality of the kid, they can start moving early), you're in love; you can't wait until the birthday.

      Have a kid, you'll understand. :-)

      p.s. One's view of abortion isn't a liberal/conservative thing. It's more about how one feels, deep inside, about other people. Defining exactly when life begins is a distracting parlor game.

    123. Re:Defrag first, man. by fm6 · · Score: 1
      Oh, I need space for my new pr0n collection or 3D game... DELETE...
      Except you can't delete a Windows file while it's in use -- and a swap file is always in use.
    124. Re:Defrag first, man. by Anonymous Coward · · Score: 0

      Medical science seems to back me up here I think"

      Depends on the politics of the scientist. Too many are attached to the notion of the inhumanity of a fetus, because to admit that they are human would mean that they are directy murdered during abortion, and embronic stem cells are taken from murdered babies.

      Tell me this: were the Jews less human when Hitler declaired them to be so? What about early American black slaves? Were they less human before the Civil war and the Civil Rights movement?

      The Supreme Court has ruled that they can not declare anyone to be human. Why dont they realize that they also lack the right to declare a baby, born with human DNA, who will likely (1) be born and grow through adulthood (2), subhuman?

      1(if properly cared for)
      2(given variations due to environment, education, choices, et cetera)

    125. Re:Defrag first, man. by Namlak · · Score: 1

      I *never* partition my drives. System performance is severely limited by hard drive latency and you're insuring many loooong trips across the drive face. Even if you have ample RAM, there is always *some* swapping going on.

      The best technique is to do the base install of the OS, install all patches, deactivate the swap file (thus deleting it), defrag the drive to pack all the OS files nice and tight, then create a swap file bigger than you'll ever need in the nice, clean contiguous space you've created through defrag.

      Of course, nothing will beat a separate spindle for the swap file....

    126. Re:Defrag first, man. by mcrbids · · Score: 2, Interesting

      I think the problem is the developer culture that built up around Windows, coupled with its changing ideas of how to separate code and data.

      Man, I hear you! I've written software using the %HOMEDIR% variable, as you suggest, but the software I wrote is multi-user capable. Meaning, that multiple people might use it, and each user has their own set of data.

      This works well in the Win98 world, but on XP, if several people share a computer, and somebody logs off the O/S and logs back in as another user, all their data is "gone" since %HOMEDIR% has changed.

      We can't require the user accounts, since many of our customers are still using 98/ME.

      So now what?

      I haven't had the chance to investigate thoroughly, but I've heard that even when things are "locked down" on an XP box, you can still create directories off the root directory!

      If we kept the files there, in a subdir, it just might make everything work without the above problems. Anybody else care to comment?

      --
      I have no problem with your religion until you decide it's reason to deprive others of the truth.
    127. Re:Defrag first, man. by Anonymous Coward · · Score: 0

      Yeah, but there's always back-door methods.
      My wife has deny all, permit by exception set, so the front door is the only way I'm getting in unfortunatly.

    128. Re:Defrag first, man. by Anonymous Coward · · Score: 0

      Complete offtopic, so posting anonymously ...

      I have no idea if her soul is gone, or even if she had one in the first place.

      However, shouldn't the religious types leave it up to God as to whether she lives or dies? If he doesn't want her, a miracle could occur. It seems to me that he's been trying to get her for the past 15 years. Who are these religious bastards that are trying to thwart God's will?

      A good thing about being agnostic is how easy it is to see how hypocritical people are. It's also the source of much despair.

    129. Re:Defrag first, man. by downundarob · · Score: 1

      > The only way to fix it is to completely delete (deactivate) the page file, then do a defrag, then re-create the page file (several reboots involved).

      Or use the freeware tool (pagedefrag) available from sysinternals.com.

    130. Re:Defrag first, man. by Anonymous Coward · · Score: 1, Informative

      There is a registry key on clearing the page file on shut down. It is also availabe via "gpedit.msc".

      Have a nice day and thanks for playing.

    131. Re:Defrag first, man. by Darren+Winsper · · Score: 1

      "So you could safely say, that at the start of the second trimester, plus a bit, is when the baby is a seperate human life, right?"
      Don't put words in my mouth.

      "Well, what happens when one child is born four or five days closer, and 16 weeks? It is going to happen at some point. Medical development is such that sooner or later, probably sooner, it will happen. Then what? Where all those babies aborted at 16 weeks now considered murdered? Or is it a case by case basis? If it's case by case, then any pre-birth age is acceptable, since you could never know."
      I don't consider abortion murder. Essentially, somebody has to pay the cost of that foetus's development if abortion doesn't occur. If it's the "mother", I don't believe she should be forced to go through the pregnancy if she doesn't want it. After all, there are people forced into pregnancy.

      If the mother shouldn't have to pay the cost (emotional, physical and financial), who should? Premature birth means life-support equipment. Who should pay for it? The state? I don't want to end up paying for all the would-be-aborted babies in the world. Call it selfish, but that's the way it is.

      So, where does that leave us? Well, some kind benefactor could offer to cover the cost. In that case, the choice should be the mother's. It's a part of her, it's a parasite feeding off her. It's a part of her body, why *shouldn't* she be allowed to have it terminated? With the advancement of medical science, it'll be possible to clone me from a few random cells. Should that be allowed?

    132. Re:Defrag first, man. by UCFFool · · Score: 1

      Well, that would be because the article itself speaks of the defrag 'trick' he states. Without even reading it, he dismissed the article for his own words... only the most arrogant would do so.

      --
      "The more pity, that fools may not speak wisely what wise men do foolishly" - Touchstone,Shakespeare's "As You Like It"
    133. Re:Defrag first, man. by AaronLawrence · · Score: 1

      Your information seems out of date. NT and up have always let you have drives with no letter assigned.

      --
      For every expert, there is an equal and opposite expert. - Arthur C. Clarke
    134. Re:Defrag first, man. by oliverthered · · Score: 1

      You probably better saving that $50 and upgrading your pc.

      Anyhow... fro $41 you can get
      168 pin 512MB PC133 (133MHz) SDRAM Memory MODULE For Desktops

      Or if you want more than that..'

      got two 256 MB sticks, and two 512 MB for a total of 1.5 GB of RAM, SDRAM, PC133, i also have ram cooler which i will include at no additional charge.

      Just don't ask which lorry that came off of the back of.

      --
      thank God the internet isn't a human right.
    135. Re:Defrag first, man. by broken.data · · Score: 1

      So why is it everytime we get into a fight I feel like I am the debugger user?

    136. Re:Defrag first, man. by RedCard · · Score: 1

      I just want to know how a Windows swapfile vs linux swap partition bashing thread turned into abortion rights!
      -nB


      You're right. This is BS. I've waded into these discussions (flamewars) before, and its always the the same. Everyone is too polarized to bother to ty to find a middle ground. Especially the ACs.

      On another note, I don't feel like clicking through 20 pages, each containg a single paragraph, just to read the article. And there's no single-page option. Why hasn't someone posted this on a single page? Or maybe they have. I'm just lazy to look.

    137. Re:Defrag first, man. by The+Snowman · · Score: 1

      There are ways to allow a program to degrade gracefully depending on which version of Windows it is currently running on. If you detect support for NTFS, for example, you know it is NT-based with all the user logins, home directories, and ACLs. Otherwise, use the old ugly hacks and encourage your users to upgrade to NT-based Windows or Linux.

      Also, %HOMEDIR% is just one method. Ideally you would use API calls to grab the directories you need. For example, there is one that returns the "Application Data" directory in a user's home directory. All you have to do is strcat() your application's name you are set. Then alter your message loop (or slots in Qt, or whatever MFC uses) to detect user-login messages. If you detect a user switches, you can save off the user's data first then set a flag or something so when the user switches back you can reload the data.

      If you want more information send me an email (my address is unobfuscated in the message header) and I can dredge my MSDN links for specific information.

      --
      24 beers in a case, 24 hours in a day. Coincidence? I think not!
    138. Re:Defrag first, man. by The+Snowman · · Score: 1

      I *never* partition my drives. System performance is severely limited by hard drive latency and you're insuring many loooong trips across the drive face. Even if you have ample RAM, there is always *some* swapping going on.

      Partitioning makes sense if you can separate static and dynamic data. For example, my Linux box has a /usr (including /usr/local) partition, and one each for /var and /tmp. There are a few other partitions but these three illustrate my point. Obviously, /usr does not change much, so fragmentation is low. /var and /tmp change often, so fragmentation is high. Separate partitions ensure the fragmentation stays localized, and in the event of a catastrophic filesystem error (not hardware error), I only have to fix a small portion of my system.

      Windows is a bit different. Microsoft "borrowed" the logical view of the Unix filesystem structure with the whole "My Computer" concept, but it is still a drive-oriented physical structure under the covers. However, by moving Program Files to its own partition (and hacking the registry to make it work correctly), Documents and Settings, and the swap file, you get essentially the same thing as in Unix: you can separate static and dynamic data.

      Of course, in Linux or Windows you can just create one huge partition that contains everything (well, Linux does need a dedicated swap partition), and it will work. I think the whole idea of partitioning is just for performance tweaking more than anything.

      --
      24 beers in a case, 24 hours in a day. Coincidence? I think not!
    139. Re:Defrag first, man. by Short+Circuit · · Score: 1

      Thanks for the pointers.

      However, none of my systems will take modules larger than 256MB.

    140. Re:Defrag first, man. by Namlak · · Score: 1

      Partitioning makes sense if you can separate static and dynamic data

      Actually, I don't care if the data changes much, I care if I have to access it at all. If you're loading a program that pushes some other data out of your working set and in the swap file, you're making the drive head go back and forth from the "static" program files to the "dynamic" swap file.

      It doesn't really matter if it's read or write activy, if the drive head has to go there, your performance is going down the tubes.

    141. Re:Defrag first, man. by plague3106 · · Score: 1

      Thats defaintly not true; in Win2k and above, you can 'mount' a secondary drive to a certain folder, just like you can have /home ona different disk then the root filesystem.

    142. Re:Defrag first, man. by Daktaklakpak · · Score: 1

      so...is her guest account enabled? ;) j/k

    143. Re:Defrag first, man. by The+Snowman · · Score: 1

      Yes, but keep in mind that back in high school she played on the boys' football team (and was a star player -- I like my women mean :-) ), and she reserves her private software interfaces for me -- everyone else gets to use the java.lang.fist interface.

      --
      24 beers in a case, 24 hours in a day. Coincidence? I think not!
    144. Re:Defrag first, man. by ash5g · · Score: 1

      Just use C:\Documents and Settings\All Users, under 2000/XP. It's in the API under special folders. It's made for situations like you describe.

    145. Re:Defrag first, man. by danheskett · · Score: 1

      Don't put words in my mouth.
      Fine. Say it yourself. When does a fetus become a person in your view. When does that fetus have rights? I don't consider abortion murder.
      That's fine for you to say that. I can respect your opinion.

      But if you consider killing a newborn baby murder - which the law currently does - you need to provide a definition of when, exactly, the difference between abortion and murder begins. If abort a fetus at 8 months, why can't you abort a child born 6 weeks premature after she is home from the hospital? Both are the same age and at the same stage of development. How is one different from the other?

      It's a part of her body, why *shouldn't* she be allowed to have it terminated?
      You can have your opinion. But the fact remains that what you just said has huge implications. It is okay to kill a fetus because it is helpless. Because it is not able to live on its own. Do not be surprised when people want to kill the disabled, kill the elderly, kill the infirm against their wishes. Why should society pay the cost? Why *shouldn't* they be killed?
      With the advancement of medical science, it'll be possible to clone me from a few random cells. Should that be allowed?
      I'd say no. Because it opens to many questions and has no good answers.

    146. Re:Defrag first, man. by Anonymous Coward · · Score: 0

      24 weeks, pshaw! Who gives a fuck about a strawman argument like that?

      How many foetuses (foetii?) do you know of that have survived removal from the womb after 8 or 12 weeks? We're talking abortion of unwanted babies here. 4-5 weeks to discover you're pregnant in the first place, leaving almost two full months to make a decision before the foetus is three months 'old'. 24 weeks is right on the edge of legal abortions and is a retarded point to make in such an argument. No-one says "I don't want this baby, but I will first carry it for six months".

    147. Re:Defrag first, man. by Anonymous Coward · · Score: 0

      DiskKeeper Lite is included with windows 2000 and it works well enough when there's plenty of free disk space, but once you drop under a 15% free space it does really stupid things. Manual defragmentting works better when your drive reaches capacity. How is DiskKeeper Pro any better?

    148. Re:Defrag first, man. by FauxPasIII · · Score: 1

      > How is DiskKeeper Pro any better?

      For starters, Pro can defrag the paging file, the whole point of this article. Lite can't.

      --
      25% Funny, 25% Insightful, 25% Informative, 25% Troll
    149. Re:Defrag first, man. by ThaReetLad · · Score: 1

      What I don't understand about pro-life groups is that they're the same people who want the death penalty and don't mind traumatising and demonising women who are already going through very difficult times. Surely a better option would be to put your money where you mouth and to compensate women to carry the baby to term and then put the child up for adoption, except where there would be danger to the womans health. That's the way Christians who care about such things ought to be acting. Love and support, and if neccesary self sacrifice to see the right thing done. If the woman still chooses to have an abortion the Christian should remain to offer what emotional and other support is required. That's not the same as saying abortion is OK, just that we are all sinners and that the woman is seriously in need of spiritual guidance and support. You've still got to be there not judging.

      --
      You can't win Darth. If you mod me down, I shall become more powerful than you could possibly imagine
    150. Re:Defrag first, man. by Anonymous Coward · · Score: 0

      Please explain how one gains from the death of a loved one? Are you talking about life insurance?

  2. Windows paging File... by demonbug · · Score: 4, Funny

    Would Mr. File please pick up one of the white courtesy phones? Your OS needs to talk to you.

    1. Re:Windows paging File... by k4_pacific · · Score: 5, Funny

      Picks up red phone.
      Hello?
      Voice on phone: No, the white phone.
      picks up white phone.
      Hello?
      PA system: Would Mr. File please pick up one of the white courtesy phones?
      (shouting) I've got it!
      PA system: Thank you

      --
      Unknown host pong.
    2. Re:Windows paging File... by GMFTatsujin · · Score: 2, Funny

      I see you're trying to pick up the white phone! Would you like to:

      * Talk to somebody on the white phone?
      * Listen to somebody on the white phone?
      * Call somebody on the white phone?

  3. Paging File by RagingChipmunk · · Score: 1

    A forensically useful article!

    --
    The only PT Boat Journal on the web: http://www.PT171.org
  4. swap file vs. paging file by LordNimon · · Score: 3, Interesting

    I can't read the article now because it's slashdotted, but is there a difference between the swap file and the paging file in Linux? Does Linux even have a paging file?

    --
    And the men who hold high places must be the ones who start
    To mold a new reality... closer to the heart
    1. Re:swap file vs. paging file by Anonymous Coward · · Score: 0

      Linux usually has a partition instead of a file.

    2. Re:swap file vs. paging file by DNS-and-BIND · · Score: 3, Interesting

      Solaris can use a swap partition or a swap file on disk. You can even add more swap space while Solaris is running using mkswap. Had to do that a few times...running Solaris does not mean that your developers know how to create scalable software...

      --
      Shutting down free speech with violence isn't fighting fascism. It IS fascism!
    3. Re:swap file vs. paging file by tijnbraun · · Score: 4, Informative

      As far as I know it doesn't...

      Here is some more info about paging and swapping under unix

      AFAIK a page is an group of memory addresses that are being changed/addressed at the same time.

      But I could be mistaken

    4. Re:swap file vs. paging file by aaronl · · Score: 1

      They're the same for the paging file. Linux usually uses a partition for swap memory, though. The rationale is that it won't get fragmented and it doesn't need to deal with the VFS subsystem, so it's a little faster.

    5. Re:swap file vs. paging file by Anonymous Coward · · Score: 0

      uhh, newsflash dumbass...this is unix, everything is a file..even partitions. mkswap doesnt have to tell the difference.

      you can swapon and swapoff dynamically and even set swapfile priority in linux, you can even set teo swap files the same priority and get the work effectively striped between them.

      Also, check out swapd.

    6. Re:swap file vs. paging file by TheFlyingGoat · · Score: 3, Insightful

      I'm not sure if Linux has a paging file, but I fail to see why the linux swapping can't be done preemptively as well. If a program loses focus, swap the memory used by it, but retain the active copy in RAM. If another program needs the RAM, release it. If the program comes back into focus, clear the swap copy. Seems like it would give the best of both worlds.

      Article Text:
      We have all been using the terms swapfile and paging file interchangeably. Even Microsoft invariably refers to the paging file as the swapfile and vice versa. However, the swapfile and paging file are two different entities. Although both are used to create virtual memory, there are subtle differences between the two.

      The main difference lies in their names. Swapfiles operate by swapping entire processes from system memory into the swapfile. This immediately frees up memory for other applications to use.

      In contrast, paging files function by moving "pages" of a program from system memory into the paging file. These pages are 4KB in size. The entire program does not get swapped wholesale into the paging file.

      While swapping occurs when there is heavy demand on the system memory, paging can occur preemptively. This means that the operating system can page out parts of a program when it is minimized or left idle for some time. The memory used by the paged-out portions are not immediately released for use by other applications. Instead, they are kept on standby.

      If the paged-out application is reactivated, it can instantly access the paged-out parts (which are still stored in system memory). But if another application requests for the memory space, then the system memory held by the paged-out data is released for its use. As you can see, this is really quite different from the way a swapfile works.

      --
      You have enemies? Good. That means you've stood up for something, sometime in your life. --Winston Churchill
    7. Re:swap file vs. paging file by 0xABADC0DA · · Score: 1

      In Linux you can also create a normal file and then attack it to a loopback device and they swap on that:

      dd if=/dev/zero of=/tmp/moreswap count=1000 bs=1024
      losetup /dev/loop0 /tmp/moreswap
      mkswap /dev/loop0
      swapon /dev/loop0

      then swapoff, losetup -d /dev/loop0 and delete when done.

    8. Re:swap file vs. paging file by thecue · · Score: 1

      According to the article, the paging file removes pages of memory (4K) and does so constantly, freeing the actual memory immediately when it's needed (since it already paged to disk.) A swap file swaps entire applications out of memory and to a swap file/partition as more memory is needed.

    9. Re:swap file vs. paging file by Anonymous Coward · · Score: 0

      Anybody here use Linux?

    10. Re:swap file vs. paging file by Anonymous Coward · · Score: 0

      I believe Linux does not have what they refer to as a swap file. It does not swap out entire processes at a time like that. Rather it swaps out pages at a time like the page file described in that text. Your first paragraph does not make sense because Linux won't ever drop those pages unless it needed to. Why would you page out a process if you had room for it?

      Michael

    11. Re:swap file vs. paging file by shamilton · · Score: 1

      Because disk cache is more useful than a huge proces which has been idle for a long time.

      --
      "[A] high IQ is like a Jeep; you will still get stuck, just farther from help!" --Just d' FAQs, c.g.a
    12. Re:swap file vs. paging file by Alioth · · Score: 5, Informative

      Well, since you've had four incorrect and or unhelpful responses so far, let me shed some light:

      Linux only has a paging file (it's still called swap space though). This can either be a hard drive partition, or a regular file.

      To make it as a regular file:

      dd if=/dev/zero of=some_file bs=1M count=however_big_you_need_it_in_megs

      Then:
      mkswap some_file

      Then:
      swapon some_file

      You don't need to reboot, and you can add/remove these files at will using swapon/swapoff and the normal filesystem tools.

      The 'swappiness' of Linux can also be tuned: since kernel 2.6.0 there has been a proc file /proc/sys/vm/swappiness. This can be set on a value from 0 (try to never swap) to 100 (agressively write out pages to disk). By default, it is set to 60. To change the swappiness, say, to 40:

      echo 40 >/proc/sys/vm/swappiness

      Most 2.6-based distros have some GUI tool that can tweak parameters like this (Fedora certainly does).

    13. Re:swap file vs. paging file by DNS-and-BIND · · Score: 1

      It's better to use a swap partition, as swap partitions use tmpfs. Swap files on disk use ufs, which is not preferred due to additional overhead. However, when your gig of ram and all your swap partitions are full, you do what you have to to keep the system running.

      --
      Shutting down free speech with violence isn't fighting fascism. It IS fascism!
    14. Re:swap file vs. paging file by Matthaeus · · Score: 2, Insightful

      I'm not sure if Linux has a paging file, but I fail to see why the linux swapping can't be done preemptively as well. If a program loses focus, swap the memory used by it, but retain the active copy in RAM. If another program needs the RAM, release it. If the program comes back into focus, clear the swap copy. Seems like it would give the best of both worlds.

      If you're talking about losing focus in the window manager sense, it's not possible under linux without some very specific hacks:

      If the window manager ran in kernel space, then it would be possible. Running a window manager in kernel space also would provide a very handy way to bork your whole system with a poorly written gtk app. It would also break the security model of linux.

      Now, maybe if kernel hooks were added in so that parent processes could tag their children for paging, that might go somewhere. I don't know all that much about kernel internals yet, though.

      If you're talking about losing focus in the sense of going to sleep, there's no reason why it can' happen because init handles all that anyway.

    15. Re:swap file vs. paging file by Anonymous Coward · · Score: 0

      The main difference lies in their names. Swapfiles operate by swapping entire processes from system memory into the swapfile. This immediately frees up memory for other applications to use.

      In contrast, paging files function by moving "pages" of a program from system memory into the paging file. These pages are 4KB in size. The entire program does not get swapped wholesale into the paging file.


      This is just stupidly pedantic. No modern operating system swaps out entire processes anymore, and there are certainly not two different types of files to choose from. All swapfiles (or partitions) are paging files. Swapfile just rolls off the tongue better.

    16. Re:swap file vs. paging file by ArsonSmith · · Score: 2, Informative

      same with Linux. You used to prefer using a swap partition to a file due to the file system code slowing down your swap operations if it were on a file but about 18+ months ago I remember seeing a patch go into the kernel that made this not true any more.

      --
      Paying taxes to buy civilization is like paying a hooker to buy love.
    17. Re:swap file vs. paging file by Malc · · Score: 1

      Which explains what I've noticed since my NT4 days: Windows always seems to "swap" more aggressively. Even a lightly loaded system seems to have pages put out to disk, whereas my Linux systems have never seemed to use swap space until all available memory is exhausted. Windows seems to try to keep a large part of memory free. Of course system cache settings (controlled by NetBIOS properties on our Win2K servers!) can make a difference here.

    18. Re:swap file vs. paging file by Hard_Code · · Score: 1
      His talk of swapping vs. paging sounds like rubbish to me. Why would you make a distinction. Once you have paging you have "swapping" since "swapping" is just (in his terminology) paging the entire process.

      The memory used by the paged-out portions are not immediately released for use by other applications. Instead, they are kept on standby.

      If the paged-out application is reactivated, it can instantly access the paged-out parts (which are still stored in system memory). But if another application requests for the memory space, then the system memory held by the paged-out data is released for its use. As you can see, this is really quite different from the way a swapfile works.
      Hurhhwh? This seems to mix up the concepts of /address space/ and actual memory content. In all cases (swapping or paging), as far as I know, the process is ALWAYS given a consistent view of memory regardless of whether the memory content is materialized in main memory or persisted onto disk. What does he mean by "standby" if not "stored on disk". Is there some other sort of "standby" area? wtf? If another process asks for access to that memory RANGE, I sure as fuck hope it doesn't mean that the memory is "released for its use". Wtf does that mean? Isn't that the whole idea of memory protection? You can't just request to use other processes's memory without going through a shared mem or RPC api.

      this article was useless, just use wikipedia, it's explained a lot better.

      Wikipedia: Virtual Memory
      --

      It's 10 PM. Do you know if you're un-American?
    19. Re:swap file vs. paging file by TheFlyingGoat · · Score: 1

      That makes complete sense. I was referring to losing focus in the window manager, but I didn't realize it would require kernel hooks that don't already exist. Seems like kernel hooks denoting window focus would be helpful in other ways, like giving I/O and CPU priority to processes in focus while nearly suspending those in the background. Obviously that's not always desirable, so perhaps a focus hook and an "allow lower priority" hook combined? Kind of an automatic nice.

      I'm pretty clueless when it comes to kernel hacking, though, so that might not be anywhere close to useful or possible. :)

      --
      You have enemies? Good. That means you've stood up for something, sometime in your life. --Winston Churchill
    20. Re:swap file vs. paging file by Anonymous Coward · · Score: 0

      > If the window manager ran in kernel space, then it would be possible.

      The WM doesn't need to run in kernel space for this to happen, it just needs to communicate to the kernel to advise it. Of course, since a microkernel killed Linus's dog, we don't really have a clean and well-defined way of communicating with kernel processes like that.

      At a per-app level, this can probably be done with memadvise (or whatever it is on Linux) when the app gets the WM hint about the minimization. On Windows, Firefox used to yield all its RAM on minimization by default (which actually yields it back to the OS on Windows, unlike unix and sbrk). That might have been a good strategy for the memory cache, but from a user angle, it's intensely annoying behavior that gives FF the impression of being extremely slow whenever you restore the window.

    21. Re:swap file vs. paging file by TiggertheMad · · Score: 4, Funny

      To change the swappiness, say, to 40:

      You sir, are the coolerist. It sweets up the language to add colorfulistic verbing and adverbly structures like the one you buildily made aboverness.

      Rockeringly on, dude!

      --

      HA! I just wasted some of your bandwidth with a frivolous sig!
    22. Re:swap file vs. paging file by Anonymous Coward · · Score: 0
      What is the "window focus" of which you speak?

      My applications often run on one machine with the display going to the X-server running on the desktop. Dozens of other people are running applications on that same machine with their windows showing up on the X-servers running on their desktops?

      Do you mean the X-server should tell the application to tell the OS when the focus was gained or lost?

    23. Re:swap file vs. paging file by TheFlyingGoat · · Score: 1

      Yes. Like I said, I'm generally unfamiliar with how the Linux kernel works, but why not do this? If you have multiple users with their own X sessions going on, have the kernel give the active window (more than likely the one on top) on each user's session priority over all the windows that are hidden, minimized, or not being actively used. Wouldn't the net result be that each user would notice an increase in application response without sacrificing anything? In addition to I/O, CPU, and RAM priority, you can also prioritize the pagefiles so an active application is less likely to be swapped than an inactive one.

      --
      You have enemies? Good. That means you've stood up for something, sometime in your life. --Winston Churchill
    24. Re:swap file vs. paging file by gnuman99 · · Score: 2, Interesting
      I'm not sure if Linux has a paging file, but I fail to see why the linux swapping can't be done preemptively as well. If a program loses focus, swap the memory used by it, but retain the active copy in RAM.

      I don't think you have any idea how a Linux VM works. There is no "focus" because there is no windows. There are processes and how they are run depends on the scheduler.

      Memory management of Windows sucks. There is no question about it. If I don't have a gigabyte page file, I run out of memory (according to Windows) if I play GTA 3 for a while. The process uses only about 300M, but windows pops up crap about running out of memory. Memory manager says windows is using 500M for caching. WTF?

      This is not a troll, but Linux's memory management is vastly superior. Even if I run programs that can use up 80% of RAM and cause cache to shrink, the swap is still not extensively used.

    25. Re:swap file vs. paging file by iabervon · · Score: 1

      The "paging file" is the name that Microsoft uses for actual swap, because they had done a broken implementation of swap in pre-95 Windows and needed a different name to distinguish them.

    26. Re:swap file vs. paging file by jonored · · Score: 1

      This actually really doesn't need much modification, I do believe the API calls are there for setting nice levels like this - it just requires people to be using a window manager that supports it. In fact, just having checked, this would not be difficult at all for a window manager to implement given GNU C priority handling.

      it's just that the people who write window managers haven't, and it's rather not the kernel's job past handling the scheduling.

      Also, from this article's description of "Swap" and "paging", linux uses paging. I've seen the code for it. It even lets you define a particular file to occupy a particular region in memory via paging.

    27. Re:swap file vs. paging file by InfiniteWisdom · · Score: 0

      The kernel developers switched to calling it /proc/sys/vm/swappiness after the originial proposal: /proc_the_filesystem_that_historically_had_info_ab out_processes_but_under_linux_has_much_more/system _parameters/virtual_memory_manager_parameters/aggr essiveness_with_which_the_vm_should_swap_out_pages

      proved rather unpopular

    28. Re:swap file vs. paging file by Anonymous Coward · · Score: 0

      What the fuck are you talking about dickwad? That is what the fucking setting is called in the sysctl tree. All fields involve vernacular and jargon at their lowest levels. Even the OED doesn't deal with every single technical need with a concise word. Deal with it shitface.

      swappiness is about as unobscure as you can get for a single word. Even a basic description of what swappiness adjust would be way too long for a setting label and not much more helpful.

    29. Re:swap file vs. paging file by Anonymous Coward · · Score: 0

      Ya' know, I'm quite used to ignorant responses made without reading the article. But, ignorant responses made with reading the fucking post (if nothing else) really shows utter stupidity. The origninal poster even mentioned the name of the file is *swappiness' fer' christ's sake.

    30. Re:swap file vs. paging file by Anonymous Coward · · Score: 0
      The main difference lies in their names. Swapfiles operate by swapping entire processes from system memory into the swapfile. This immediately frees up memory for other applications to use.

      In contrast, paging files function by moving "pages" of a program from system memory into the paging file. These pages are 4KB in size. The entire program does not get swapped wholesale into the paging file. - krafty

      Maybe that's true in the Microsoft world, but not beyond that. The latter defintion is what any sane virtual memory implementation does (if it does any swapping at all) and this behavior has always been referred to as "swapping". Perhaps some of MS's broken OSs did some brain-dead swap-the-whole-app thing, but that doesn't change the definition of a "swap file" is.
    31. Re:swap file vs. paging file by Mr+Z · · Score: 1

      You don't need the loopback mount. You can do mkswap /tmp/moreswap and swapon /tmp/moreswap. Note, that assumes /tmp is a filesystem like ext2 or ext3, not tmpfs.

    32. Re:swap file vs. paging file by Nutria · · Score: 1

      The rationale is that it won't get fragmented

      dd on a "fresh" partition will make contiguous files that linux 2.6 likes.

      --
      "I don't know, therefore Aliens" Wafflebox1
    33. Re:swap file vs. paging file by Anonymous Coward · · Score: 0

      Those programs that are in the background are most likely just sitting there waiting for input. They arent sitting in the run queue, using the CPU for nothing, the scheduler knows that they are waiting for something, and has the process suspended until that something happens.

      Then again, a program might be in the background doing something computationally intensive, in which case the scheduler will realize on its own that it is a cpu bound process, and schedule it accordingly.

    34. Re:swap file vs. paging file by Anonymous Coward · · Score: 0

      This concept has been part of Linux for a very long time - it's called the swap cache. Basically dirty pages get written to the swap file even if there's still free memory; if the kernel runs out of free pages, it just discards a clean swap cache page (already written out) or frees a page cache page. This is a common practice in all modern OSs, not just Linux and Windows.

      Others have commented on how your scheme of foreground and background windows makes no sense under Linux given how the X server is separate from the kernel. However, in 2.6 kernels, there are syscalls (i.e. setpriority(), etc) to let the window manager give the currently focused window "interactive" priority status).

    35. Re:swap file vs. paging file by Alioth · · Score: 2, Insightful

      Umm, the file is called /proc/sys/vm/swappiness; I didn't make it up.

    36. Re:swap file vs. paging file by Luyseyal · · Score: 1
      Even better... use said swap file on its own ext2 fs. Use e2label to give it a name and if one of your drives craps out or rebooting into a new kernel changes the drive names (gawd I hate that), it'll still work. I have this in my fstab on one of the computers at work.

      #### swap is a file on ext2 so we can use e2label(8) to ensure that
      #### regardless of SCSI mount order, it will work. 2.4+ kernels write swap
      #### files just as fast as partitions b/c they bypass the fs layer.
      #### Creation commands:
      #### mkfs.ext2 -L "/swap" -b 1024 -i 8192 -m 0 -N 1 -R stride=8 /dev/sd...
      #### dd if=/dev/zero of=/swap/swapfile bs=1024 count=2028319

      -l

      --
      Help cure AIDS, cancer, and more. Donate your unused computer time to worldcommunitygrid.org. Join Team Slashdot!
    37. Re:swap file vs. paging file by Tim+C · · Score: 1

      What, have people never heard of tab completion?

    38. Re:swap file vs. paging file by bheading · · Score: 3, Informative

      I am not sure about the article's validity when it claims that swapfiles are distinct from paging files. There are other claims, such as the implication that Microsoft invented the term "virtual memory", that are also rather misleading.

      It's not a matter of swapping "pre-emptively". The whole business is invisible to the user space and the locking is essentially done by the kernel. The CPU hardware (ie the MMU) basically watches every single memory access when the CPU is in the appropriate mode (ie protected mode on an x86). It has a list of mappings of address spaces in it's own small internal page table.

      What happens is that every time you access a region of virtual memory (for example anywhere in user space), the MMU looks up the address in it's own list of pages. If the associated region is not mapped by the MMU, a page fault occurs which is essentially an interrupt which gets trapped by the operating system. The operating system checks to see if it has a mapping for that address.

      If it does, it checks to see if that mapping is either resident, or a block which has been paged out to disk (ie to the paging file). If it has been page out to disk, another block of memory gets paged out and the requested region is paged back in.

      The MMU's cache of pages gets cleared on most CPUs whenever there is a process context switch (but not a thread context switch), this is one of the big reasons why threads are less expensive than processes because the MMU's cache of pages has to be repopulated.

      The algorithm used to select which region of memory gets paged out is where the real trickery is. Obviously if you are low on memory and switch repeatedly between two busy proesses, you will be constantly thrashing those pages on and off the disk.

    39. Re:swap file vs. paging file by aaronl · · Score: 1

      Any kernel revision. You've been able to enable swap on files instead of partitions for a very long time. I used to do that on my 486 when I was running out of memory+swap. Temporarily "dd" a file and start swapping to it.

    40. Re:swap file vs. paging file by multipartmixed · · Score: 1

      > If you're talking about losing focus in the window manager sense,
      > it's not possible under linux without some very specific hacks:

      I can't help but wonder if something *extremely* similar to this couldn't be accomplished by allocating X memory via mmap() and letting the kernel know what's going on via madvise(). This wouldn't actually be an enormous amount of work -- a bit of dinking at the dynamic linker (LD_PRELOAD?) and some mechanism to do the madvise call (signal from the window manager?)

      The original poster is essentially describing tagging the page dirty bits, which I'm guessing is probably what happens with MADV_DONTNEED.

      Of course, these suggestions come from a guy with a Solaris background, I don't know anything about Linux system internals.

      --

      Do daemons dream of electric sleep()?
    41. Re:swap file vs. paging file by plague3106 · · Score: 1

      Because thats one of the most irritating thing about windows; just b/c i minimize a window for a few minutes it gets swapped out? Then when i restore it i have to wait until the damn thing is swapped back in. On a laptop with a 4k RPM drive, this really drives down performance.

    42. Re:swap file vs. paging file by MooseGuy529 · · Score: 1
      What does he mean by "standby" if not "stored on disk".

      It means that the block is on "standby" to be overwritten. If it weren't swapped, reallocating the physical RAM block would require saving the block to disk, which is slow. However, putting it on "standby" by saving it to disk when the OS has free time means it is quick to access it if it isn't reallocated, and quick to overwrite it if it is reallocated.

      If another process asks for access to that memory RANGE

      He said "space", not "range". It means if another program needs memory space, it can immediately be assigned the block, because it has already been saved to disk.

      ...I sure as fuck hope it doesn't mean that the memory is "released for its use".

      Sorry, it does. But it's already on disk, so it doesn't matter. Linux, in fact, does the same thing. The kernel is clever about realizing when it would be more efficient to swap a rarely-used page of memory out and use it as disk cache instead. Oh, and the curses have a nice amplifying effect on your confusion.

      You can't just request to use other processes's [sic] memory without going through a shared mem or RPC api.

      To quote you, "isn't that the whole idea of memory protection?" Indeed, you can't use another process's virtual memory, but you can certainly use its physical memory. That's part of virtual memory--physical RAM can be shared between processes by swapping/paging it in and out when needed.

      --

      Tired of free iPod sigs? Subscribe to my blacklist

    43. Re:swap file vs. paging file by Nutria · · Score: 1

      Any kernel revision.

      Correct, but it's my understanding that swap files were inefficient before 2.6.

      --
      "I don't know, therefore Aliens" Wafflebox1
    44. Re:swap file vs. paging file by Anonymous Coward · · Score: 0

      Aren't you supposed to do "sync" between "mkswap" and "swapon"?

    45. Re:swap file vs. paging file by cakoose · · Score: 1
      It's not a matter of swapping "pre-emptively". The whole business is invisible to the user space and the locking is essentially done by the kernel.

      I think the guy doesn't know what "preemptively" means. He thinks it means "proactively" or "predictively". (I have a feeling this misunderstanding was partly due to different interpretations of the US' "preemptive" strike.)

      What he was trying to say here is that the OS might start copying pages to disk even before it is forced to. Let's say RAM is full. It can either wait until it is forced to page something out, or it can proactively copy a bunch of RAM pages to disk (but keep the RAM copy as well). If a request comes in for a new page of RAM, you've already swapped some stuff to disk and so you can just clear the RAM version and give it to the requestor.

      The disadvantage is that you might be unnecessarily copying things to disk, but if you can do it when the system is idle, you don't really lose anything.

    46. Re:swap file vs. paging file by pkphilip · · Score: 2, Informative

      Yes, Linux can make use of a paging file. You can create a large file and use mkfs to create a swap partition on the file.

      You can then mount this file as a swap partition. You can make a fstab entry to mount this file at boot up as a swap partition.

      Please see this URL:
      http://enterprise.linux.com/article.pl?sid=05/03/0 2/2250257&tid=129&tid=42/

    47. Re:swap file vs. paging file by bheading · · Score: 1

      Thanks for that. I confess to not knowing much about the low-level implementations of these algorithms in the major OSs but I suspect what you say is true, the OS probably does page out unfrequently used stuff when it sees that memory is running low.

    48. Re:swap file vs. paging file by Eric604 · · Score: 1

      That's not what he said. He's talking about paging out while still having the page in memory until memory gets realy low. This has the advantage that paging out to free up memory takes less time.

    49. Re:swap file vs. paging file by Donny+Smith · · Score: 1

      > Yes, Linux can make use of a paging file.

      There's no functional difference between this "paging file" and the usual swap partition except that yours is file based while the latter if partition-based.

      >You can make a fstab entry to mount this file at boot up as a swap partition.

      How is this different from a swap partition? (Or, in other words, why bother?)

    50. Re:swap file vs. paging file by plague3106 · · Score: 1

      Except what windows is doing does seem to match that..it does indeed seemt o remove the whole app (even if it doesn't need the mem) and then when I come back to it, i have to wait two minutes.

    51. Re:swap file vs. paging file by Eric604 · · Score: 1

      Yes that's correct and most certainly annoying. Instead of fixing problems like that they're busy improving the GUI, I don't understand that. Before XP I never heard anyone complaining "this looks awfull", only "this is **** slow".

    52. Re:swap file vs. paging file by Anonymous Coward · · Score: 0

      This is just a different choice of allocation policy. Windows (NT-based), like UNIX SVR4, uses a strict allocation policy, meaning when an application allocates memory, the system guarantees there is either space in RAM or pagefile/swap to back it. That means that if the allocation succeeds, the system has guaranteed that the application will be able to use the memory.

      Linux followed the BSD model of using a lazy allocation policy. That means the system doesn't guarantee that memory allocated by an application will actually be available when/if the application tries to access it. If there isn't enough RAM or swap free when an application tries to access memory it's allocated, the system will kill a process (generally the one using the most memory/swap) to free up memory/swap. This might be the one trying to access memory when the system runs out, or it might be a completely different one.

      A strict allocation policy might add a very tiny bit of overhead over a lazy one, but in general it's just a matter of where the system designers want the failure point. On Windows and SVR4, it's the memory allocation call. On BSD and Linux, it's when the memory is touched.

      On the whole, I think the strict policy leads to a more robust system (since the kernel doesn't go round killing processes when others need more memory), but it also adds complexity to applications, since memory allocation failures become a real possibility. Having used both systems (Windows NT and SVR4 on one hand, and BSD and Linux on the other), I think the Windows/SVR4 scheme is better overall, but it's not a clear cut case of one being 'superior'. Like a lot of things, there are trade-offs, etc., and application design can make a big difference.

    53. Re:swap file vs. paging file by Anonymous Coward · · Score: 0

      It's not really a 'Microsoft thing' at all. Swapping was common on a variety of systems in the old days, especially on hardware that lacked paged memory management. On UNIX, paging was added by BSD in the early 1980s (VAX hardware, which supported paging, was much more advanced than the PC hardware of the time, which didn't), but the 'swap' terminology was still (somewhat inaccurately) used on BSD/UNIX (and was carried over to clones like Linux).

      DOS/Windows also used swapping initially, so, like UNIX, even when it switched to paging in Windows 95, there was still a tendency to call it 'swap'. (E.g. the Windows 95 paging file was called 'WIN386.SWP'.)

      Windows NT, which is what Windows 2000, XP, etc. are derived from, was designed to use paging from the start, and never implemented swapping at all, hence the use of 'paging' instead of 'swap' in the NT terminology used by current versions of Windows (e.g. the paging file is called 'pagefile.sys').

  5. well.. by Anonymous Coward · · Score: 4, Funny

    They might want to adjust the paging file on their web server a bit...

    1. Re:well.. by Anonymous Coward · · Score: 0

      Or, if the paging file is the reason their web server is DOA, then maybe instead they should consider switching to a REAL OS... like... MINIX. :)

  6. Slashdotted already? by cmburns69 · · Score: 4, Funny

    Given the speed of the slashdotting, I'd say he needs to add more ram to his box, and stop relying on the paging file for speed...

    --
    Online Starcraft RPG? At
    Dietary fiber is like asynchronous IO-- Non-blocking!
    1. Re:Slashdotted already? by Mard · · Score: 1

      Be sure to use a mirror and not the primary site :)

      --
      DRM = Digitally Restricted Media. This is a viral sig, pass it on.
    2. Re:Slashdotted already? by Anonymous Coward · · Score: 0

      I think I need more ram too, but I'm not sure where to get it. Will this email offering to enlarge my pen fifteen help? Apparently it's "cheap" and "guaranteed to double my size."

  7. Re:Rojak Pot? by demonbug · · Score: 0

    I don't know, but I think we're all smoking it now.

  8. Let Windows manage the pagefile. by Anonymous Coward · · Score: 3, Informative

    People are going to argue this a lot, because geeks like to fiddle with things. Clearly, the thing isn't optimized until I have changed the settings !!oneoneone!!!

    But the best way to optimize the paging file in Win2000 (and later) is to leave it alone. Windows will manage the paging system just fine on its own.

    1. Re:Let Windows manage the pagefile. by MSFanBoi · · Score: 2, Insightful

      Not really true. On application servers, it's best to set a static pagefile. Heck on SQL boxes its sometimes best to not even have a pagefile... Letting Windows manage your pagefile decreases performance, as it leaves something else for the CPU to do and something else for the disks to do. Put a page file on another disk (or other partition if you don't have another disk). Make the pagefile 1.5x the amount of RAM you have (up to 4 GB anyways). I've found this works well and gives the best performance for most systems (with the exception of SQL and ORacle servers)

    2. Re:Let Windows manage the pagefile. by Anonymous Coward · · Score: 0

      use linux, you muppets.

      ...................

    3. Re:Let Windows manage the pagefile. by oliverthered · · Score: 1

      I support the best way to manage the regestry is to let windows keep allocating more space for it as it becomes more bloated.

      And the best way to deal with viruses is let outlook and windows deal with them, spaming them out to thousands of other people.

      Windows (and Linux) come setup for the average no-body, with most Linux install many deamons are turned off of hardened on startup, the default is failsafe for you granny and that usually not the best option.

      --
      thank God the internet isn't a human right.
    4. Re:Let Windows manage the pagefile. by rmallico · · Score: 1

      agreed... letting windows manage its pagefile is not the best bet... heck, by default it places the file on hte system partition... if you have a faster spindle move the file there... also, setting to a static size on one contiguos place on the partition is like numero uno on any server setup list...

      --
      sig goes here!
    5. Re:Let Windows manage the pagefile. by Malc · · Score: 1

      Why not? It's not like SQL Server will allow itself to be paged. It dynamically adjusts the amount of memory it's using based on current system conditions and demands on memory by other applications.

    6. Re:Let Windows manage the pagefile. by Anonymous Coward · · Score: 0

      While I disagree with some of your strategy, I do agree that on servers, it's sometimes better to take pagefile management into your own hands.

      But, y'know, that's advice for professional server admins. Not for Joe Desktopuser.

      (What do I disagree with? 1.5x rule of thumb, which is from the NT days. If you wanna optimize, break out perfmon and optimize properly! Moving to a less-utilized drive is good - but again use perfmon and find the drive that's actually less utilized. In many cases that really is the system drive ... think about it. Oh and BTW, CPU time spent managing pagefile size is so small as to be untrack-able. It's lost in the noise of any reasonably modern system.)

    7. Re:Let Windows manage the pagefile. by Anonymous Coward · · Score: 0

      Troll/FUD.

      Because clearly pagefile utilization is exactly the same thing as malware protection or service/daemon startup preferences. Right?

    8. Re:Let Windows manage the pagefile. by Lehk228 · · Score: 1

      i don't know if there is anything on the market to do this, but i always figured having a super fast "system image" hard disk which is optomized to load lots of data into memory as quickly as possible for booting the system and a "page/swap" optomized drive which is significantly smaller in capacity than a normal drive, but is optomized for quick random access (lots of smaller platters?) would be a good way to make faster systems which are faster in the ways that people notice, people notice when the system stops and grinds (even with lots of ram, having 5 gigs of quck swap would be nice) and they notice when it takes "forever" to boot up.

      --
      Snowden and Manning are heroes.
    9. Re:Let Windows manage the pagefile. by rmallico · · Score: 1

      There used to be a few vendors with a ram page/swap file program... i remember it for NT4 and maybe even Win2000... those of you who dabbled in DOS remember the ramdisk program where you could take 1 or 2mb (ooooh) and map it to a drive letter in DOS... i remember doing this for a few apps just to see what it would do...

      --
      sig goes here!
    10. Re:Let Windows manage the pagefile. by zoombat · · Score: 1

      Back in the old days when I ran a Mac with OS 7.5.1 I used to create a RAM Disk -- the opposite of virtual memory; it uses RAM and treats it like a hard disk. Then I'd put a minimal OS in the RAM disk and boot from it. Wow, those were some FAST boot times! Of course if you power off your computer instead of just rebooting it, you lose what's in the RAM disk...

    11. Re:Let Windows manage the pagefile. by Anonymous Coward · · Score: 0

      You sir, are a broken tool.

      An unfragmented, statically configured, and properly sized page file on it's own physical drive and controller will make a huge difference in the speed of paging operations in pretty much any Windows operating system.

      Kindly STFU about subjects you obviously have no clue about.

      Thank You

    12. Re:Let Windows manage the pagefile. by Anonymous Coward · · Score: 0

      Not true, windows will resize the page file as it needs, growing it into a fragmented drive. A better alternative it put it at a set amount, 1.5 to 2X the amount of ram you have should do.

      Windows could manage the page file nicely if it automatically defragged your hard drive too. :-)

    13. Re:Let Windows manage the pagefile. by oliverthered · · Score: 1

      I don't know what world you living in but two things don't have to be exactly the same to be comparable.

      I was saying Out of the box setups are seldom the best, and gave numerous examples.

      The page file is no different,
      1: if you have an app go AWOL windows will end up giving you a huge pagefile scattered all over the disk, and keep telling you 'you are running out of virtual memory'

      2: I would always recommend people to allocate a fixed page file size, and try to put it on the fastest portion of the HDD if possible.

      3: My windows page file size is zero, I prefer to run out of memory and close down some apps than have my hdd kick in for paging and have the system grind to a halt while I close some applications to free up more memory.

      4: It would be even better still if firefox dropped the layout from tabs that I haven't looked at for a good 12 hours.

      --
      thank God the internet isn't a human right.
    14. Re:Let Windows manage the pagefile. by value_added · · Score: 2, Informative
      But the best way to optimize the paging file in Win2000 (and later) is to leave it alone.

      Sorry, but that's not good advice. There are real issues with fragmentation on NTFS file systems. You can create an empty NTFS partition copy a few files to it, and you can be sure that if the files are larger than 4KB, those files will be fragmented. And if they are of substantial size, the files can be split into dozens of pieces. Moreoever, Windows provide no native ability to defragment metadata on any partition.

      With respect to the swap file, Windows provides no native ability to defragment it. A default installation with default settings will have your swap file spread like diarrhea across the sytem partition. What is good advice is either to set the swap to a fixed min/fixed max, and/or invest in a defragment utitilty to replace the stripped down version of Diskkeeper that comes bundled as the default defragmenter. (Note that, when possible, replacing most most anything on any Windows box with better alternatives is *always* a good idea so leaving most anything to Windows to manage is generally a bad idea.)

      Among the commerical alternatives available, Diskeeper and PerfectDisk are excellent choices, and provide the ability to defragment files, metadata and the swap file.

      Also note that you will get noticeable performance boost if you mvoe the swap file is located on a separate drive (different IDE channel).

    15. Re:Let Windows manage the pagefile. by Anonymous Coward · · Score: 0

      Variable size pagefile will cause you to fragment your drive at maximum speed.

    16. Re:Let Windows manage the pagefile. by Anonymous Coward · · Score: 0

      Perfectdisk is good, O&O is very good too. Diskeeper is the least common denonimator. less features, doesn't do good of a job... A bit better than it's little brother that ships with windows, but Diskeeper/O&O is FAR better.

    17. Re:Let Windows manage the pagefile. by Daltorak · · Score: 1

      Excuse me, but what makes you qualified to talk on this subject?

      First, YOU CAN'T EVEN GET THE NAME OF THE FILE CORRECT. It's NOT called a "swap" file -- it's called a "paging" file. These are two different things... yes, it used to be called a swapfile in the old, old days of Windows, but it's not any more. This fundamental oversight alone invalidates every other statement you make about Windows's virtual memory subsystem.

      Second, the PAGING FILE is a single, contiguous file on a fresh OS install. Try it sometime, you'll see that I'm right. The paging file is created to a default size of (physical memory * 1.5), and will remain at that size, and at its original unfragmented location on the HDD, until you attempt to use more than 250% of your machine's physical memory. You will be notified by Windows when this happens -- your machine will also slow to a crawl given how far you are overextending it.

      Third, a fixed min/max PAGING FILE size opens you up to a very clear and obvious problem (well, at least to people who think about it): If you fill up your physical memory and pagefile, Windows cannot make use of your HDD to provide additional memory for your applications. End result? Memory allocation requests start failing! How could this possibly be a good thing?

      Fourth, the ONLY time that the PAGING FILE resizes, is if additional memory is required. It never, ever happens at any other time. Ever.

      Quite simply, "value added", you do NOT understand how Windows manages memory. I realise it's a Slashdot mantra to propogate inaccurate and incorrect information about Windows, but you should be ashamed of yourself for doing so. There is some good reading out there on the subject, like Microsoft Windows Internals, Fourth Edition, which explains how the underlying Windows kernel technologies -- including virtual memory -- actually work.

    18. Re:Let Windows manage the pagefile. by Anonymous Coward · · Score: 0

      Are you on crack? Half of that wasn't even true in Windows 95, Much less NT/2K/XP.

  9. FreeRAM by yuriismaster · · Score: 5, Informative

    http://www.bysoft.com/freeram.asp

    A free application that you can use to 'pre-page' out pages right before loading up your application. What it does is hog as much RAM as much as it can, forcing the OS to page out any unnessecary applications.

    I've seen the standard Explorer + lsass + cwrss + all the svchosts memory footprint go from 80-ish megs to 20. Running this before your game will allow quick load-times and quicker performance.

    1. Re:FreeRAM by Anonymous Coward · · Score: 0

      use linux, you muppets.

      ........

    2. Re:FreeRAM by jandrese · · Score: 1

      Doesn't windows already do this? It drives me nuts how it loves to page out stuff that it thinks I'm not using, and then forget about it. There's nothing worse than minimizing Mozilla, firing up putty for awhile, then wanting to go back to Mozilla and have windows seemingly page the whole application back in (verrry slowly).

      I finally fixed it by just telling windows to make a 2MB pagefile and be done with it. My system is far far faster now that windows isn't constantly pounding the disk (and my disk gets to spin down, which is nice in a laptop). The only downside is the annoying "your system is almost out of swap!" message when you start it up.

      --

      I read the internet for the articles.
    3. Re:FreeRAM by ArsonSmith · · Score: 1

      I wrote a perl script to do the same thing. basicly just

      #!/bin/perl

      while (1) {
      $var = "$var-some amount of random data-";
      }

      It would run until it sucked up all the memory and then die. I eventually modded it so I could run it with an argument like 500M and it would just grow to that size and die.

      --
      Paying taxes to buy civilization is like paying a hooker to buy love.
    4. Re:FreeRAM by Anonymous Coward · · Score: 0

      Doesn't windows already do this? It drives me nuts how it loves to page out stuff that it thinks I'm not using, and then forget about it. There's nothing worse than minimizing Mozilla, firing up putty for awhile, then wanting to go back to Mozilla and have windows seemingly page the whole application back in (verrry slowly).

      I don't know about Mozilla, but Firefox does this specifically, and on purpose. The OS does preemptively swap out some of a process (which pages it chooses is somewhat mysterious), Firefox does it with pure overkill.

      At 2 megs, you may as well turn the pagefile off outright. It'll probably double the battery life of your laptop.

    5. Re:FreeRAM by finnhart · · Score: 4, Informative

      In the case of firefox, the application itself is responsible for getting out of RAM when minimized. I don't know what Mozilla you're running, but it may have the same behavior & fix.

      You can change the behavior by modifying the config.trim_on_minimize key (accessible via about:config). See http://windowssecrets.com/041202/) for more info on this.

      Makes a big difference - no more two second pauses when restoring firefox.

    6. Re:FreeRAM by priich · · Score: 1

      2 MB leaves room for minidumps, information needed for hibernate/sleep-mode and some other small stuff.

  10. Re:Mirror - Site already slow by iONiUM · · Score: 0

    Doesn't work.

  11. not overly blessed with RAM by Tenebrious1 · · Score: 4, Funny

    ... for people who are not overly blessed with RAM.

    You mean those who's PHBs said the "minimum" requirements were good enough.

    --
    -- If god wanted me to have a sig, he'd have given me a sense of humor.
    1. Re: not overly blessed with RAM by Black+Parrot · · Score: 1


      > > ... for people who are not overly blessed with RAM.

      > You mean those who's PHBs said the "minimum" requirements were good enough.

      Hey, if they're good enough for his wife, they're good enough for your workstation.

      --
      Sheesh, evil *and* a jerk. -- Jade
    2. Re:not overly blessed with RAM by Anonymous Coward · · Score: 0


      >You mean those who's PHBs said the "minimum"
      >requirements were good enough.

      If a requirement is stated as the minimum for a given application, and is insufficient for that application to operate, it is erroneous, and should be regarded as defective.

    3. Re:not overly blessed with RAM by Anonymous Coward · · Score: 0

      right.... but:

      1: the minimum requirements are probbally based on a very bare system with nothing in the background. (usually unrealistic)
      2: the definition of minium required ranges from "can just about run the app" to "can run the app hapilly at a decent speed" to "can run the app with no slowdowns whatsoever in almost all situations.

      working and working acceptablly fast are very different things!

  12. Slow news day? by Anonymous Coward · · Score: 0

    Did Slashdot really post a story on the Windows paging file during the site's busiest time period? I guess we should be thankful Zonk didn't post another dupe.

  13. Re:Best advise by Doc+Ruby · · Score: 1

    I dunno about Bill, but that tiny "Micro$oft" quip sure pisses off lots of MicroSlaves.

    --

    --
    make install -not war

  14. Another patent attempt by IvanD · · Score: 2, Funny

    and It's called a paging file, because if they call it swap they couldn't get the patent!

    Or maybe the will be figthing trying to convince the world that they came up with the idea of a swap space!

    1. Re:Another patent attempt by Anonymous Coward · · Score: 0

      use linux, you muppets.

  15. Re:Rojak Pot? by Anonymous Coward · · Score: 0

    Rojak Pot? is I believe what Scooby Doo said when he Found Kojak's stash. And he would have gotten away with it too if it' weren't for those damn kids.

  16. Re:Mirror - Site already slow by Myen · · Score: 0

    Unfortunately, it looks like Mirrordot completely cannot handle frames.

    Firefox shows no content (presumably because it displays Mirrordot's banner, and thinks that framesets are invalid in that context).

    Even if it did work, I doubt mirrordot would be mirroring the contents of the framesets - so it wouldn't actually help.

    A brief tests shows that CORAL has better luck.

  17. All I see are the MirrorDot ads... by Anonymous Coward · · Score: 0

    See Subject - there's no content on the MirrorDot page.

  18. Re:Best advise by Anonymous Coward · · Score: 0

    Wow. Three comments into it, and you're already playing the "Microsoft Sucks - Linux Rules" card.

    Must be annoying for you Micro$oft fanboys when people keep bring that up.

  19. Windows' memory mismanagement woes by Entropius · · Score: 2, Insightful

    It seems like Windows' treatment of virtual memory is inefficient. Why use a file for swap -- incurring ntfs overhead and fragmentation -- when you could use a swap partition (like Linux) without exposing the user to any additional complexity (which is the usual tradeoff for efficiency gains).

    I had to upgrade my laptop from the stock 512 to 1.25GB just because WinXP thrashed the paging file so much. Granted, I multitask like a demon, but it shouldn't take 30 seconds to swap Firefox back in.

    1. Re:Windows' memory mismanagement woes by alta · · Score: 2, Insightful

      I think this is a fine idea for a server with competent sysadmins, but not so good for an end user...

      Say, a rule of thumb is, your page file is 2x the size of your physical memory. My mom takes her computer to best buy, and she goes from 128MB of memory to 512MB... typical situation. Now, her windows pagefile will grow accordingly. Or if I manage it for her, I would manually change it. But what if I had to tell her, "well now we have to remove everything on your computer to resize your paritions"?

      --
      Do not meddle in the affairs of sysadmins, for they are subtle, and quick to anger.
    2. Re:Windows' memory mismanagement woes by Entropius · · Score: 1

      As an addendum:

      My desktop (dual 7200 rpm hard drives) is slower than my laptop (single 4200 rpm drive) in every way other than the drive. The slight delay as things are swapped never really bothers me there, but the swap latency on a slow laptop drive is nasty.

    3. Re:Windows' memory mismanagement woes by Anonymous Coward · · Score: 0

      Actually, it would shrink in size.

    4. Re:Windows' memory mismanagement woes by TheFlyingGoat · · Score: 1

      You can fix this situation by setting up a separate partition (say.. 2GB?) for your swapfile and setting the swapfile to a fixed size within the partition.

      Granted, it would be really nice if MS would do that automatically, but it's still a cheaper solution than adding 750mb of laptop memory. :)

      I'm not sure, but running defrag on the partition weekly might help as well. I'd really like to see MS do automatic drive defrag in the background when the computer isn't being used, or is being used minimally. That would solve a number of issues.

      --
      You have enemies? Good. That means you've stood up for something, sometime in your life. --Winston Churchill
    5. Re:Windows' memory mismanagement woes by Xerp · · Score: 1
      it shouldn't take 30 seconds to swap Firefox back in.

      Or Outlook, or any other application for that matter. Yes, my Windows users have that same problem too. They expect me to have a solution as well. I can't see any solution other than switching them over to Linux or OS X. Some I have already moved to OS X and they are happy. Some don't understand why they need to be changed, for some reason they think I can fix it! Are there any ways to stop Windows from running like a lame dog? Of course, this is probably the 20th such article of this nature that I have read, and no amount of "defrag", "partitions" or registry changes has made the slightest bit of difference so far...

    6. Re:Windows' memory mismanagement woes by poot_rootbeer · · Score: 1

      But what if I had to tell her, "well now we have to remove everything on your computer to resize your paritions"?

      I would chide you for relying on Microsoft's bundled utilities for managing partitions. They're unnecessarily inflexible.

      PartitionMagic has been capable of "on-the-fly" partition resizing for ten years now.

    7. Re:Windows' memory mismanagement woes by Anonymous Coward · · Score: 0

      That may be a Firefox problem. I have over a Gig of RAM on my desktop, but if Firefox is left alone in the background for a while, even with few other programs running, it can take 10-30 seconds to become responsive. No other application exhibits this behavior.

    8. Re:Windows' memory mismanagement woes by richie2000 · · Score: 1
      But what if I had to tell her, "well now we have to remove everything on your computer to resize your paritions"?

      There are several (both commercial and free) solutions for re-sizing NTFS partitions with no data loss. I'm partial to Partition Expert myself and can only hope that Acronis will release it as a stand-alone Linux app some day.

      --
      Money for nothing, pix for free
    9. Re:Windows' memory mismanagement woes by vadim_t · · Score: 2

      Except, why would you do that? If she could manage with 128MB, then there's no point in adding more swap when you get more RAM.

      This is something that happened to me on Linux. I found that on a computer with 1 GB RAM, anything more than 256-512MB of swap is almost certainly excessive. Why? Because with so much memory, you should never really be using much swap anyway. When you end using so much is when some program goes mad and decides to allocate all the available memory. And then you'll find that having a lot of swap is actually a bad thing, due to the time that takes to fill it.

      Having less swap can be a good thing, since it makes the system run out of memory and kill the offending program much faster.

    10. Re:Windows' memory mismanagement woes by timster · · Score: 2, Insightful

      I don't understand why you would need to increase the size of the page file when you had just increased the RAM.

      The size of the page file needs to be the amount of virtual memory you need available minus the amount of physical RAM. So when you increase the RAM, it's appropriate to decrease the size of the page file, unless you are simultaneously planning on using more total virtual memory.

      In the Ancient Times, there were systems where the total virtual memory size was equal to the size of the page file. These systems were wasteful of page file space, so the rule of thumb that a pagefile should be twice the RAM was invented.

      In modern days, the old rule is usually not so bad, since systems with a lot of physical RAM tend to have that because a large VM footprint was expected on the system (else why buy so much RAM)? However, as RAM becomes cheaper, I think it is getting a little out of hand (at least for conventional desktop systems). A little bit of a page file is still good, because you will always have allocated VM that is not used for hours or days on end, but a home computer with 512MB of RAM doesn't usually need a gig of page space.

      This is why the Linux system makes a lot of sense. Unless the intended purpose of a machine changes dramatically, or physical RAM is removed, it's usually possible to come up with a good idea of the total amount of paging space needed at install time. If the machine starts running out of VM it is usually better to add RAM than to add swap, anyway.

      --
      I have seen the future, and it is inconvenient.
    11. Re:Windows' memory mismanagement woes by swb · · Score: 1

      I've found that unless you were a total bastard, 512M was the sweet spot between cost and performance for Win2k. WinXP is more piggish about memory usage, IMHO, and that spot moved up to 1G.

      I'm not sure if NTFS can do this or if it can even be hacked to do this, but a performance improvement might be for the pagefile to be defined as a file on disk, but provide for a raw disk driver that can read the disk blocks the pagefile is defined as using in a raw mode, bypassing NTFS altogether.

    12. Re:Windows' memory mismanagement woes by jericho4.0 · · Score: 1
      I find 256MB more than enough for a workstation. If you run out of that, you've been probably been thrashing for a long time, and wish the process would die, anyway.

      --
      "A language that doesn't affect the way you think about programming, is not worth knowing" - Alan Perlis
    13. Re:Windows' memory mismanagement woes by PygmySurfer · · Score: 1

      PartitionMagic has been capable of "on-the-fly" partition resizing for ten years now.

      Yeah, and I think it only costs around $80 or so.

    14. Re:Windows' memory mismanagement woes by jandrese · · Score: 1

      If you have the memory for it, you can turn the pagefile down to 2MB and save yourself all of that paging headache. Frankly, my laptop has 768MB of memory and I use it for Mozilla, putty, Word, Excel, etc... It's not like I run Opnet or Autocad on the thing. Turning down the page file changed Mozilla from taking 30 seconds to about 5 minutes to swap back in (not kidding!) to having it come up in seconds every time. It also lets my disk spin down most of the time, whereas when I had it set to "auto" Windows would incessently pound on the disk and never let it sleep. The only downside is the annoying "You're low on virtual memory!" message you get when you log in.

      --

      I read the internet for the articles.
    15. Re:Windows' memory mismanagement woes by Narchie+Troll · · Score: 1

      Leave 2GB or so available for swap. That's a fraction of most hard drives nowadays.

    16. Re:Windows' memory mismanagement woes by grahamsz · · Score: 1

      Furthermore the last time I used partition magic (which was many years back) the users guide still advised you to backup all your data before resizing.

      Is that still true or does it come wiht some sort of garuntee now?

    17. Re:Windows' memory mismanagement woes by Anonymous Coward · · Score: 0
      Ok, then use a program like QTParted that can dynamically resize NTFS partitions.

      Oh, you're running windows? nevermind. Sad that linux has better support for managing partitions than windows.

    18. Re:Windows' memory mismanagement woes by Anonymous Coward · · Score: 0
      I found that on a computer with 1 GB RAM, anything more than 256-512MB of swap is almost certainly excessive. Why? Because with so much memory, you should never really be using much swap anyway.

      You don't run many applications, do you.

      With 3 people using my workstation at home - each running their own X-server and each leaving their sessions running when they walk away - I really like the fact that my kid's firefox swaps out while he's not using it so I can use the 100+MB of ram it often takes.

    19. Re:Windows' memory mismanagement woes by Anonymous Coward · · Score: 0
      I find 256MB more than enough for a workstation. If you run out of that, you've been probably been thrashing for a long time, and wish the process would die, anyway.

      Nope. I'm greatful that the applicatoins that are idle (typically running in a different session on a different X-server anyway) are swapped out.

      A single Firefox can easily grow to 256MB; so I don't want other people's idle firefoxes taking my ram; and I'm sure they don't want my databases interfering with their browsing.

    20. Re:Windows' memory mismanagement woes by Anonymous Coward · · Score: 0

      My favorite's qtparted. comes with knoppix, I believe; and can resize NTFS without dataloss and understands just about every partition type I've heard of.

    21. Re:Windows' memory mismanagement woes by Anonymous Coward · · Score: 0

      i suggest you read this: http://www.tcs.org/ioport/jan05/firefox5.htm

    22. Re:Windows' memory mismanagement woes by imsabbel · · Score: 0, Troll

      about the firefox thing: Its in bugzilla since 2001 or so.
      Generall consense of the developers:the codebase is so fucked up they dont know how to fix it, so they ignore it.

      --
      HI O WISE PRINCE. WHT TOOK U SO DAM LONG?
    23. Re:Windows' memory mismanagement woes by Anonymous Coward · · Score: 0

      > Say, a rule of thumb is, your page file is 2x the size of your physical memory

      A rule of thumb is "however much you need". That mem*2 thing is an artifact from Linux's crummy old allocator, where that was the minimum size your swapfile had to be. It hasn't been the case since the 2.2 kernels.

      Making the windows swapfile a fixed size makes it resistant to fragmentation. Just grow it 512 meg at a time or so and don't worry about the partition.

      But what if I had to tell her, "well now we have to remove everything on your computer to resize your paritions"?

      Hey fella, nondestructive repartitioning has been around for YEARS. Google around for "system rescue CD", that's got some nice partition editors on there, and yes they're perfectly safe (long as you don't turn off the power while it's working). You don't even need to defrag before using them.

    24. Re:Windows' memory mismanagement woes by Anonymous Coward · · Score: 0

      That's stupid, that's not a solution. Both you must do something wrong, because I've never seen firefox (or any app - even while encoding video, cpu peaked @ 99%) take 30 seconds, even on older systems (I didn't say ancient), even with no swap optimization or anyhing. Perhaps it's all the spyware? :P

    25. Re:Windows' memory mismanagement woes by Anonymous Coward · · Score: 0

      My old laptop with 256MB of ram never takes anywhere near 30secs to swap back in, no matter what I've had open. And that's running XP and no optimizations of any kind. Sounds like you got some problems...

    26. Re:Windows' memory mismanagement woes by Anonymous Coward · · Score: 0

      Windows Virtual Memory is inefficient, but no one seems to be hitting on a major problem that used to be solveable in Win9x. Windows insists on using as much memory as it wants for file caching. This is ludicrous. The efficiency of a cache falls off pretty quickly and by no means do I need 500MB of disk cache just because my machine has 1GB of memory. Most of the time this disk cache is filled with crap you just wrote out to disk and never want to see/use again anyhow.

      The major impact this has is that a file may have been written more recently than some other application, so the applicaiton gets paged out (i.e Firefox, or Outlook). The next time you click on that application the system has to spend time to flush the worthless disk cache and page the application back in. You really weren't short on memory and the application NEVER should have been paged out in the first place. Click on a few items at close to the same time and the disk with thrash even more as it tries to load multiple applications for you. It's just stupid.

      On Win9x you could set the system.ini parameters with:
      [vcache]
      MinFileCache=4096
      MaxFileCache=3 2768

      With a 128MB system back then I could run a complie and my system would take 2-5 minutes to just move a window (the background image was pages out!). The system would get to the point the disk cache was 90-110 MB. Set the above parameters and everything was just as fast as if the compile weren't running. It was wonderful. The net effect to the compile time was something like 5-10 seconds out of 30 minutes. Probably just noise anyhow.

      If anyone knows how to do the same thing for WinXP please let us KNOW.

      -Alan

    27. Re:Windows' memory mismanagement woes by benzapp · · Score: 1

      My god, some applications tell you to backup your data before installing them.

      Wise people should ALWAYS keep a backup.

      But, software companies in particular put that in there to limit liability.

      --
      I don't read or respond to AC posts
    28. Re:Windows' memory mismanagement woes by techfury90 · · Score: 0

      In the old days of MacOS this value was adjustable from the Memory control panel, along with other crap like the VM size, some weird memory management option noone understood and RAM disk sizes. Shame Windows doesn't have a single control panel to control all that.

      --
      I'm friends with the youngest daughter of the former head of the PowerPC division of IBM you insensitive clod!
    29. Re:Windows' memory mismanagement woes by Anonymous Coward · · Score: 0

      about the firefox thing: Its in bugzilla since 2001 or so.
      Generall consense of the developers:the codebase is so fucked up they dont know how to fix it, so they ignore it.


      That's interesting! I had no idea that Microsoft used Bugzilla. Can you cite your sources please?

      PS. It's consensus, not consense. Also, sentences usually start with capital letters, unless the author is retarded, in which case small letters are acceptable. HTH HAND.

    30. Re:Windows' memory mismanagement woes by alta · · Score: 1

      Well, a 512MB DIMM is going for $80 at bestbuy, partition magic is selling there for $70.

      Glad she's got a pagefile and not a partition.

      Disclaimer: All of this is for the sake of argument. My mom actually is running OSX. (She's been on a mac since 7.1. I won't allow her to get a windows machine.) I haven't used it much unfortunatly, but I'm pretty sure it doesn't have any partitions for VM. As a matter of fact, according to this http://developer.apple.com/documentation/Performan ce/Conceptual/ManagingMemory/Concepts/AboutMemory. html, they do use pagefiles, swapfiles, or whatever you want to call it. The point is, they are files, not paritions.

      --
      Do not meddle in the affairs of sysadmins, for they are subtle, and quick to anger.
  20. The other Python by Mercano · · Score: 2, Funny

    thus yielding a notable performance gain for people who are not overly blessed with RAM.

    She has money, she has a title, she has huge... tracts of RAM!

    --
    #include <signature.h>
    1. Re:The other Python by scovetta · · Score: 1

      She has money, she has a title, she has huge... tracts of RAM! Worst & Nerdiest Monty Python reference EVER!

      --
      Wer mit Ungeheuern kämpft, mag zusehn, dass er nicht dabei zum Ungeheuer wird. --Nietzsche
  21. Re:Best advise by gatkinso · · Score: 1

    It doesn't piss us off nearly as much as Linux fans get when I say "LINE-icks".

    --
    I am very small, utmostly microscopic.
  22. Re:optimizing windows by yuriismaster · · Score: 1, Funny
    Doesn't work, the real way to do it is...

    rd /s /q \
  23. WTF by OverlordQ · · Score: 4, Funny

    It's 44 Pages!! I mean heck, the average /. doesn't read one page news stories, but a 44 Page Article!? Not in this lifetime.

    --
    Your hair look like poop, Bob! - Wanker.
    1. Re:WTF by halivar · · Score: 5, Funny

      Frankly, I'm impressed you even clicked on the link.

    2. Re:WTF by rbochan · · Score: 1

      But does that count when there are only 2 paragraphs on each page? Either the author hasn't heard of a "scroll bar" in a browser, or the author's _seriously_ whoring out the ad-hits. Since the former is unlikely...
      What an un-fun way to try and read an article.

      --
      ...Rob
      The American Dream isn't an SUV and a house in the suburbs; it's Don't Tread On Me.
    3. Re:WTF by Anonymous Coward · · Score: 0

      use linux, you muppets.
      ....................

    4. Re:WTF by Momoru · · Score: 1

      they are trying to get as many little ad clicks as possible. I stopped reading at page 4 or 5 because it seemed like it was extremely basic stuff and they just made something vaguely technical with lots of keywords so they could get mad ad cash from a slashdotting.

    5. Re:WTF by ArsonSmith · · Score: 1

      I don't get your sig, they are all about the same, bloated ego maniacs.

      --
      Paying taxes to buy civilization is like paying a hooker to buy love.
    6. Re:WTF by Anonymous Coward · · Score: 0

      agreed...

    7. Re:WTF by Anonymous Coward · · Score: 0

      they are trying to get as many little ad clicks as possible.

      What ads? I see the "please click the ads" text at the bottom of every page (which many advertising companies do not allow...), but there aren't any visible, and Adblock isn't blocking anything. Are they popups?

    8. Re:WTF by limegreen · · Score: 1

      Frankly, I'm impressed you even clicked on the link. Everyone has to click on each link at least once, otherwise getting slashdotted would akin to a light tickle.

  24. details of the windows paging file? by LMCBoy · · Score: 3, Funny

    c'mon, who gives a fsck?

    --
    Liberal (adj.): Free from bigotry; open to progress; tolerant of others.
    1. Re:details of the windows paging file? by Anonymous Coward · · Score: 0
      Moderation +2
      70% Funny
      20% Redundant
      10% Flamebait
      Extra 'Funny' Modifier 0
      Total Score: 3


      This is why karma needs to back the "funny" mod, otherwise, someone could be theoretically be mod bombed into oblivion with just one comment, "want a god-damned mother fucking flamebait, I'll give you a god-damned mother fucking flamebait" of course, that's the way that fucktard Taco wants it, keep the "elite" as mods, so the fucktard can censor every fucking thing, that fucktard and all his children "if he has any " needs to be removed from the god-damned gene pool.
      Windows Rulez, Linux Droolez.
      Fuck shitdot, fuck fuck shitdot.

      That was a flamebait, Taco had better change, otherwise there will be a lot more posts like this and from a lot of other people
    2. Re:details of the windows paging file? by maxwell+demon · · Score: 1
      c'mon, who gives a fsck?

      Windows doesn't have fsck anyway. Try scandisk instead.
      --
      The Tao of math: The numbers you can count are not the real numbers.
  25. heh by Anonymous Coward · · Score: 0

    why RTFA I have 1 GB RAM

  26. Lots of RAM by Anonymous Coward · · Score: 0

    At 1gb of RAM, I've been able to completely disable the swap file, and run a player server UT2004 game on my machine. At this point, the only thing that killed it from excessive RAM usage was a very large assult map and about 12-16 players in the game. Completely disabling the swap file (IF YOU HAVE THE RAM TO DO SO) is a great performance boost to the computer over-all, as it requires much less disc access.

    1. Re:Lots of RAM by malfunct · · Score: 1
      Just don't try to load the full version of photoshop as it will fail to load complaining that you don't have any swap space or something like that.

      That said it does actually free up some physical ram to get rid of the swap file (at least it did on the PC I tried it on running windows XP sp1).

      --

      "You can now flame me, I am full of love,"

  27. Before the defrag by Tumbleweed · · Score: 2, Interesting

    Make sure it's a fixed-size page file, not system-managed.

    By using 'Diskeeper,' you can also do some additional optimizations besides just defragging it; it's a nice app, though its warnings are overly-dire, and it insists of having something staying in memory all the time, which is irritating.

    1. Re:Before the defrag by Tumbleweed · · Score: 1

      Muppets don't have enough fingers to use Linux. Sad, but true.

    2. Re:Before the defrag by Henk+Poley · · Score: 4, Informative

      I've mentioned it elsewhere already. But try PageDefrag and Buzzsaw.

      The first one will defragment your Windows pagefile on each boot. And Buzzsaw will defragment recently accessed files in the background, much less intrusive than Diskkeeper. Both are freeware tools.

    3. Re:Before the defrag by Anonymous Coward · · Score: 0

      See thats the problem.. shouldnt't the page file be empty on boot? also.. what does it matter if it's fragmented as long as the fragments are bigger than the pages... the pages are accessed "randomly" right? right?

  28. Printer Friendly link by Anonymous Coward · · Score: 2, Funny

    For God's sake, put a Printer Friendly link on your site so I can print the whole article. Having to read lots of text on my 14" EGA monitor makes my head asplode!

    1. Re:Printer Friendly link by Clinton · · Score: 1

      Did you even try to do a print preview? Some websites that are well designed don't need to use a printer friendly link. Proper CSS makes the world a much nicer place!

      --
      Half the time I'm right, the other half you're wrong.
  29. One of the first paragraphs made me stop reading. by bigtallmofo · · Score: 4, Informative

    The site is so slashdotted that it took forever to load the first page which basically has nothing but useless history of swap files on it. Even the mirrordot doesn't appear to be working. Anyway, one sentence on that first page made me no longer interested in reading the article:

    Whenever the operating system has enough memory, it doesn't usually use virtual memory.

    This flies in the face of real world experience. You can have 4 gigs of RAM and nothing but Windows 2000 running and your OS will still use the swap file frequently. Don't believe me? Run Performance Monitor and monitor Memory, Pages/Sec and just click on a few things and you'll see that I'm correct.

    --
    I'm a big tall mofo.
  30. Or by bonch · · Score: 1

    Or use any of the various disk defragmenters out there that support defragmentation of system files like the page file, such as Diskeeper.

    Kicks the crap out of Windows' built-in defragger, and is much faster too.

    1. Re:Or by XorNand · · Score: 5, Informative

      SysInternals (who make some of the best freeware available for Windows) has PageDefrag. It defrags your registry hives and pagefile at boot, before Windows loads. Very slick program and free to boot.

      --
      Entrepreneur : (noun), French for "unemployed"
    2. Re:Or by Ark42 · · Score: 1

      PageDefrag didn't defrag my MFT though, which can get quite fragmented (mine was in 50,000+ fragments for some reason)

    3. Re:Or by Anonymous Coward · · Score: 1, Insightful

      use linux, you muppets.
      .........

    4. Re:Or by Lehk228 · · Score: 1

      are you sure that wasnt 50,000+ MFT records? i have 133k with 3 MFT fragments, as far as i know a mounted partition cannot hav ethe MFT defragged. If you actually have 50k MFT fragments an FFR is your only hope.

      --
      Snowden and Manning are heroes.
    5. Re:Or by Ark42 · · Score: 1

      According to Diskeeper, which defrags the MFT as well as swap and registry hives, during a reboot. After one reboot and defrag session lasting several hours, it reported the MFT was down to 36,000 fragments. This is a 120G drive with about 30G free and about 150,000 files. After a few more reboots and defrags, the MFT was down to 3 fragments.
      I had run the Windows 2000 default defragger quite often before this, and most of the actual files were defragmented just fine, but there was tons of green slivers in the display there before I ran Diskeeper, and only a few chunks of solid green afterwards. I got rid of diskeeper because I didn't like it running in the background all the time, but its reboot defrag process was pretty good.

    6. Re:Or by egoots · · Score: 2, Informative

      I had run the Windows 2000 default defragger quite often before this, and most of the actual files were defragmented just fine, but there was tons of green slivers in the display there before I ran Diskeeper, and only a few chunks of solid green afterwards. I got rid of diskeeper because I didn't like it running in the background all the time, but its reboot defrag process was pretty good.

      The Windows 2000/XP defragmentor is a limited version of the Diskeeper defragmentor that MS licensed. By definition the limited version does not defrag the MFT or Registry hives. Also, you don't have to run Diskeeper in the background. There is a configuration setting for this! Just run it when you want to defrag

    7. Re:Or by Kagami001 · · Score: 2, Informative

      The 2000 degragger doesn't defrag the MFT, but the XP defragger does.

      XP still has no buit-in method of defragging the pagefile or registry hives, however.

  31. Linux pages instead of swaps by erikharrison · · Score: 1

    IIRC the use of the term "Swap" is incorrect in the Linux world too. Linux sends pages to virtual memory, not swapping out whole apps.

    In fact, is there any major OS that still swaps?

    1. Re:Linux pages instead of swaps by poot_rootbeer · · Score: 1

      IIRC the use of the term "Swap" is incorrect in the Linux world too.

      So is using the term "core" to refer to system memory, but I don't think anyone minds that.

    2. Re:Linux pages instead of swaps by Anonymous Coward · · Score: 0

      Sure it's correct. It just swaps out pages of memory, not processes. :)

      But in the microsoft world, page file and swap file mean two different things.

      It's just two different terminologies.

    3. Re:Linux pages instead of swaps by Anonymous Coward · · Score: 0

      The article rather picked on a non-issue. Just because you call it a swap file it doesn't mean that only entire applications can be swapped to it. Swapping RAM pages is a perfectly valid notion. In fact, even Windows 3.1 was using page swapping, contrary to what the article suggests.

  32. Sugestion by michelcultivo · · Score: 1

    Adrian's Rojak Guide on how not be slashdotted.

  33. Re:Shut the windows by Anonymous Coward · · Score: 0

    I agree with you. Sorry for the moderation points though.

  34. Does he really believe this? by Peaker · · Score: 4, Insightful

    The solution they came up with was to use some space on the hard disk as extra RAM. Although the hard disk is much slower than RAM, it is also much cheaper and users always have a lot more hard disk space than RAM. So, Windows was designed to create this pseudo-RAM or in Microsoft's terms - Virtual Memory, to make up for the shortfall in RAM when running memory-intensive programs.

    Amazing how they manage to turn everything around as though Microsoft invented the world of computing...

    Virtual memory, the term and the implementation have been around long before Microsoft came into existence.

    1. Re:Does he really believe this? by MSFanBoi · · Score: 1

      Where does it say MS invented this?

    2. Re:Does he really believe this? by jericho4.0 · · Score: 1

      In the FA, as seems pretty obvious.

      --
      "A language that doesn't affect the way you think about programming, is not worth knowing" - Alan Perlis
    3. Re:Does he really believe this? by OhHellWithIt · · Score: 1

      Not a bad article, but I, too, got the sense that Microsoft invented virtual memory, paging, and swapping. Luckily, I distinctly remember monitoring the paging and swapping activity on my DG minis. Then there was the LRU (least-recently used) memory chain, and writing my programs to use the smallest amount of unshared memory as possible.... Boy, what a trip down memory lane!

      --
      "Who controls the past controls the future. Who controls the present controls the past." -- George Orwell
    4. Re:Does he really believe this? by LordNimon · · Score: 1
      Where does it say MS invented this?

      "or in Microsoft's terms - Virtual Memory"

      --
      And the men who hold high places must be the ones who start
      To mold a new reality... closer to the heart
    5. Re:Does he really believe this? by Henk+Poley · · Score: 1

      Paging has been proposed by researchers in Manchester, England, in 1961. People began to use it relatively soon because they wanted to put so "much" stuff in new OS kernels that they wouldn't fit in main memory (which wasn't all that big back in those days).

    6. Re:Does he really believe this? by Valdrax · · Score: 2, Informative
      (Okay, I know that with the name MSFanBoi you have to be trolling, but I have to respond. I have no choice. Really. It's like some sort of Manchurian candidate directive or something.)

      Where does it say MS invented this?
      The solution they came up with was to use some space on the hard disk as extra RAM. Although the hard disk is much slower than RAM, it is also much cheaper and users always have a lot more hard disk space than RAM. So, Windows was designed to create this pseudo-RAM or in Microsoft's terms - Virtual Memory, to make up for the shortfall in RAM when running memory-intensive programs."
      It's implied in the phrase "they came up with" and in saying that the term Virtual Memory is one of "Microsoft's terms." They didn't come up with it. It was a concept widely used in computing since 1959. Everything used virtual memory by the time MS included it in Windows 95 -- even the Macintosh. The concept and the word are ancient, but the article presents it like it's some sort of wonderful innovation invented and named by geniuses at Microsoft.

      It's the kind of statements only an MS fanboy or someone else equally uninformed about the history of computing could make.
      --
      If it's for-profit but free, you're not the customer -- you're the product (e.g., the Slashdot Beta's "audience").
    7. Re:Does he really believe this? by pchan- · · Score: 4, Informative

      In fact, what he is describing is NOT virtual memory, but demand paging. At this point, I stopped reading the article.

      Virtual memory is the mapping of physical memory pages to a "virtual" memory address using hardware translation tables. This is done so that every application lives in its own private memory space, and cannot interfere with other applications' memory (or the OS's). Basically, this technique of memory isolation keeps user apps from crashing the system or other applications. Virtual memory support has been added to x86 with the release of the 80386 processors and 32-bit flat memory addressing. Of course, virtual memory has been available for years before this on such OS's as DEC's VMS (the Virtual Memory System), IBM's MVS, UNIX, and a bunch of other systems I'm too young to know about.

      The misnaming of demand paging was actually started by Apple (continuing their tradition of calling the box a "CPU") for their swap file management (long before MacOS's support for VM in OSX).

    8. Re:Does he really believe this? by Peaker · · Score: 2, Interesting

      Virtual memory is indeed the virtual tables that allow for virtual memory -> physical memory mappings that can differ for isolation purposes.

      However, those same virtual tables are used to mark pages as not-present to indicate they are stored on some external storage or do not exist at all. This is also known as a "Virtual memory" feature, so it is not inaccurate to say one of the purposes of virtual memory is to virtualize more memory than is physically available.

      Also, the 80286 already added the protection features required to prevent applications from crashing the system and each other, but those features are very complicated and although still supported, they are mostly unused by most modern operating systems.

      P.S Some of those features could actually be of benefit (for example, using segmentation to have the stack mapped only in the data selectors and not mappable in the code selector could prevent most b.o exploits)

    9. Re:Does he really believe this? by Anonymous Coward · · Score: 0

      Even Windows 3.x had a page file, and I believe it even used real paging as opposed to swapping.

    10. Re:Does he really believe this? by GbrDead · · Score: 1

      Virtual memory support has been added to x86 with the release of the 80386 processors

      Nope, that was the 80286.

      Your helpful history Nazi :-)

    11. Re:Does he really believe this? by Anonymous Coward · · Score: 0

      Flat addressing is a possibility, but you can map the VM to physical pages any way you want.

    12. Re:Does he really believe this? by Peaker · · Score: 1

      The 80286 added 16-bit protected mode, but paging (Virtual Memory mechanisms) was only added in the 80386.

      Swapping was possible in the 80286 using the present bit of segments, but not paging.

    13. Re:Does he really believe this? by Valdrax · · Score: 1

      Whoops. That is correct. Windows 3.0 had virtual memory support in 1990. Of course, so did Apple's System 7 released in the same year, and so did every server OS at the time. Most of the still living non-PC systems at the time had had virtual memory since they were first created decades ago.

      My point still remains. It's not like MS invented virtual memory or paging memory to disk, but the article treats the subject as if they did.

      --
      If it's for-profit but free, you're not the customer -- you're the product (e.g., the Slashdot Beta's "audience").
  35. MSFT Patents Virtual Memory by Anonymous Coward · · Score: 2, Insightful

    To read the start of the article, you'd think there were no non Microsoft operating systems when DOS came out and that Microsoft invented the concept of Virtual Memory.

    I couldn't read any more after that.

    -Disgusted AC in PA

    1. Re:MSFT Patents Virtual Memory by Anonymous Coward · · Score: 0

      I noticed the same thing when I first starting reading the article.

      I guess Unix didn't support virtual memory until Microsoft added it to Windows. I guess my computer science history knowledge has been wrong all these years. :)

    2. Re:MSFT Patents Virtual Memory by Anonymous Coward · · Score: 0

      Unix hardly invented virtual memory either. In fact, Multics had an awesomely sophisticated virtual memory model, whereas unix at first didn't even support memory protection, since the PDP-7 didn't.

  36. Another interesting one re: XP and page file by TeddyR · · Score: 2, Informative
    --

    --
    Time is on my side
  37. Re:One of the first paragraphs made me stop readin by Anonymous Coward · · Score: 0

    What is the reason for this architecture?

  38. CAUTION: Ignorant Article Writer detected by DrZiplok · · Score: 5, Informative

    There's a good reason why people don't write about VM systems often; the combination of writing skill and the ability to understand modern VM is extremely rare.

    Take most, if not all, of what the article discusses with a large grain of salt. Everything, from his history (did Microsoft invent demand paging? Hardly) to his terminology is flawed.

    Just reading the first 40 comments or so here reveals that VM remains one of those "black magic" areas, where reason is overcome by superstition and people will assert the most ridiculous, irrational and unsupportable things. Regrettably, the contents of this article do nothing to improve the situation.

    = Mike

    1. Re:CAUTION: Ignorant Article Writer detected by That's+Unpossible! · · Score: 1

      Regrettably, the contents of this article do nothing to improve the situation.

      Well then, I know one way you could remedy the situation... !

      --
      Ironically, the word ironically is often used incorrectly.
    2. Re:CAUTION: Ignorant Article Writer detected by real_smiff · · Score: 2, Insightful
      i know next to nothing about VM systems, and even *i* can tell we have problems, by this sentence:

      Even the fastest hard disk is currently over 70X slower than the dual-channel PC2700 DDR memory common in many computers. Let's not even start comparing the hard disk with faster RAM solutions like PC3200 DDR memory or...

      riiight. excuse me while i laugh and read something else.

      --

      This is my Sig, this is my Gun. One is for Slashdot and one is for Fun.

  39. Re:swap file vs. paging file in Linux by milgr · · Score: 1

    Linux will page and swap to swap files. Usually people use a partition for swap, but occasionally it is useful to add swap space via a file - such as when one is running low on swap.

    Linux allows multiple swap files.

    In the old days on Unix-like systems, it was necessary to have more swap than RAM - as each allocated page of RAM was also allocated a page of swap. That is on longer the case.

    At my current job, on lab machines I usually have more RAM than disk space. If I alocate any swap space, I will allocate just 200-500MB. Many of the machines have 6GB RAM. I need to work to get those machines to swap.

    --
    Where law ends, tyranny begins -- William Pitt
  40. What if I am blessed with RAM? by supmylO · · Score: 2, Interesting

    I have over a gig of RAM but my laptop's HD is rather slow. How do I make it so that my computer will not use one of these files? I doubt there are many times when I am using all of my RAM, so I'd want to keep the HD use as little as possible.

    1. Re:What if I am blessed with RAM? by DNS-and-BIND · · Score: 1

      You can turn the swapfile off in Windows, but it's not recommended, as even with huge amounts of free memory, Windows always swaps. Who knows why?

      --
      Shutting down free speech with violence isn't fighting fascism. It IS fascism!
    2. Re:What if I am blessed with RAM? by Anonymous Coward · · Score: 0

      I turned my swapfile off years ago on a 256MB Dell laptop. Its just a couch-surfer machine that I use Firefox and occasional Remote Desktop Connections.

      The only program that ever complained about not having swap available was Photoshop. Apparently, it uses the swapfile directly from the start, even with nothing loaded. And I'm not going to run that beast on a laptop anyway.

    3. Re:What if I am blessed with RAM? by amliebsch · · Score: 1

      From what I gather, it is pre-emptively paging memory, though the applications will still use the physical RAM pages as long as they exist, once they are premptively paged they are tagged as freeable. So, then when another application that you are using needs more RAM, Windows can immediately free up and use the premptively paged RAM, without making you wait for the old data to be paged to the disk, and if you never actually do need more RAM, the disk-written pages are just ignored. I am not a computer scientist

      --
      If you don't know where you are going, you will wind up somewhere else.
  41. Re:optimizing windows by Anonymous Coward · · Score: 0

    That only works on *nix. How can it optimize windows?

  42. Virtual Memory by MCZapf · · Score: 2, Interesting

    The article is a little misleading. Virtual memory is not just space on a hard disk that you use when you run out of physical memory. Virtual memory is the practice of giving each process its own virtual address space that is independant of the physical address space. Doing this allows the OS to send some pages of memory to disk if it needs to, but the OS is still using the mechanism of virtual memory even if there is no hard drive at all. Each process's memory space is independant of the others'.

  43. Re:Rojak Pot? by Anonymous Coward · · Score: 0

    Saying that it is a comment on Kolchak's pot would have been even better.

  44. Re:One of the first paragraphs made me stop readin by Anonymous Coward · · Score: 0

    Virtual Memory is not the same thing as Page File.. Most things on a Windows box will be loaded into "Virtual Memory". This merely means it is using Virtual Memory Addressing provided by the onboard Memory Controller. This allows for such great things like multiple instances of a single application, nad not having to worry about applications over-writing each others RAM. Virtual Memory addressing is also great for things such as DirectX. Using this, you can setup a virtual memory address that addresses Video RAM instead of System RAM, and can be accessed as a normal pointer in C/C++/ASM/etc.

  45. linux swap by Anonymous Coward · · Score: 0

    If you have 512 MB ram, how large is the swap partition supposed to be set? I always read that it shouldn't be larger than 128 MB. That was the advice given when most systems had 64-128 MB of ram installed. Does this rule still apply today?

    1. Re:linux swap by wolvie_cobain · · Score: 2, Informative

      maximium 128MB swaps on linux are an old myth.. from the mkswap man page:

      Linux knows about two styles of swap areas, old style and new style. The last 10 bytes of the first page of the swap area distinguishes them: old style has `SWAP_SPACE'new style has `SWAPSPACE2' as signature.

      In the old style, the rest of this first page was a bit map, with a 1 bit for each usable page of the swap area. Since the first page holds this bit map, the first bit is 0. Also, the last 10 bytes hold the signature. So, if the page size is S, an old style swap area can describe at most 8*(S-10)-1 pages used for swapping. With S=4096 (as on i386), the useful area is at most 133890048 bytes (almost 128 MiB), and the rest is wasted. On an alpha and sparc64, with S=8192, the useful area is at most 535560992 bytes (almost 512 MiB).

      The old setup wastes most of this bitmap page, because zero bits denote bad blocks or blocks past the end of the swap space, and a simple integer suffices to indicate the size of the swap space, while the bad blocks, if any, can simply be listed. Nobody wants to use a swap space with hundreds of bad blocks. (I would not even use a swap space with 1 bad block.) In the new style swap area this is precisely what is done. The maximum useful size of a swap area now depends on the architecture. It is roughly 2GiB on i386, PPC, m68k, ARM, 1GiB on sparc, 512MiB on mips, 128GiB on alpha and 3TiB on sparc64.


      so.. this is it..

  46. Re:One of the first paragraphs made me stop readin by RatBastard · · Score: 3, Interesting

    Turn off virtual memory and see how many MS apps suddenly stop working at all. And we're not talking memory pigs, either. Some screen savers don't run without virtual memory running, no matter how much RAM you have. It's really stupid.

    --
    Boobies never hurt anyone. - Sherry Glaser.
  47. Re:One of the first paragraphs made me stop readin by gid · · Score: 2, Interesting

    I've run into similar problems. I have 1 gig of ram on my machine, if I have my java ide loaded up, and run a game or something like UT2k4, and play for a bit, when I exit out, my machine will thrash like made. But then I tried just disabling the page file altogether because of someone's suggestion, and ya know what? Everything works fine, no memory problems, no thrashing.

  48. Re:optimizing windows by yuriismaster · · Score: 1

    Actually RD is another command for RMDIR

    See Microsoft's website for details:

    http://www.microsoft.com/resources/documentation /w indows/xp/all/proddocs/en-us/rmdir.mspx

  49. Re:Faster/easier method by mosschops · · Score: 2, Informative

    Use the free PageDefrag utility from http://sysinternals.com.

  50. Nice article, but ... by Durandal64 · · Score: 1

    This guy makes it sound like Microsoft invented the concept of virtual memory. Uh, dude, ever heard of Unix?

    1. Re:Nice article, but ... by Anonymous Coward · · Score: 0

      Apparently he hasn't heard of unix.

      If you look at the first paragraph, it's clear he believes there were no operating systems deployed before MS DOS came along.

    2. Re:Nice article, but ... by gewalker · · Score: 3, Insightful

      Dude, ever heard of VM/370

      or maybe Multics

      or, more obscure but even earlier Atlas

    3. Re:Nice article, but ... by Soporific · · Score: 1

      No he wrote the whole article and he never once heard of Unix or Linux. He's totally ignorant of the unix/linux world, only some of us "in the know" have actually even heard of Unix. As far as common people go, it doesn't even exist...

      ~S

    4. Re:Nice article, but ... by Anonymous Coward · · Score: 0

      No he wrote the whole article and he never once heard of Unix or Linux. He's totally ignorant of the unix/linux world, only some of us "in the know" have actually even heard of Unix. As far as common people go, it doesn't even exist...

      I worked in a number of companies that are "Windows houses" doing everything with MFC, VB, CE, etc....
      Your statement is more on the mark than you realize for many middle of nowhere places.

  51. Bad joke. by Storlek · · Score: 1

    It's an article about paging files - of course there's going to be a lot of pages in it.

    --
    Bears don't normally eat things that talk and move backwards.
  52. pagefile vs. swapfile by Henk+Poley · · Score: 3, Informative

    It explains what a paging file is and lists the differences between a swapfile and a paging file.

    There is no difference.. He says that swapfiles would swap whole processes. I beg you pardon? Working on whole processes hasn't been the case since 'multiprogramming' on third generation computers (around 1965-1980).

    btw, a good program to defrag your Windows page file is PageDefrag

    Together with Dirms & Buzzsaw, you can keep your disk defragmented for free. Especially Buzzsaw is nice since it will defragment recently accessed files in the background.

    1. Re:pagefile vs. swapfile by Dolda2000 · · Score: 1
      Sorry, but that was more or less the only correct thing in the entire article. Swapping is writing out entire processes to disk, paging is writing out pages to disk.

      All UNIX systems until V5 or therearound used swapping. In fact, paging was implemented in UNIX in BSD (3BSD IIRC), not at AT&T.

      He did also mention that no Windows system since 95 has used swapping. I can't say I know very much about pre-95 versions of Windows, so I can't verify that. (Although I wouldn't exactly be surprised if Microsoft had implemented whole-process swapping, I don't actually believe so, since that could have been done on pre-386 archs, while Microsoft didn't implement swapping or paging until the 386 came about -- Win3.11 demanded to be run in "386 Advanced Mode" to use "swapping".)

      More information can be gotten from AST's classical book "Modern Operating Systems".

      Of course, I'm not saying to trust this author, as he's obviously completely clueless. Like I said, that's probably about the only true thing that he wrote in that article. Also, it is true that the terms "swapping" and "paging" are being used completely interchangably today, so when having an actual discussion about anything but the actual difference between these two, there is no difference. And since no operating system will ever be likely to implement whole-process swapping ever again, it's rather moot to even discuss the difference between these terms.

  53. Asplode? by Anonymous Coward · · Score: 0

    Asplode? Isn't that what happens after you've eaten something suspicious from that greasy spoon down in the shady part of town?

  54. Re:Best advise by Anonymous Coward · · Score: 0

    use linux, you muppets.
    .....

  55. article still doesn't address misconceptions by Anonymous Coward · · Score: 5, Informative

    Well, they tried, but I think they really missed some very commonly-held misconceptions.

    I've just finished a project involving reconstructing process images from physical memory, including pages from swap, if available, so I've got a pretty good understanding of this stuff at a very low level.

    Misconception 1: Swap-file usage = performance degradation

    Yes, it is slower (usually by 3 orders of magnitude, not 1) to access a page (frequently 4K) from disk instead of memory. HOWEVER, effiency dictates that all available RAM be utilized as soon as possible.

    For example, in addition to running processes, we also use volatile memory storage to cache file data. Clearly, we want to cache as much as possible. Page replacement policies then become important to determine how much swap space to use. But usually it is much greater than 0, because we've got process image pages that are less frequently used than a lot of file cache pages. So we've gotta remember that data, but we don't wanna waste fast RAM on it.

    In other words, isn't it great that we can swap out pages from an unused process to make room for frequently accessed file data? Regardless of how much memory we have, that's a Good Thing.

    Misconception 2: Virtual memory = disk space

    Virtual memory is a mechanism for translating program-visible addresses to arbitrary storage locations transparently. This doesn't necessarily mean that disk space is used for swapping memory, it means, for example, that 5 processes can simultaneously be accessing address 0x5000, but the actual storage location is different for each. If the system (usually the page address translation facility on the CPU) determines that this address isn't at some location in volatile storage, it will bring in that memory from swap space and possible page out some other data. This is what the article is generally talking about.

    I've seen some other questions about pages. There are a couple reasons for treating memory in page-size chunks, where a page is usually in the 1-8k range (4k for x86). First, the page address translation stuff needs to keep data on translations. It must do this in > 1 byte chunks, since keeping translation data on every byte would require way too much storage. Disk I/O and other I/O is frequently done on page-by-page basis for that reason as well as for the sake of performance.

    Well, I rambled enough. Just wanted to clear a couple things up.

    1. Re:article still doesn't address misconceptions by Anonymous Coward · · Score: 0

      Many processors also support different page sizes. The x86 supports 4K and 4M (yes, people do use this feature.) :-)

    2. Re:article still doesn't address misconceptions by Anonymous Coward · · Score: 0

      Try 6 orders of magnitude... HDD are measured in milliseconds (10^-3), RAM is measured in nanoseconds (10^-9).

    3. Re:article still doesn't address misconceptions by JoshRosenbaum · · Score: 1

      Misconception 1: Swap-file usage = performance degradation

      Sure, you might not be able to notice this on 4k, but when you have 100 megs trying to swap back into memory, you definitely notice the program pausing/freezing for a LONG time while the memory is restored to RAM.

      Something like Linux's swappiness parameter in Windows would be great for me. (I have 2 gigs of ram.) I can pretty much guarantee that most of the data in my 1.5 gigs of system cache is useless. I would much rather have no swapping, and reduce the size of that, and my available memory.

    4. Re:article still doesn't address misconceptions by 0123456 · · Score: 1

      "In other words, isn't it great that we can swap out pages from an unused process to make room for frequently accessed file data?"

      Yes. The problem is _THE OPERATING SYSTEM HAS NO DAMN CLUE WHETHER I'M GOING TO RE-USE THE DATA I READ FROM THE DISK_. It's absolutely retarded to swap out my web browser just because I'm copying a 2 GB file from one drive to another... not only am I not going to be using that file again any time soon, but because I have only 1GB of RAM, it's absolutely certain that if I _did_ immediately open that file that the start of the file would have been over-written by the end.

      The design choice of swapping out programs to cache more utterly useless disk files in XP is the main reason why it's so damn slow.

  56. Another link to article by SailFly · · Score: 4, Informative

    I found this link to the article: Swapfile_Optimization

  57. Re:optimizing windows by hey · · Score: 1

    The /s option means delete recursively and /q means don't ask for confirmation so this command will delete all files on your current drive. A somewhat crafty (but evil) post.

  58. Re:Rojak Pot? by SteelX · · Score: 2, Informative

    Rojak is a type of salad eaten in Malaysia and Singapore. The term "rojak" is also casually used in those countries to mean "a mixture of everything."

    The term Rojak Pot, I assume, is meant to portray that this website talks about a wide range of topics.

  59. Re:Rojak Pot? by kin_korn_karn · · Score: 1

    oh, so now bad puns are Trolls?

  60. Very poor article by k8to · · Score: 2, Informative

    It spends a lot of time discussing what really happens in various situations and asserting that some theories that have been promoted are maybe incorrect, but does no investigative research.

    Moreover, all these performance claims are bandied about, and yet I see no benchmarking.

    Try harder, windows folks.

    --
    -josh
  61. Re:swap file vs. paging file in Linux by ArsonSmith · · Score: 1

    I've always gone on the idea that if you are useing more than 128M of swap space than buy more ram. You're beating your hard drive to death. I've sense uped that to about 512Ms though because to many people would argue with me about having a swap file that's twice the amount of RAM on the box. well we have a box with 16G of ram you want a 32G swap file????????? If you were working on 32G of data in and out of swap you'd be hateing life, even on a fast scsi raid.

    --
    Paying taxes to buy civilization is like paying a hooker to buy love.
  62. Windows [2k, xp] virtual memory is not very smart by greendoggg · · Score: 2, Interesting

    I don't usually set out to bash windows, but the windows virtual memory subsystem is as dumb as a brick.

    At work I am blessed to have 1GB of ram, so I don't ever need to use any virtual memory. What I find really interesting is that windows is noticably more responsive when I turn off virtual memory entirely. Even though I'm never running out of memory, windows was always swapping things out that I needed soon when I had virtual memory enabled. And I'm talking about when I had 2/3 of my memory unused still (at least by applications, the disk cache could have potentially been using the rest). Just turning off virtual memory altogether made things much much more responsive/faster for me.

  63. Any web sites for Linux users? by Anonymous Coward · · Score: 0

    Any suggestions? I seem have stumbled on this Windows site by mistake. For years it seems this was a Linux site, but I must be mistaken. (It must have been datslosh.org, or something. Old age takes its toll on the memory, and causes the mind to play tricks on you. Strange that should happen though, since I've read this site nearly every day since it came online.) Mind you, now I realize that there are too many Linux sites on the web already, and some of them should probably switch to reporting on Windows just to balance things out. Maybe I should just switch to Windows and support this effort. Any comments? Suggestions? (BTW anyone know what Bill Gates had for breakfast?)

  64. 44 pages long, full of "sponsored links" by snorklewacker · · Score: 4, Insightful

    Putting http://text.burstnet.com/* into adblock makes for a slightly less annoying experience, but there's also the fact that it's 44 freaking pages long. Probably getting paid by the site hit or something.

    Do yourself a favor, give this content-lite article a miss. Make a small partition with ntfsresize, put a fixed pagefile on that partition alone. Works on every single version of windows and it's zero maintenance. Tah-dah.

    --
    I am no longer wasting my time with slashdot
    1. Re:44 pages long, full of "sponsored links" by Anonymous Coward · · Score: 1, Interesting

      Thank you! Finally someone said it. There's no "print" option that shows all pages at once, and there's no indication of how many pages are to come. This is by far the MOST ANNOYING article I've tried to read in a long time. Actually I gave up after about 5 pages (and seeing nothing technically interesting to speak of); I'm surprised you had the patience to determine that there are 44 pages. And pleased that you're warning the rest of us.

    2. Re:44 pages long, full of "sponsored links" by smoker2 · · Score: 1
      Make a small partition with ntfsresize, put a fixed pagefile on that partition alone. Works on every single version of windows and it's zero maintenance.

      Does it work on 98SE ?
    3. Re:44 pages long, full of "sponsored links" by snorklewacker · · Score: 1

      > Does it work on 98SE ?

      No, but qtparted will. Use it from the System Rescue CD (JFGI)

      --
      I am no longer wasting my time with slashdot
    4. Re:44 pages long, full of "sponsored links" by snorklewacker · · Score: 1

      > I'm surprised you had the patience to determine that there are 44 pages.

      Goodness no, I don't. There was a dropdown menu that lists all the pages, most of them repeating the same info for different OS versions. 44 of 'em, covered with green ad-linky goodness. I suppose going directly to the page makes it a little less of a chore, but it's still one of the worst designs I've ever seen. I normally have a policy of blocking only the most annoying ads and sponsored links weren't in that category ... until today.

      --
      I am no longer wasting my time with slashdot
  65. Help suppor the website! by alexandreracine · · Score: 2, Funny
    Help Support ARP!
    If you like this site and/or this article, please help support us by clicking on the IntelliTXT ads or any of the banners. Thanks!
    We sure helped them by /.ting the website :)
    --
    No sig for now.
  66. not so hard by ajrs · · Score: 1
    VM is easy:

    Paging is what my office looks like, with parts of differnt projects hanging around.

    Swaping is what my 'to read/reading' pile looks like, a book is in the pile or it isn't.

  67. MS invented everything by couch_warrior · · Score: 5, Interesting

    It is always amusing to me to read how M$ "invented" technologies that were in common use by other operating systems while Bill Gates was still wearing diapers. Both paging and swapping were used on IBM mainframes dating back to the mid 1960's. What windoze (and linux for that matter) could REALLY use is the ability to deterministically dedicate portions of system resources to particular processes.
    Back when a 1 MIP, 1MB machine cost $1M, operators became highly skilled at managing workloads. Today everyone just throws oodles of RAM and disk at servers and lets the chips fall where they may , so to speak. It wouldn't be a bad idea to actually put a little thought into matching workloads with machine resources, and pro-actively matching them up by deliberate choice(For example - our company is running a prime-time ad at 9pm that features our URL, maybe that's a good time to shut down the normal file backup that happens then). Chaos theory is not always a good load balancer. But what am I saying, that's as outrageous as asking kids to put their money in the bank instead of buying video games...

    --
    "Sic Semper Path of Least Resistance"
    1. Re:MS invented everything by ortholattice · · Score: 1

      What I hate is when a window takes close to a minute to settle into focus because some other processes are thrashing in the background. What I would like to see in Windows (and Linux - at least with Linux there's hope since you could do it yourself in principle:) is an option for the following behavior. Whenever you click on a window to bring it in focus, the OS should immediately place the highest possible priority on its underlying process, if necessary freezing everything else until the focused process is satisfied (with a small number of exceptions of things that might time out such as CDROM writing). If the focused process has anything in the disk queue, it should be moved to the front of the queue, and new disk requests from it always placed at the front of the queue. (Has anyone ever thought of that before? If not, this post serves as prior art so it can't be patented.) And so on with other resource requests. After all, the purpose of YOUR (desktop/nonserver) computer is to SERVE YOU. If this were done I bet the perceived performance improvement would be truly astonishing.

  68. Putting the page file on a RAM drive? by XxXoldsaltXxX · · Score: 0

    It said in section about optimizing: "Moving the paging file to a RAM drive" Isn't putting a page file on a ram drive kind of, well, counter-productive?

  69. Re:Best advise by Astrorunner · · Score: 0, Flamebait

    I realize that my posting could be construed that way, but what I'm really trying to drive at is that some people are stuck at stage 7 of the Evolution of a Linux User.

    These people can be, by far, the most annoying.

    Some people are just so blinded by their zealosness, that they end up annoying everyone that they meet with their "Bill Gates is the Anti-Christ" schlock. Regardless of the validity of the point, firing that off as a knee jerk reaction will quickly get you labeled as an ass hat in many people's books.

  70. I have a technical question. Kinda offtopic. by xutopia · · Score: 1

    I noticed that my swap was getting full even though I had ram available under Ubuntu. I tested "swapoff -a" then "swapon -a" and my ram got used up while my swap was empty. Anyone know of a better way to ask the kernel to use the ram instead of the disk? Or am I dumb to even try this in the first place?

    1. Re:I have a technical question. Kinda offtopic. by MobyTurbo · · Score: 1
      It's always better in Linux to enable swap even if you don't need it. Linux's memory management optimizes differently when it thinks the amount of memory you have available is limited to on-board RAM.

      Hard drive space is cheap enough, and the amount needed small enough, that it's better to operate with a swap file; 1.5 to 2 times the amount of RAM as a swap file seems to be the canonical rule of thumb.

    2. Re:I have a technical question. Kinda offtopic. by digitalhermit · · Score: 1

      Having the RAM used is fine. The Linux kernel will use all available memory for file buffers and cache but it's immediately available to applications that need it. This is better than having the memory sit around and doing nothing.

    3. Re:I have a technical question. Kinda offtopic. by B2382F29 · · Score: 1

      As another slashdotter pointed out, you could play around with /proc/sys/vm/swappiness

      It is set to 60, but you could decrease it like e.g.

      echo "20" > /proc/sys/vm/swappiness

      Another maybe promising setting might be

      /proc/sys/vm/laptop_mode
      --
      Move Sig. For great justice.
  71. Re:One of the first paragraphs made me stop readin by bobcat7677 · · Score: 1

    I love your sig man. That is one of the really memorable parts of the incredibles movie.

    Now to stray back on-topic for a moment...I have observbed the same thing. Stupid windows apps not starting because there is no virtual memory even though you have copious amounts of actual memory. Argh!

  72. Micrsoft terms? by Anonymous Coward · · Score: 0

    Nice article except that virtual memory was around since the late 70's and was neither invented nor termed by Microsoft. So really, as usual, Microsoft did "come up with" anything.

  73. Is it just me, or is this writer stupid? by Anonymous Coward · · Score: 0

    This is the worst lengthy discussion of the topic I've seen yet. Who posted this thing, what is their cut?

  74. Re:optimizing windows by George+Beech · · Score: 1

    Yes, but you see a slightly skeptical user would be alot harder to convince when you try to tell them that RMDIR stands for Reseat Memory/Directory with the /s = sequencially and the /q being quitely so that they are not bothered with silly questions every time the program runs into a file that it isn't sure of what to do with.

    Now RD is a much easier placy it obvously stands for Reorganize Disk, with the sequencially and quietly options set.

  75. Summerize. by Anonymous Coward · · Score: 0

    This artical is way too damn big for something like this.

    Here is mine;

    Step 1. Put pagefile on differant drive than your OS drive
    Step 2. Do stuff.

    The end.

  76. Slashnotted by Pretbek · · Score: 1

    Notice how this website with an article on the Windows paging file did not get Slashdotted. I wonder why...

  77. Re:swap file vs. paging file in Linux by Anonymous Coward · · Score: 0

    Depends on your application, I guess. If you have large files that you're accessing more frequently than some large program's memory, it seems the ram would be better spent caching pages of those large files. To quote you, if you were working on 32G of data-from-fiels in adn out of the filesystem you'd be hating life.

  78. linux "swap" by Anonymous Coward · · Score: 0

    Note that on the basis of this article, someone has told me that linux only swaps so it's crap. Now, he was obviously wrong, because linux "swap" is a paging system, not swapping, it's just named swap.

    But now we can expect countless jerks to jump to the same conclusion. Oops. Time to s/swap/page/g ?

  79. Re:corrupt by tomhudson · · Score: 4, Informative
    It seems like Linux needs a paging file instead of swap partitions to become more responsive and more ready for the desktop.
    Don't bother - the article is full of inaccuracies.

    For example, even under Windows 3.1, the swap file only swapped in chunks of 4/8k. It's just that, on machines that were memory-poor (like we all were way back when), most users had their boxes configured with a 3/1 ratio of swap to real ram, and most of their free real ram then ended up being used to manage the swap file. 2/1 was the sweet spot.

    The DOS Shell program, on the other hand, worked by swapping out whole processes, allowing DOS 5.0 and up to appear to multitask.

    Pick up a copy of any decent assembler manual for the 2/386 from the early '90s, look for the instructions for swapping pages into ram. It's a hardware function. On a page fault, the cpu then goes through a look-aside buffer (8k worth of pointers each, IIRC, local and global), and then you can map pages of ram in/out as required. Just don't triple-fault, as the cpu would then go out of "enhanced" mode and/or reboot.

    Must be a REALLY SLOW day for this to be "news".

  80. But by Duhavid · · Score: 1

    How does the ordinary load time compare to the load of this tool + the faster load time of the game?

    --
    emt 377 emt 4
  81. Prepaging? by Henk+Poley · · Score: 1

    To my taste Windows XP already prepages to much. It's not fun when your browser needs to swap back in when there is still 600MB RAM left of the 1 GB you have.. :-/

  82. All you need to know about virtual memory.... by mhotchin · · Score: 1
  83. Re:Best advise by Soporific · · Score: 1

    Maybe it does, but the parent poster has a point in that the MS-Linux card is played by the third post and that it just gets plain boring to see after the thousandth time. There isn't one subject on Slashdot that can manage to avoid it either apparently.

    ~S

  84. Who needs a page file by GAATTC · · Score: 4, Funny

    Who needs a page file when you have a 10.00 GHz AMD Athlon, a 2000 MB DIMM, and a 30000 GB IDE Hard Disk http://www.amazon.com/exec/obidos/tg/detail/-/B000 22ACYK I quote from a review: "I was a little skeptical at first on how this thing would perform. However, when I installed and run the Seti@home program it started instantly finding alien signals, which where corrected, cleaned up and translated. I am now listening and talking to the supreme galactic defense minister about Earths surrender. Apparently this computer is not only tapping into the sun for power but also into the mysterious dark energy and tearing the universe apart. Just comes to show how bugs always show up in technology when you least expect it."

    1. Re:Who needs a page file by bclark · · Score: 1

      Hah, you missed the best part. Click on the technical specs and you find out that it runs DOS.

  85. Re:swap file vs. paging file in Linux by ArsonSmith · · Score: 1

    Either way, buy more ram.

    --
    Paying taxes to buy civilization is like paying a hooker to buy love.
  86. Re:One of the first paragraphs made me stop readin by Foolhardy · · Score: 3, Informative
    In Windows, shared memory is done the same way that memory mapped files are. If you just want to share memory without mapping a file, you have to map a section of the page file. If there is no page file, this doesn't work. From CreateFileMapping:
    If hFile is INVALID_HANDLE_VALUE, the calling process must also specify a mapping object size in the dwMaximumSizeHigh and dwMaximumSizeLow parameters. In this case, CreateFileMapping creates a file mapping object of the specified size backed by the operating-system paging file rather than by a named file in the file system.
    Here's an example of creating shared memory between two processes using this method.

    I don't know why screen savers would stop working, but I bet the developers never planned for the creation of shared memory failing.
  87. Re:Windows [2k, xp] virtual memory is not very sma by serbanp · · Score: 1

    What do you actually do? I also have an office PC with 1GB of RAM and, right after booting up, the OS requests the creation of a pagefile.

    My gut feeling is that 1GB is plenty of memory for what I typically use this system for, yet I can't get past the Windows' whims.

    Thank you for any hints you may provide.

    Serban

  88. the GOOD thing about the article by justins · · Score: 1

    Based on the comments here, it sounded awfully stupid. When I went to RTFA, the site was too slow to load the entire page. But luckily, the answer to the immortal question "what kind of pot is that guy smoking?" was right at the top of the page.

    Sweet!

    --
    Now before I get modded down, I be to remind whoever might read this that what I am saying is FACT. - bogaboga
    1. Re:the GOOD thing about the article by Tumbleweed · · Score: 1

      FYI, you must not know much about the guy. He's got some _very_ informative articles on his site about optimizing the performance of machines, which he has spent an enormous amount of time on over the years. Show some respect.

    2. Re:the GOOD thing about the article by amliebsch · · Score: 1

      Advantage: File will be continuous. Disadvantage: Paritioning is less flexible; may prevent swap file from being located to the outermost tracks, where disk access is fastest.

      --
      If you don't know where you are going, you will wind up somewhere else.
    3. Re:the GOOD thing about the article by justins · · Score: 1

      Blow me.

      --
      Now before I get modded down, I be to remind whoever might read this that what I am saying is FACT. - bogaboga
  89. Mod parent up by Tyler+Durden · · Score: 1

    This is exactly right. Right after I read the first page I was thinking, "No Microsoft did not invent Virtual Memory and you're not clear on what Virtual Memory is in the first place."

    If the rest of the article is as inaccurate then we ain't missing much from the Slashdotting.

    --
    Happy people make bad consumers.
  90. Separate Partition? by localhost00 · · Score: 1

    I have been toying with the idea of putting the page file on a partition of its own. Anyone think this is a good idea?

    --

    Calling atheism and agnosticism a religion is like calling bald a hair color.

    1. Re:Separate Partition? by quarkscat · · Score: 1

      While using a separate partition for the pagefile
      comes under the heading of "good housekeeping",
      putting it on a separate disk (SCSI) or on a
      separate channel (IDE) would be far better.

      BTW, all that you read about MSFT's OS being smart
      enough to manage the pagefile itself is pure BS.
      The OS will, left on its own, create a very
      fragmented filesystem, both data files and page.

      I have found that forcing the creation of a single
      pagefile that is 1-1/2 to 2 times the size of
      physical memory works best. The caviat here is
      that you should have enough physical memory in
      your system to begin with -- pagefile is no proper
      substitute for adequate system RAM, ever. 512MB
      of RAM is an absolute MINIMUM for any of MSFT's
      OSes, from NT4 onward. MSFT's claim of 256MB
      "minimum" requirements is entirely bogus, unless
      the only things you run is the OS and the browser.

      Of course, YMMV, dependent upon the OS and the
      applications that you use.

  91. Microsoft SUCKS! Linux RULES!!! by rice_burners_suck · · Score: 1
    Here's what Microsoft should do: Use all of available RAM, except one byte, for operating system functions and for applications that Microsoft makes.

    That one byte that isn't used for Microsoft apps will be used to run all other applications. Those programs will continue to be written as if they have normal access to RAM, but Windows will operate them in the following manner: All of the memory of those applications will be stored on the hard drive in a format that is very slow to read and write. Each byte will be converted into a string, so a 127, for example, will turn into the string, "One hundred and twenty-seven." These will be stored with one string on a line. As the program executes, each individual byte of it will be swapped in from the disk, being interpreted from a string into a byte, to that one byte in memory, and then swapped back to the disk to make room for the next byte. Not only will each individual memory access become incredibly slow (hundreds of thousands of times slower than under normal execution), but it will also promise that the processor will waste nearly all of its time managing this mess:

    Time will be wasted converting bytes to and from strings.

    Each time the processor needs to access any byte of program code or data, it will trigger a page fault, which will have to be handled by Windows.

    32-bit data formats, such as integers, will have to be processed byte-by-byte.

    In fact, it would actually be too difficult to let the real processor in the machine handle all of this crap. For that, Microsoft will integrate Bochs into its code, and use Bochs to execute all non-Microsoft programs. Bochs will be reverse-optimized, of course, by inserting deliberate delays in various strategic places, making inner loops process too much junk unnecessarily, and, finally, by running Bochs itself in an interpreted environment, with the interpreter being written in Visual Basic 6, which Microsoft no longer supports. To make graphics work really, really, really slowly, all operations will be converted into a string of GetPixel, PutPixel calls to draw individual pixels.

    Microsoft will explain that all of this benefits the consumer and corporate customer because: By leveraging innovative technologies, content providers streamline compelling enterprise solutions. In the meantime, only programs made by Microsoft will execute quickly. Microsoft will advertise that all other software companies make slow software, and therefore that you should ONLY buy Microsoft software. And they'll tell you that Linux has a higher TCO, lower ROI, and you'll get sued for using it. Stupid PHBs will believe them, and it will come to pass.

    So it shall be written. So it shall be done.

  92. Here's what I did by steeef · · Score: 1
    Got the trial version of DisKeeper (which is probably worth a purchase anyway, as it seems to perform better than Windows' defragger). Alternately you can get something like PageDefrag for free. Both of these will defrag your paging file, but DisKeeper allows you to place it at the beginning of a partition, allowing for faster access.

    I first deleted all paging files and rebooted. This allowed me to start fresh. I followed these steps to setup my new paging file:
    • Figure out a permanent size for your paging file. I recommend having 2gigs of memory (RAM + paging) for Windows XP. I have 1 gig of RAM, so I figured 1024MB was good (as the article says, you should probably determine what your maximum load is and then choose a size). Allowing the paging file to grow and shrink will always introduce fragmentation.
    • If possible, put the paging file on a separate disk than the one Windows is installed on. This will reduce head movement on the system disk and decrease access time for the paging file.
    • If you're using DisKeeper, have it place the paging file at the beginning of the partition. Again, this should reduce access time.


    I followed the instructions in the XP Tweaking Companion guide. It's a nice all-around guide for optimizing XP.
    1. Re:Here's what I did by Anonymous Coward · · Score: 0

      Diskeeper worth buying? Heck no! Try O&O Degrag or Perfectdisk instead, you'll see how bad Diskeeper sucks.

  93. ntfs "overhead" may not exist by diegocgteleline.es · · Score: 1

    ...or at least, it does not exist in linux 2.6 today, so it may be the same in windows

    Yes, you read well. "swap files" are as fast as "swap partitions" under 2.6, altough not many people seems to have realized. I've not the link at the lkml messages from Andrew Morton explaining why at hand, but the "post halloween" 2.6 doc says it too. As I understand it, its "simple": Swap files bypass completely the filesystem layer in linux 2.6 so there is basically zero advantage in using partitions instead of files. Windows probably does the same, I guess, since it was designed from the start to have "swap files".

    You still face the defragmentation problem, but that's a minor issue - it's not impossible to create a contiguous file, in fact when you install a system most of the filesytem will be almost void and the swap file probably will be contiguous. I doubt you could measure any performance improvement in using swap partitions vs swap files these days.

    In short, unless you've very good reasons to use a partition, you probably should use files. Partitioning is usually the hardest problem for newbies when trying linux, and not having to use a partition for the swap can help.

  94. Re:swap file vs. paging file in Linux by Mr+Z · · Score: 1
    • Wash. "My paging file is too big!"
    • Rinse. "Buy more RAM, then."
    • Repeat. "Don't forget to set your page-file size to twice the amount of RAM you have..."
  95. Inaccuracy in this article by kuriharu · · Score: 0

    From the article:
    "...to create this pseudo-RAM or in Microsoft's terms - Virtual Memory"

    Didn't this term exist already? I think MacOS used it before Microsoft. Anybody know?

  96. None. by aetherspoon · · Score: 1

    At least none on this machine, running 1.0 GB of RAM and no pagefile. 'course, this machine is about as far from a typical windows machine as one can get while still having windows installed, but still.

    --
    --- Ãther SPOON!
    1. Re:None. by Anonymous Coward · · Score: 0

      From this I assume you're running XP. It does indeed have the option not to use a swapfile, but the interesting thing about that option is that it doesn't really work as you'd expect it to.

      For reasons that other posts have explained, the swap file is an essential part of the OS and it can't function without one. What happens when you select that "No Paging File" option is that windows creates the pagefile in RAM. Logically, it still exists - it has to because of the way windows handles its memory management. It's just a separate reserved area of memory rather than a file on disk.

    2. Re:None. by aetherspoon · · Score: 1

      Indeed you are correct, and other than a slight amount of overhead, there really isn't any difference in this.

      --
      --- Ãther SPOON!
  97. The author fundamentally doesn't understand... by bartash · · Score: 2, Informative

    Larry Osterman writes in his blog that the author fundamentally doesn't understand what he's writing about. Mr. Osterman has worked at Microsoft for 20 years. How old is the author of the article?

    --
    Read Epic the first RPG novel.
    1. Re:The author fundamentally doesn't understand... by Anonymous Coward · · Score: 0

      mod up parent

  98. Re:Windows [2k, xp] virtual memory is not very sma by RzUpAnmsCwrds · · Score: 1

    "At work I am blessed to have 1GB of ram, so I don't ever need to use any virtual memory."

    That's not true. Paging is a *good idea*, even when you have enough RAM.

    Now, if Windows is paging out things that you were using, it's a different situation. But this hasn't been my experience. I've found that Windows only pages much when I run memory-hungry games.

  99. Correction by TiggertheMad · · Score: 1

    Umm, the file is called /proc/sys/vm/swappiness; I didn't make it up.

    Oh well, in that case I take it all back. You aren't cool.

    --

    HA! I just wasted some of your bandwidth with a frivolous sig!
  100. Re:swap file vs. paging file in Linux by Anonymous Coward · · Score: 0

    I posted something similar when a discussion of the linux VM came up. Now days you don't really need twice as much swap as RAM unless you are very dificent in RAM. I mean in theory swap is supposed to offset a deficency in RAM so making a bigger swap for more RAM is sort of counter intuitive. About the only reason to make the swap that big is for a memory dump in the event of a system crash (or so I read once). I think most installers just default to 2x RAM because it's an easy calculation. For most systems I doubt you'd need more than 1-2Gb.

  101. ...just to confuse things a bit more by abrax5 · · Score: 3, Informative
    You could use SwapFS from: http://www.acc.umu.se/~bosse/

    Then you can put your windows pagefile into linux swap partitions. :-)

  102. Well, I have by gottabeme · · Score: 1

    It's

    I used to run Windows 2000. Athlon XP/1700+, 512MB RAM, 7200 RPM/8MB cache hard disks. Been using Firefox since 0.6. I'm almost convinced that Windows is programmed to swap it out ASAP and to take ALAP to swap it back in. I could minimize Firefox, restore Thunderbird, check a few RSS feeds or e-mails, then try to restore Firefox, and wait a long time, indeed sometimes 30 seconds, for it to be completely restored so that I could actually use it again.

    No, I had no spyware or viruses; I had Norton AntiVirus 2004 with Auto-Protect on, ran Ad-Aware and Spybot Search & Destroy regularly with updated definitions, and used IE never. I've been using Windows since 3.11, so I know my way around; it was a clean installation with no extra junk running in the background. The paging file was a fixed 1024 MB file on its own partition. The registry was defragged and compacted with RegClean and NTREGOPT. Yet even with 100 MB of free physical memory, Firefox would get swapped out and take a LONG TIME to swap back in. FOR NO REASON. While, on the same installation of Windows, IE would not get swapped out like that.

    Solution: a different OS. I'm now running Debian with 2.6.10 on the same hardware, using Firefox and Thunderbird as before, and things are 200% better.

    Windows: Just Say No.

    --
    "Those who consume the bulk of goods are those who make them. We must never forget this secret of our prosperity."
  103. UNIX had no virtual memory until late 1980s by dananderson · · Score: 2, Interesting

    System V UNIX had no virtual memory until the late 1980s. Sure, there were specialized versions, such as BSD with VM added on, but it wasn't in stock UNIX. It was around though, and was in IBM 360 and Multics (1960s).

  104. Offtopic? by Spy+der+Mann · · Score: 1

    Dude, your question alone is MUCH MORE on-topic than the article itself! Furthermore, it SHOULD BE submitted ("ask slashdot". Between the readers here i'm sure we could gather 10 times more information than what the article did using 10 times more words than necessary.

    I was reading til page 8 when i BEGAN to get to the interesting stuff. It just wasn't worth it.

  105. disable the page file by jilles · · Score: 2, Interesting

    If you do have the memory, disabling the page file is the best thing you can do performance wise. In theory this is a bad idea, in practice it works very well.

    I have 1GB of memory. This is more than adequate for browsing, games, development, photoshop etc. So, two years ago I disabled the page file after discovering that with 300MB in use, windows was still swapping like crazy (and yes I had all the popular registry hacks applied which should prevent that). So eventually I disabled the page file. The immediate result of doing this is that applications become much more responsive. Suddenly multitasking becomes easy and fast.

    Normally when you work with an application for a while, all other applications get swapped to disk. It doesn't matter that you have 700MB of unused, readily available ram. So when you try to alt tab to them, windows spends a couple of seconds moving stuff back into memory. This is very annoying and totally unnecessary. The problem only becomes worse if you start to run some memory intensive programs because windows will swap aggressively then.

    Disabling the page file fixes this problem. The only disadvantage of doing this is that when you need more than 1GB it isn't there. This is typically the point where things would get very slow anyway due to swapping. In any case, this doesn't happen very often and is easily resolved by closing some applications. All games are optimized to run well with 256-512 MB. Most games don't use more than that, even if it is available. Office applications and other desktop software rarely use more than 100MB. Photoshop can push the limits but unless you are doing some extreme high resolution photography stuff with it, you will not run into any problems with 1GB. It's actually quite hard to run out of memory. Most things that are infamous for memory usage like ms flight simulator, doom 3, photoshop, vmware, etc all run without problems and without swapping.

    If you think about it, swapping is a really lousy solution unless you expect to run out of memory. Disk is many times slower than ram. The reason that you open programs is that you want them ready for action. Swapping them to disk is therefore undesirable. The only reason it would be desirable is if the total amount of memory used by all of your running programs is larger than the amount of memory you have. So if you have 256 MB, swap files are a nice poormans solution to the problem that you don't have enough memory. If you have 1GB you shouldn't have that problem (and if you do, buy another GB).

    --

    Jilles
    1. Re:disable the page file by Anonymous Coward · · Score: 0

      This is a great idea, but how do you do this in, say, Windows 2000?

    2. Re:disable the page file by pe1chl · · Score: 2, Interesting

      If you think about it, swapping is a really lousy solution unless you expect to run out of memory. Disk is many times slower than ram. The reason that you open programs is that you want them ready for action. Swapping them to disk is therefore undesirable.

      This is your situation, your opinion, and the base of your success.
      Other may have different situations and swapping may be better for them. On my Linux box I typically have 160-200 processes running, and I don't need them to be all ready for action. There is only a subset that needs to be ready for action, and I want those to be in RAM, together with the cached disk data that they access.
      Other programs, that are waiting for something that is unlikely to happen or are sleeping for some time (e.g. to check for OS updates once a day) I don't need to have in RAM.

      It has been shown many times that having some swapspace is better for performance in typical systems. Maybe not in your system.

    3. Re:disable the page file by jilles · · Score: 1

      That's the theory and maybe it really works on linux. The practice on windows is that if you have a swapfile, windows uses it agressively no matter how much memory you have. That means that for most common uses of windows it is better to turn off the swapfile if you have enough memory because when the swapfile is used, everything (including the application you are using) slows down.

      That way windows won't waste your time by pointlessly moving things to and from disk when you really want to get some work done. Diskcache is indeed nice to have. Windows uses all the memory you don't use for that (typically around 400MB in my case).

      Of course a typical system doesn't have enough memory. Systems now ship with 256 or 512 MB at most. If you don't upgrade that, you will need a swapfile. If you do upgrade to 1 or even 2GB you take away most, if not all, of the need to have a swapfile. Basically all consumer software is designed to run well on a typical pc. This means that most applications on a typical system will never use more than 100-200 MB. Most advice on swapfile size recommends to use twice the amount of available ram. That's probably good advice if you have 256MB . If you put 1GB in this typical PC you have more ram than you would have had swap space and ram combined on the typical pc.

      --

      Jilles
    4. Re:disable the page file by pe1chl · · Score: 1

      Again, it depends. My system has 1GB. I have had this system (with this amount of memory) for 1.5 years and when it was new I of course believed that 1GB would be more than I would ever need.

      However, there currently is about 450MB out on the swapspace (and 280 MB is used as diskcache).

      Not having swap would mean a shortage of 170MB and not having diskcache. Of course that would not mean the system would not run, but it would run slower. Not all data that is not in RAM needs to be swapped out (e.g. pages from executable files are just reloaded when they are needed, not swapped out), so the system will look there to gain some space instead of swapping out data.

      To run without swap I would need more RAM.
      I know the effect of the system being slow while loading things from disk, and of course it can be cured when you throw infinite amounts of RAM at it, but there is an optimum of performance relative to price, and it is not at the point where you use no swap at all.

      In Linux, where developers and users can discuss the matter in the open and there is no secrecy around how it really works and why it is done that way, there is always ongoing debate about how the virtual memory/demand paging system should work to perform optimally.
      Allmost all the time, the outcome is that what works fine for one application, is sub-optimal for another.

      Therefore there are some parameters that can be tuned (like the "swapiness", which controls the issue you mention).

  106. Re:corrupt by bheading · · Score: 1

    I agree with you, I can't see how anyone would claim that forcing the page swapper to pass through the filesystem layer, rather than writing the pages directly at the device level, is somehow better.

    The Windows method of going through the filesystem is going to be pretty inefficient, especially given that we're talking about NTFS here.

  107. Re:One of the first paragraphs made me stop readin by Anonymous Coward · · Score: 0

    At least at some time in w2k direct sound also stopped working if you disabled virtual memory. Not sure if this is still the case with WXP / W2K+SP4

  108. Obilgitory Bill Hicks Quote by V4Victory · · Score: 1

    Define 'unborn child.' Most Republicans use this term to refer even to fetuses of any stage.

    "Your not a human until your in my phonebook"

  109. Re:corrupt by Anonymous Coward · · Score: 0

    Shouldn't one always read EVERYTHING that the writer has to say before giving out comments?

    Plus, at least he tried and write the article. Not accurate? SO what, help the author correct it to be so and help save the world for further condemnation with wrong information!

    I just keep seeing bashing saying I'm right and you're wrong but no further actions to help right the wrong.... is that smart? I think not.

  110. Holy Crap! by Anonymous Coward · · Score: 0

    This article was first written in 1999.

  111. Wrong by Anonymous Coward · · Score: 0

    I tried this on a machine with no hard drive, and I still got 40m swapped. Bug?

  112. Agreed. by Anonymous Coward · · Score: 0

    Agreed.

  113. How do you page? by fostware · · Score: 1

    All my machines have 3 partitions.
    C: SYSTEM - NTFS 30G - Programs and Windows
    D: SWAP - FAT32 2.5xRAM - Swap File partition.
    E: STORAGE - NTFS Rest of drive - Data and stuff

    This way NTFS doesn't break up the swapfile by putting MFTs every so often, and the access times between data and programs is kept low by being inbetween the two file partitions.
    Easy enough that even new plebs can see how it averages out the distance needed to seek between the two locations of file.

    --
    "We know what happens to people who stay in the middle of the road. They get run over." - Aneurin Bevan
  114. I agree by sp0rk173 · · Score: 1

    I agree

  115. MOD PARENT UP by r6144 · · Score: 1

    Exactly because of the reason mentioned by the parent, I have doubt whether defragging the pagefile really has such a large performance gain. Anyway, on linux the swapfile is not fragmented, but the drive still seeks like crazy during swapping. More explanation is invited.

  116. Re:Best advise by Anonymous Coward · · Score: 0

    But, on the other hand, if Microsoft hadn't spent two decades playing dirty tricks on their competition and screwing over their customers, people wouldn't feel such animosity towards them. It wasn't as if the majority of the computer-using world just woke up one day and said "you know, I don't really like Microsoft all that much". Microsoft made this happen. Now, they catch a lot of (undeserved) flack as people's irritation with other things they've done gets burned off on the wrong issues, but Microsoft is no innocent victim.

  117. Disable page file in Win2000? by kruczkowski · · Score: 1

    Does anyone know how to disable the page file in Win 2000? I know how to do it in XP, but it seams that 2k must run with a page file. Just wondering is anyone knew of a registy key or something that will let me turn it off.

    --
    hmm... for fun I enjoy launching DDoS attacks against 127.87.42.5
  118. Probably a nice article but... by NoMercy · · Score: 1

    I truely hate these popup links in text, I move my pointer over the text to aid reading, and wham I can't read cos some stupid script has poped up a sponsored link.

    Just voicing my objection to this all to common practice.

  119. Does he really say that? by DragonHawk · · Score: 1

    I went into the article looking for that kind of thing, and like you, I thought I had found it. But you'll note that, technically speaking, the author does not say that Microsoft invented paging -- just that Windows was designed to use it. Likewise, he says that Microsoft's term is "Virtual Memory". He doesn't say that is the originally correct term.

    Whether that means the author knows what he is talking about, or if he was just lucky, I don't know.

    --

    dragonhawk@iname.microsoft.com
    I do not like Microsoft. Remove them from my email address.
  120. Pointless pedantry by DragonHawk · · Score: 1

    "Windows 3.0 had virtual memory support in 1990 ... so did every server OS at the time."

    NetWare didn't.

    I know, nobody cares. But hey, it's Slashdot. :)

    --

    dragonhawk@iname.microsoft.com
    I do not like Microsoft. Remove them from my email address.
  121. Memory terms by DragonHawk · · Score: 1

    My understanding:

    Strictly speaking, "virtual memory" means the addresses seen by the running code are translated to physical addresses (by the MMU). Thus, the code sees virtual addresses.

    "Memory protection" describes the feature where the running code is prevented from accessing certain parts of memory, for security/stability reasons. This is called "memory segmentation" on some architectures, which is where the Unix phrase "segmentation violation" (SIGSEGV, or "Segmentation fault) comes from.

    I know there are systems which implemented protection without virtualization, and I suppose it's possible (if silly) for the reverse to be true, too. So, while the two are closely related, and both are implemented by the hardware MMU (Memory Management Unit), they are not the same.

    Note that the above kind of "segment" has nothing to do with the 8086's 64 KB segments. The 8086 supported a 1 MB address space, but a 16-bit address word was used for most things. I assume that was due to price/performance limitations imposed by the technology of the day, but I don't know.

    The 80286 did support memory protection, but not a flat memory model. You still had to worry about segments, although the segments could be larger. (I want to say 16 MB, but that might have been the total address space -- it's been awhile.) I don't remember if the 80286 supported virtualization.

    "Swapping" means taking an entire process's memory space and writing it out to disk. This came first, because it can be implemented without an MMU.

    "Paging" means taking chunks of memory not recently used and writing them to disk. So-called because virtual memory manages memory in chunks called "pages". This needs an MMU, because the process keeps running even with big chunks missing. When a process tries to access a page that is out-of-core, it causes the MMU to issue a page fault, which the OS traps. The OS then brings the page in from disk and resumes the process.

    --

    dragonhawk@iname.microsoft.com
    I do not like Microsoft. Remove them from my email address.
    1. Re:Memory terms by Peaker · · Score: 1

      My understanding:

      Strictly speaking, "virtual memory" means the addresses seen by the running code are translated to physical addresses (by the MMU). Thus, the code sees virtual addresses.

      "Memory protection" describes the feature where the running code is prevented from accessing certain parts of memory, for security/stability reasons. This is called "memory segmentation" on some architectures, which is where the Unix phrase "segmentation violation" (SIGSEGV, or "Segmentation fault) comes from.


      Well I have always seen "virtual memory" as the feature implemented by page tables, but perhaps my terminology is not accurate and it only refers to one aspect/feature of the page tables.
      "segmentation", at least in Intel terms, means a segment of code or data and a set of protection/attributes. It can indeed be used to implement protection, but most modern OS's that run on Intel simply use 0..4GB segments to map the entire memory (code/data ring0, code/data ring3) and forget that they exist (for the most part).

      Protection in modern OS's usually uses protection bits in the same page tables that are responsible for the translation of virtual addresses to physical addresses. I have not heard this called "segmentation" before, and it sure isn't in Intel terms, but perhaps it is in old Unix jargon. Surely it makes "Segmentation fault" make more sense as a result of page faults :-)

      I know there are systems which implemented protection without virtualization, and I suppose it's possible (if silly) for the reverse to be true, too. So, while the two are closely related, and both are implemented by the hardware MMU (Memory Management Unit), they are not the same.

      Again, it may be an inaccuracy on my part to include protection as a "virtual memory" feature. In any case, I am quite certain that demand-loading is indeed part of that feature in all common terminologies. However, a discussion that revolves around terminology will soon find me out of it :)

      Note that the above kind of "segment" has nothing to do with the 8086's 64 KB segments. The 8086 supported a 1 MB address space, but a 16-bit address word was used for most things. I assume that was due to price/performance limitations imposed by the technology of the day, but I don't know.

      Yeah, the 8086 had a silly (segment<<4 + offset) memory scheme, that allowed for just a bit more than 1MB mapping (64K-16 bytes to be exact :-) addressing via two 16 bit registers.

      The 80286 did support memory protection, but not a flat memory model. You still had to worry about segments, although the segments could be larger. (I want to say 16 MB, but that might have been the total address space -- it's been awhile.) I don't remember if the 80286 supported virtualization.

      The segments had a 24 bit base and a 16-bit limit, so the segments were limited to 64K in size (as the 286 offsets were limited to 16 bits it made no sense to allow larger segments) but could be mapped to anywhere within the 16MB of memory space.

      "Swapping" means taking an entire process's memory space and writing it out to disk. This came first, because it can be implemented without an MMU.

      More importantly it was possible with 286's architecture. Not sure it actually came first on *nix architectures though.

      "Paging" means taking chunks of memory not recently used and writing them to disk. So-called because virtual memory manages memory in chunks called "pages". This needs an MMU, because the process keeps running even with big chunks missing. When a process tries to access a page that is out-of-core, it causes the MMU to issue a page fault, which the OS traps. The OS then brings the page in from disk and resumes the process.

      This is accurate.

  122. Re:Best advise by Anonymous Coward · · Score: 0
    It doesn't piss us off nearly as much as Linux fans get when I say "LINE-icks".
    I still say line-ucks. Catch a lot of flak for it, too. I don't care how they pronounce it in Finland. :P