CheckEmoji Community · the emoji forum
🏠 Home 🆕 What's new ❓ Unanswered 🔥 Popular 📡 RSS Members 👥 0 online log in · register
Home › IT › Software › How to optimize Windows XP pagefile settings

How to optimize Windows XP pagefile settings

Started by Lawrence Miller4 · · 👁 6 views · 76 replies

📡 Subscribe to replies

Participants Lawrence Miller4Angela RobertsRichard Howard2Timothy Morgan38neonhawk53Bryan Sanchez86frozenheron25vividstag31slycrane94Thomas Hughes16rowdytrucker27John Palmer4amberorca192Michelle Alvarez8
vividstag31 vividstag31 Member
12 messages
joined Jun 2005
#41 ·
The first sentence is fine enough.
The Pagefile CANNOT BE FRAGMENTED!!! I have no idea where you even got that notion. I’ve heard that exact claim a few times now. Even a defragmentation tool won't touch that file at all.
Because we are dealing with two separate drives, I actually find this slower than using just one. Why would you assume it should be faster? And if we are talking about two partitions on the same physical drive, there is absolutely no theory where that becomes faster. With a physically different drive, you might see a tiny speed boost simply because the head doesn't have to constantly jump between data and the Pagefile, but the difference is so negligible it isn't worth the effort. Especially since, looking at this thread, you have zero operational control over how stupid Windows handles that Pagefile anyway.
The only solution involving a Pagefile on a RAM disk makes any sense if you want to speed things up, but again, if Windows were actually efficient, it would have used that extra RAM to create its own RAM disk better than we can. Of course, it works, but since it doesn't, FOR CRYING OUT LOUD!

By the way, since we are touching on fragmentation, all these past defrag programs are like those engine oil additives that claim to improve fuel economy. A lot of noise for nothing. Why? Because while things *should* run faster after defragmenting, it only works in theory. The only real reason to defragment is so that if a drive failure occurs, you can more easily read the clusters and recover data. Otherwise, there is no long-term benefit. If you use your computer every single day, you could technically defrag it daily to keep it "fast," but if you rarely use it, then defragging is clearly unnecessary.

FOR CRYING OUT LOUD!
rowdytrucker27 rowdytrucker27 Member
10 messages
joined Feb 2004
#42 ·
vividstag31 said:The first sentence is totally fine, I guess!
You seriously cannot defragment the Pagefile!!! I mean, where on earth did that idea even come from? I feel like I've heard people claiming that way too many times now. It’s just... it isn't a thing. Even when you run a standard defrag tool, it won't even touch that file at all!

Sorry, you're just talking nonsense... I mean, seriously!
Oh man, it can definitely fragment... honestly, the Pagefile is so incredibly fragmented right now that it’s just a total nightmare! I mean, seriously, it's kind of a mess!
So, looking at how Windows handles it—it’s kind of like how a database uses a TABLESPACE, right? It’s basically just doing its own thing. Because of that, the file is called hyberfil.sys. And man, it takes up a massive amount of space! Since it’s a core system file that's constantly being used, it stays totally unmovable... which is probably why Windows won't let you touch it. I guess that's just how it works!

So, I was thinking... there are actually programs out there (well, I think they exist, maybe?) that can help you deal with this whole mess! I mean, honestly, if you're running into those annoying errors, there’s gotta be some software or a utility tool somewhere in the US that could fix things up, right? I guess it might be worth looking into! Even the freeware! Wait, what exactly are they even doing there...? I mean, seriously... maybe I'm just overthinking it, but it feels like they're just... I don't know! It's so weird!


I mean, just because you're messing around with two different drives, I honestly feel like that’s gonna be slower than just sticking to one. I don't know, why would anyone think that's actually faster? And man, if we're talking about two separate partitions on the exact same Hard Drive... there is just no way that's gonna speed things up. It just doesn't make sense!

Ugh, here we go again... just another silly little thing...
Take a look at that Hard Drive structure... like, how many heads are we talking about here? And what about the cylinders? Honestly, I think you kind of answered your own question in the next little snippet you posted!


