Tune-up your PC

A forum for computer hardware and software issues
Post Reply
dredfox
Retired Admin
Retired Admin
Posts: 1535
Joined: Sun Dec 30, 2007 10:05 pm

Games Played

Ville Awards

dredfox.TVR’s avatar
Loading…

Tune-up your PC

Post by dredfox » Wed Apr 09, 2008 3:56 am

Good hardware is important, but can be costly. I have found ways to squeeze every last bit of performance out of any Windows PC. Bear with me; this might take a while to detail. I'm going to be giving away some personal trade secrets here so keep these tips top secret. :wink:

For any hard disk based PC it is important to understand how the disk works and how your computer uses it.. Inside that little silver box is a spinning circular plate of metal. A magnetic reader/writer (sometimes called a head) swings over that plate to record or read data. The outside of the disc spins at the same speed as the inside but is bigger, so data passes by the magnetic head more quickly when the data is near the outer edge of the disc. To sum it up, the outside of the disc is where you want stuff when it needs to be fast.

The page file is a special file on the hard drive that is used like computer memory. When Windows starts to run out of memory to run programs it moves some of the data in the memory to the page file. The page file is much slower than memory, but it's better than nothing at all. You can choose which hard drive or partition stores the page file and adjust the size of the page file. To do this in Windows XP, right-click on the 'My Computer' icon and click on 'Properties' in the context menu. In the new window, click on the 'advanced' tab, and then the 'Settings' button in the 'Performance' box. You'll get another window (I promise we're almost there), click on the 'Advanced' tab in the new window and then click on the 'Change' button in the 'Virtual Memory' box. In the window that pops up (the last one, I promise) you can adjust the page file settings. I would recommend for most gamers a minimum and maximum size of 2048. If you have more than one hard drive I would recommend putting it on the drive that your games are not installed on. When installing or reinstalling Windows you can set up a partition of about 2GB before your main partition. You can then relocate your page file to it and rest easy knowing that it has the fastest part of the disk to itself.

As you use your PC temporary files can accumulate from crashed programs, web browsers, and installer files. Use CCleaner to clean up junk and fixup any minor registry errors. You may need to run it multiple times to fix all of the registry errors.

If you are sure your PC is in proper working order, you can also eliminate old system restore points to free up even more space. Right click on your C:\ drive in 'My Computer' and click on 'properties'. Just to the right of the disk pie chart you'll see a button marked 'Disk Cleanup'; click it. After a few moments (or a great many moments), a new window pops up with two or three tabs. Click the one marked 'More Options'. The last option you see in that window should be one to remove all but the most recent restore point. Go ahead and click it if you're sure you won't be needing them any longer. Once that has run it's course, go back to the first tab and check all of those boxes except that one marked 'Compress old files'. Compression is the enemy of a fast PC. Click 'OK' and let the PC clean the last bits of junk from your hard drive. Repeat the steps in this paragraph for all of your PC's hard drives.

The next two steps will tune your file system to give priority to your page file and games. First, if you were not able to give the pagefile it's own partition, run PageDefrag and schedule a defrag for your next boot if you have more than one pagefile fragment. This app will schedule a pagefile defrag upon the next reboot (or all boots). A unified pagefile can improve performance if your PC relies on it to handle large apps.

After rebooting to defrag the pagefile, you can use JkDefrag from the Windows command line to sort your files alphabetically by path and file name. All movable files will be placed closer to other files in nearby directories speeding up program load times. For example all Steam files will be placed near one another on the hard disk; whenever TF2 is loaded the drive won't have to seek as much to find each needed file. Just double clicking JkDefrag.exe will make things a whole lot better, but the commands to really sort out your files are:

JkDefrag.exe -a 6 "C:\"
JkDefrag.exe -a 7 "C:\Program Files\Steam"
JkDefrag.exe -a 7 -e "C:\Program Files\Steam"

The first command moves all of the data on the disk to the end of the drive; this will take a very long time. The first step is important only if you are a perfectionist like me, ignore it otherwise. Once you have a large empty space (or not) at the beginning of the disk, the second command moves Steam to the very beginning of the partition. You can adjust the command to fit your needs if Steam isn't at that location, or if you want to optimize another program. The third command moves everything else up to the front of the disk (sorting by path and file name), but does not touch your Steam folder. You can optimize for several programs by using the '-e' option to exclude those files that you have already moved. Another obsessively perfectionist example:

JkDefrag.exe -a 6 "C:\"
JkDefrag.exe -a 7 "C:\Program Files\Steam"
JkDefrag.exe -a 7 -e "C:\Program Files\Steam" C:\Windows
JkDefrag.exe -a 7 -e "C:\Program Files\Steam" -e C:\Windows C:\

Put these commands in a batch file and run it overnight if you prefer. Keep in mind that the "JkDefrag.exe" part needs to be the actual path to the program and not just the program name. Two warnings about this though; JkDefrag can take a really long time to complete the first time, and a damaged hard drive could be damaged further by all that disk activity. Do not ever defrag a hard drive that is suspected of being damaged.

Last, but most important, if you want to prevent certain programs from starting up with Windows, I'd recommend using Autoruns. You can go through and see every startup item including drivers (.sys files) and libraries (.dll files). A quick Google search for any particular one should help you identify whether or not it's vital to your PC's operation. This can also be used to disable malware and trojans if your antivirus program doesn't catch them. Be very cautious with this program. It is very possible to render your PC unbootable with this tool, so when in doubt, don't touch it!

I've had great success with all of these tools. JkDefrag in particular has a fantastic forum that can answer any questions you have. If you have any questions for me or spot any errors, PM me or post a reply.

EDIT: 04/09/08 4:49 PDT
Expanded page file section at Mr.Blah's suggestion.
Last edited by dredfox on Wed Apr 09, 2008 5:52 am, edited 1 time in total.

MrBlah
Villun
Villun
User avatar
Posts: 6469
Joined: Sat Dec 30, 2006 2:20 am
Location: Colorado. There's like, mountains and stuff.

Games Played

Ville Awards

Mxtress Blah’s avatar
Loading…

Post by MrBlah » Wed Apr 09, 2008 4:52 am

It helps to let people know what a pagefile is and how to access it, and how to move it.

Alot of what you did state is easy peasy for more experienced users, but not for the not so computer literate. You did do a good job explaining though.

I would use your JkDefrag on the disk that has my steam apps on it... but then again, i have no room to move anything around, that is FULL. All 160GB of it.
Image
Eater of Potatoes, since 2008.


I am driven by two main philosophies: know more today about the world than I knew yesterday and lessen the suffering of others. You'd be surprised how far that gets you.
― Neil deGrasse Tyson

dredfox
Retired Admin
Retired Admin
Posts: 1535
Joined: Sun Dec 30, 2007 10:05 pm

Games Played

Ville Awards

dredfox.TVR’s avatar
Loading…

Post by dredfox » Wed Apr 09, 2008 5:31 am

[quote="MrBlah";p="84744"]It helps to let people know what a pagefile is and how to access it, and how to move it.
Alot of what you did state is easy peasy for more experienced users, but not for the not so computer literate. You did do a good job explaining though.[/quote]

I'll update it now. Thanks for the suggestion. I'm going to get a photo bucket account and eventually add pictures. This post will grow to monster proportions by the time I'm done. First this forum and then the world! :evilbat:

DeafOfficeWorker
Retired Admin
Retired Admin
User avatar
Posts: 7903
Joined: Mon Jan 29, 2007 3:39 pm

Ville Awards

Pootleshooter’s avatar
Loading…

Re: Tune-up your PC

Post by DeafOfficeWorker » Wed Apr 09, 2008 9:03 am

Very informative and helpful, dredfox. Thanks! :D
[img]http://i149.photobucket.com/albums/s68/pootleshooter/kpsdow.gif[/img]

Buzzy Beetle
Retired Admin
Retired Admin
User avatar
Posts: 2899
Joined: Wed Oct 17, 2007 10:43 pm
Location: Subterranean cavern systems, Mushroom Kingdom

Games Played

Ville Awards

Buzzy Beetle’s avatar
Loading…

Post by Buzzy Beetle » Wed Apr 09, 2008 11:25 am

Going through this slowly, so bare with me. I don't want to make Buster FUBAR'd.

Nehoo, virtual memory page. I have two HDDs, one that has pretty much everything on it, and a new one I recently put in - twice the size and has a grand total of one program on it. So, I'm assuming I'm gonna wanna put the memory there.

Here's the thing, the recommended "paging file size for all drives" is 4990, not your suggested max of 2048. I'm just making sure that the number is ok before I shut the paging off on my C drive and make it exclusively on my X drive.
Image
I proudly support Independent Developers, Local Businesses, and SNAILGOSH.

dredfox
Retired Admin
Retired Admin
Posts: 1535
Joined: Sun Dec 30, 2007 10:05 pm

Games Played

Ville Awards

dredfox.TVR’s avatar
Loading…

Re: Tune-up your PC

Post by dredfox » Wed Apr 09, 2008 12:45 pm

Windows typically recommends 1.5 times the total size of the RAM in your sytem. It is perfectly fine to use this much space for virtual memory. It would be very unusual to actually need that much though. If you run low on virtual memory the worst thing that can happen is that Windows will make a popup saying that you need to close some programs or allocate more virtual memory. If you ignore this popup, then some programs may be closed without your permission.

My PC recommends 3070MB and I have it capped at 2048. I've never needed more than 1024 MB of that even when I leave Firefox running for weeks. But if you are worried, just cap it at Windows recommendation; nothing bad will happen if you do that.

Note that on my PC Firefox is using 333MB of virtual memory; I have 12 tabs open and firefox has been running for four days. Azureus (bittorrent) is using another 250MB with 250 torrents queued. I abuse my poor PC. Everything else is using less than 500MB.

The only things that could potentially break your PC in my instructions are:
Unchecking a vital process in Autoruns - Winlogin.exe for example OR
if some super rare error happens in CCleaner while cleaning you registry

I followed these steps on over 100 PCs. Only carelessness with Autoruns has ever caused problems.

nesknowitall
Villun
Villun
User avatar
Posts: 93
Joined: Thu Mar 27, 2008 12:01 am

Ville Awards

Re: Tune-up your PC

Post by nesknowitall » Wed Apr 09, 2008 2:47 pm

Great thing dredfox just want to add in two important other things.

Check Disk is your friend! I have had almost all my problems solved by running Check Disk. Since the NTFS file system is not perfect somtimes files get misplaced and your computer can't find them. So what check disk will do is put your files back where they are supposed to be and also look for/recover bad sectors on your Hard Drive. There are two ways to run this program.
1. Open run.exe Then type in chkdsk This version is restricted because it cannot test all sectors of your hard drive because some may be in use.

2. Open my computer, right click the drive you want to check, click properties. Click the tools tab and then hit Error-Checking. Check all boxes then hit begin. IT will tell you it needs to restart so do so. When your computer boots up it will being a disk check. This one takes longer but is more thorough.

The next is for Vista users, not sure if XP has an equivilant. This will verify the integrity of your system files. In other words makes sure your system (important) files aren't jacked up.

open cmd.exe

type sfc /scannow

it will let you know if it finds any problems.
[size=200][color=green] [b]These things we do, that others may live.[/b][/color][/size]

Post Reply

Who is online

Users browsing this forum: No registered users and 13 guests