So, I was thinking... if you use a totally different physical drive, you might see a tiny bit of a speed boost just because the read/write head doesn't have to constantly jump back and forth to reach the Pagefile. It's like, less travel time, right? But honestly, I guess the difference would be so incredibly small that it probably isn't even worth the effort. Maybe it helps a little, but I doubt you'd actually notice anything!

Ugh, just more nonsense... (well, except for that one little point about how you don't physically have to keep moving the read head back and forth over the data and the Pagefile, I guess!)

Oh man, there is such a massive difference! I mean, seriously, we're talking about the time it takes for the CPU to get its act together, and that happens in mere milliseconds... So if you look at something like RAM response speeds, which are measured in microseconds—or even less than that—then compared to that, a millisecond feels like an absolute eternity! It's just wild when you think about it!



And especially after seeing everything in this thread... man, it just goes to show you that you basically have zero actual control over how stupid Windows handles that Pagefile. It’s like, you try to manage it, but then—nope! No real say at all, I guess. Just totally out of your hands.

I mean, I guess there’s really nothing for a user to mess around with when it comes to the Pagefile. That's some deep-level kernel stuff, you know? Like, that's way out of our hands!


I mean, I guess that whole idea of putting the Pagefile on a RAM disk might actually speed things up a little bit, but then again... if Windows were actually efficient, maybe you wouldn't even need all that extra RAM just to set up a RAM disk in the first place! It’s like, why bother? If the OS was smart, it would just use that memory better on its own. But hey, sure, it works! It's fine! Just... ugh, don't even get me started on how much FJBG is!

The first part is just total nonsense. But that second bit? That's something else entirely! 👍

Wait, why though? Putting the Pagefile in the RAM? I mean, since stupid Windows is always trying to hog as much free RAM as possible while simultaneously cramming way too many things into it at once... wouldn't that mean if you try to shove a 300 MB "virtual" Pagefile into those last bits of free RAM, Windows would just freak out and try to free up even more RAM to make room, which would then force it to increase the Pagefile even more? It feels like it could just go on forever... like an endless loop or something! I guess it might just crash everything, maybe?

I mean, we all know win is basically trash anyway...


Anyway, since we're on the topic of fragmentation, I feel like all those defrag programs are kind of like those fuel additives people buy for their cars, you know? Like they claim it improves gas mileage or whatever. It’s just a ton of hype. Why? Because even though things *should* theoretically run faster after a defrag, it rarely feels like much of a difference in real life. I guess the only real reason to bother is if you have a total system crash and need to scrape data off clusters more easily. Other than that, there isn't really a long-term benefit. If you're on your PC every single day, maybe you could defrag daily just to keep it "snappy," I suppose? But if you barely use it, then defragging probably isn't even necessary.

Who cares!

And that's still nonsense...

The thing is, even when Windows is idling, it's always doing something in the background, which means no matter how much you use it, FRAGMENTATION IS INEVITABLE!

Even just a little bit of fragmentation can tank your performance once you install something big, like a huge AAA game. After that, defragging is (almost) useless because part of the data gets "stuck" in those spots that were only slightly defragmented.

My advice? Defrag BEFORE and AFTER any decent-sized installation, and definitely AFTER an uninstallation.

Why did I say you're talking nonsense?
Well, look, if you had posted this as a question—like, "hey, I'm curious about this"—believe me, I would've done my absolute best to explain it all to you! But since you've been rambling around the forum lately, tossing out "wisdom" like it's gospel and trying to pass it off as fact, it's just getting a little exhausting...

Don't get mad at me, I'm really not trying to be rude, but you're saying stuff that doesn't have any basis in reality, and I worry someone might actually take you seriously. 😁

There's no shame in not knowing something... 🙂

whatever
rowdytrucker27😉

ps
(if I happened to write something wrong, go ahead and tear me apart, the FBI is watching 😁 )
vividstag31 vividstag31 Member
12 messages
joined Jun 2005
#43 ·
Oof.

I’m sorry, but you’re talking nonsense.
It can fragment. In fact, my Pagefile is so badly fragmented right now that it’s honestly a disaster.
Since Windows treats it like a database TABLESPACE, its name is actually hyberfil.sys. It hogs a massive amount of space and functions as a core system file that’s constantly in use. That's exactly why it's unmovable—Windows simply won't touch it.

I never actually claimed that the Pagefile isn't fragmented internally. What I said was that the Pagefile CANNOT be fragmented on the specific drive where it's located. I only pointed that out because I've seen several comments suggesting it's a bad idea to keep the Pagefile on the same drive or partition if you want your disk defragmentation to run faster.

And here's another ridiculous one...
Take a look at that Hard Drive structure... how many heads does it have? How many cylinders? You actually partially answered your own question in the next snippet.

Look, my friend, I know exactly what a hard drive can and cannot do. For starters, you seem to be under the impression that a hard drive actually has physical cylinders. It doesn't. A hard drive consists of platters and heads; those cylinders are purely virtual constructs. Since that seems to be news to you, let me clear up another thing: you can't move each head individually. They all move in unison. That is precisely why I argued that placing the Pagefile on a different partition of the same drive won't give you a speed boost. Theoretically, it’s impossible.

The difference is massive. We’re talking about how much time a CPU needs to get its act together—and that happens in milliseconds. If your RAM response time is measured in microseconds (or even less), then compared to that, we're looking at an absolute eternity.

I don't follow. I never claimed that anything would run faster off a Hard Drive than from RAM.

Why on earth would anyone do that? Putting the Pagefile in the RAM? Since Windows is always trying to juggle having maximum free RAM while simultaneously cramming as much data into it as possible, you’d end up in a loop. You shove 300 MB of "virtual" Pagefile into those precious remaining megabytes of free RAM, then Windows tries to clear out more space by expanding the Pagefile even further. It’s an endless, ridiculous cycle.

Come on, you totally ripped that straight from my previous post! Admit it. I mean, I agree with what you wrote, but Eustachius claims his system runs faster when he moves the Pagefile to a RAM disk. What’s your take on that? For God's sake.

And once again, pure nonsense.

The fact remains that even when you aren't doing anything, Windows is always busy running processes in the background. This means that regardless of how often you actually use the machine, fragmentation is absolutely inevitable.

Even minimal fragmentation can tank your performance once you install something heavy, like a major AAA game. By that point, running a defrag is almost useless because those files end up tucked away in the gaps left behind by that initial, incomplete optimization.

Pro tip: run a defrag both before and after any major installation, and make sure you definitely do it again once you've uninstalled the software.

I wouldn't go so far as to call this stupid, per se; let's just call it a topic worth debating. Of course, defragmentation isn't useless, but you really shouldn't expect miracles from it. First off, it takes forever. Secondly, when you weigh the massive amount of time spent against the actual speed boost you get, the math just doesn't add up. If we’re being pedantic about it, you’d practically need to run a defrag every single time you download something from the web, since old Internet Explorer used to clutter everything up like there was no tomorrow. Ultimately, it's less about the process being "dumb" and more about having the wrong approach to the problem. 👍
I generally advise against recommending defragging to users. If you lose power mid-process, things can go south very quickly. Any perceived speed boost isn't worth that kind of risk. Besides, honestly, defragging hasn't actually sped up a single system since the old DOS days, let alone modern ones. Most performance issues are better solved by simply using a high-quality Hard Drive with a larger cache.

Hopefully, that clears up why I don't usually frame my inquiries as "I'm wondering about..."

Best regards!
amberorca192 amberorca192 Active Member
118 messages
joined Oct 2005
#44 ·
vividstag31 said:I never actually said the Pagefile can't be fragmented internally. What I meant was that the Pagefile CANNOT be fragmented on the drive where it’s located. I only brought that up because I've seen plenty of comments claiming you shouldn't put the Pagefile on the same drive/partition if you want faster disk defragmentation.

The Pagefile CAN be defragmented. If you want to rely on garbage tools like the built-in Windows defragmenter, that's on you, but don't act like an expert on things you clearly don't understand.
vividstag31 said:Look, buddy, I know exactly what a Hard Drive can and can't do. It seems like you don't even realize that a Hard Drive doesn't actually have physical cylinders. It just has heads and platters; those cylinders are purely virtual. Since you don't get that, you also don't realize that a Hard Drive can't move each head individually—they all move together at once. That's why I said it's theoretically impossible for a system to be faster if the Pagefile is sitting on a different partition of the same drive.

Here's a
gold medal 👍 for discovering water.🙄
vividstag31 vividstag31 Member
12 messages
joined Jun 2005
#45 ·
Listen up, captains, go read my response!

And while we're on the subject, give me your take on this: do you think performance takes a hit if the Pagefile is sitting on a different partition, or am I just overthinking it?
rowdytrucker27 rowdytrucker27 Member
10 messages
joined Feb 2004
#46 ·
I was just thinking about how you can compare speed differences by looking at things like RAM versus a Hard Drive.

It’s kind of easier to wrap your head around those massive speed gaps and why performance tanks when the drive head has to scramble to read or write data.

Ice cream example:

The time it takes for the drive head to jump from point A to point B on a disk is measured in milliseconds.

And yeah, I know, milliseconds sound fast, but when you actually look at how fast data moves between the RAM and the CPU, it feels like an absolute eternity! It’s pretty much common knowledge that a Hard Drive is a huge bottleneck for data transfer, and honestly, fragmentation and the Pagefile just make that bottleneck even tighter.

Plus, the Pagefile can get fragmented just like any other file on the drive.

When you're installing stuff, depending on whether Windows decides to be nice to you that day... it might (and let's face it, usually does) get stuck between all those other fragments.

That’s why people always suggest turning off System Restore first (since that’s also unmovable), moving the Pagefile to a different partition, running a defrag, then putting the Pagefile back, and finally turning System Restore back on.

Also, I hate to break it to you, but I didn't copy anything from you!

The only little slip-up I made was the name of the file... I mean, the actual name is pagefile.sys. I accidentally wrote hyberfile.sys up there, which is actually for hibernation. But, I guess since hibernation is basically just dumping RAM onto the Hard Drive, the logic is pretty much the same anyway.

So, in other words—whether you like it or not—you aren't quite right when it comes to Windows and virtual memory...

oh well, whatever!
rowdytrucker27😉
vividstag31 vividstag31 Member
12 messages
joined Jun 2005
#47 ·
amberorca192 said:The Pagefile CAN be defragmented. If you insist on using junk (like the built-in Windows defragmenter) to do the job, that’s on you. Just don't claim something is impossible when you clearly don't understand how it works.

THE PAGEFILE CAN BE FRAGMENTED OR DEFRAGMENTED, BUT ONLY WITHIN ITSELF.

OVER&OUT
rowdytrucker27 rowdytrucker27 Member
10 messages
joined Feb 2004
#48 ·
vividstag31 said:THE PAGEFILE CAN BE FRAGMENTED OR DEFRAGMENTED, BUT ONLY WITHIN ITSELF.

OVER&OUT

Look, you can type in all caps, go bold, throw some colors in there, but that still doesn't make you right....

The pagefile.sys can get fragmented just like any other file Windows touches....

Gosh, I don't know
rowdytrucker27😉
vividstag31 vividstag31 Member
12 messages
joined Jun 2005
#49 ·
Let me try this approach instead. Since when has it been like this?
amberorca192 amberorca192 Active Member
118 messages
joined Oct 2005
#50 ·
rowdytrucker27 said:You can type in all caps, use bold, or change the font color for all I care, but that doesn't make you right....

The pagefile.sys can get fragmented just like any other file Windows touches....

Spot on.

My Pagefile isn't just on a different partition; it's sitting on an entirely separate drive.
I don't see how moving the Pagefile to another partition on the exact same drive would actually help performance. Why bother?
Performance shifts usually come down to whether the Pagefile is sitting near the center or the outer edge of the disk platter.
vividstag31 vividstag31 Member
12 messages
joined Jun 2005
#51 ·
Let’s at least find some common ground here. Are you actually suggesting that putting the Pagefile on a separate partition of the same Hard Drive is somehow worse than keeping it on the same one? Just making sure I follow your logic.
rowdytrucker27 rowdytrucker27 Member
10 messages
joined Feb 2004
#52 ·
Just an example here:

Right now, my SWAP is sitting on its own separate 2GB partition
My Pagefile is about 1.8 GB (since I only have 1 GB of RAM)

And there’s absolutely nothing on that partition except for pagfile.sys, system volume info, and that recycle bin idiocy.

But okay, check this out! Windows actually managed to on a totally empty drive SPLIT the pagefilesys into 2 (as in, two!) different pieces!!!! 😲

(I checked this using the standard Windows defragmenter and Sysinternals' "system file defragmenter")

So here's the log:

Pagefile fragmentation
Pagefile size = 1 800 MB
Total fragments = 2

WTF???

Who even cares, honestly
rowdytrucker27😉
vividstag31 vividstag31 Member
12 messages
joined Jun 2005
#53 ·
And which partition type are we talking about here? FAT32 or NTFS?

Also, did you set the size manually?
rowdytrucker27 rowdytrucker27 Member
10 messages
joined Feb 2004
#54 ·
vividstag31 said:Well, at least we can agree on something! So, just so I’m following along here... you think putting the page file on a different partition of the same drive is actually worse than just keeping it on the same one? Just making sure I've got this straight.

The whole point is that the absolute best way to go—like, the most efficient setup—is to put the page file on a separate partition where the OS isn't sitting. Doesn't matter which one, really. But having its own space helps a ton with defragmentation.

If you want the perfect setup, though? Put that page file on a totally different /physical/ drive.

And honestly, that's what we've all been talking about this entire time! Everyone except you, apparently!

Whatever, man.
rowdytrucker27😉
rowdytrucker27 rowdytrucker27 Member
10 messages
joined Feb 2004
#55 ·
vividstag31 said:But which partition are we talking about here? Is it FAT32 or NTFS?

Well, since I'm running a multi-boot setup, I went with FAT32. Why? Just so I can set up all my other operating systems to use the exact SAME partition for swap. See, if you use NTFS, those NTFS permissions get locked onto the pagefile.sys by whichever OS grabs the partition first, and then the second one can't overwrite it. With FAT32, you don't have to deal with any of those annoying file permission headaches...

I actually set mine myself. I used a fixed value, so the minimum and maximum are basically identical.

Whatever, man.
rowdytrucker27😉
amberorca192 amberorca192 Active Member
118 messages
joined Oct 2005
#56 ·
You get to decide how big it should be.
It’s better if you keep that page file size constant.
Say, let's set both the min and max to 768 instead of having them at 384 and 768.
It just runs smoother that way.
Like I mentioned before, and rowdytrucker27 pointed out too, you're better off putting the page file on a separate drive.👍
vividstag31 vividstag31 Member
12 messages
joined Jun 2005
#57 ·
I’m looking at my three machines sitting right here next to me, and not a single one has a swap partition set up. They're just running in clusters. We're talking Windows 98 here!

Even this laptop running XP is all one single partition. It's got 1GB of space on a 20GB drive and 512MB of RAM!

Well, damn. Now I’m just completely lost.

Mind you, I was the one who defined them myself.
rowdytrucker27 rowdytrucker27 Member
10 messages
joined Feb 2004
#58 ·
Don't go getting mad at me now (I told you right away! 😉 )

I mean, you're lucky if everything is still intact... but honestly, everything we were just talking about still applies. Those are just facts, and what happened to you is just plain weird 😁

See, any Windows user knows that if Windows is actually behaving the way it's supposed to, then something is definitely wrong 😁

whatever
rowdytrucker27😉
amberorca192 amberorca192 Active Member
118 messages
joined Oct 2005
#59 ·
If I remember correctly, Windows 98 actually had a more intelligent defragmenter than 2000 or XP. Wasn't that the case?🤔
vividstag31 vividstag31 Member
12 messages
joined Jun 2005
#60 ·
No need for all that anger!

The worst part is, I don't recall ever actually seeing a fragmented swap file. Not since they first introduced them back in the Windows 3.1 days.

And as for those cylinders on a Hard Disk Drive... 👍 😁 😁 😁

You must log in or register to reply here.

Log in Register

🔗 Similar threads