Tech ARP Forums

Go Back   Tech ARP Forums > Site Updates & Promotions > Reviews & Articles
Register
FAQ Members List Calendar Arcade Mark Forums Read

Google Web www.techarp.com forums.techarp.com

Reviews & Articles There will be a post for every Tech ARP article. Come in here to discuss about your favourite article!

Reply
 
LinkBack Thread Tools
Old 29th Oct 2004, 10:35 PM   #1 (permalink)
Administrator!
 
Dashken's Avatar
 
Join Date: 21 Apr 2003
Location: Penang
Posts: 29,545
Reputation: 2162
Dashken has a reputation beyond reputeDashken has a reputation beyond reputeDashken has a reputation beyond reputeDashken has a reputation beyond reputeDashken has a reputation beyond reputeDashken has a reputation beyond reputeDashken has a reputation beyond reputeDashken has a reputation beyond reputeDashken has a reputation beyond reputeDashken has a reputation beyond reputeDashken has a reputation beyond repute
Rep Power: 56
Default Virtual Memory Optimization Guide!

Even today, virtual memory is still very important component of the operating system. No matter how much memory you have, there is always a need for virtual memory. Therefore, its performance is of great importance. Optimizing the virtual memory system will greatly improve the performance of the computer.

Today, we will take an in-depth look at virtual memory, what it really is and how to optimize it! In this edition, we will also take a thorough look at the differences between swapfile and paging file as well as making a contiguous paging file. Come and check out the definitive Swapfile Optimization Guide!

Here are the updates:-
  • Added discussion on differences between swapfile and paging file.
  • Corrected all references to the virtual memory file as paging file, instead of swapfile.


Link : Virtual Memory Optimization Guide Rev. 4.0!
__________________
| Intel Core 2 Duo E6850 @ 3.2Ghz | ASUS P5B-E Plus | G.SKILL 2x1GB DDR2 800 | 6 HDDs (2TB+ only ) | NVIDIA GeForce 7600GT | Dell E248WFP 24" Widescreen |


Blog : Dashken's I-Blog
Gallery : Dashken's I-Paintings

Last edited by News Writer : 2nd Nov 2004 at 11:23 PM.
Dashken is offline   Reply With Quote
SPONSOR
Old 2nd Nov 2004, 11:31 PM   #2 (permalink)
News Writer
 
Join Date: 7 Sep 2004
Location: ARP
Posts: 67
Reputation: 13
News Writer is on a distinguished road
Rep Power: 0
Default

The guide has just been updated!

Even today, virtual memory is still very important component of the operating system. No matter how much memory you have, there is always a need for virtual memory. Therefore, its performance is of great importance. Optimizing the virtual memory system will greatly improve the performance of the computer.

Today, we will take an in-depth look at virtual memory, what it really is and how to optimize it! In this edition, we will also take a thorough look at moving paging file to the outer tracks as well as the pros and cons of making a very large paging file. Come and check out the definitive Virtual Memory Optimization Guide!

Here are the updates:-
  • A thorough look at moving paging file to the outer tracks.
  • The pros and cons of making a very large paging file.


Link : Virtual Memory Optimization Guide Rev. 4.0!
News Writer is offline   Reply With Quote
Old 3rd Nov 2004, 02:33 AM   #3 (permalink)
Super Active
 
Viper007Bond's Avatar
 
Join Date: 12 Oct 2004
Location: Portland, OR, USA
Posts: 1,605
Reputation: 152
Viper007Bond has a spectacular aura aboutViper007Bond has a spectacular aura about
Rep Power: 6
Default

I just use CachemanXP to manage my virtual memory and recover RAM.

I'll read the guide anyway though as I bet it's still really helpful.
Viper007Bond is offline   Reply With Quote
Old 4th Nov 2004, 02:23 AM   #4 (permalink)
Newbie
 
Join Date: 4 Nov 2004
Posts: 2
Reputation: 0
SmartDrv is an unknown quantity at this point
Rep Power: 0
Default

Viper: Programs like that hinder things more than help. Windows will automatically manage the size of the cache if more memory is needed by applications. All you are doing is making the cache less effective.

Regarding the article:

What benchmarking have you actually done to show that your optimizations have any effect on the performance of the system? Many of the optimizations in this article seem to revolve around the assumption that a fragmented page file reduces performance. It also seems to stress that a dynamic page file reduces performance.

While some of the people on arstechnica (specificially in the NT Mojo subforum) can educate you way better than I can (such as in threads like this) a couple points worth mentioning are:

The page file is not read sequentially or completely but rather in chunks of up to 64K each. The chance of a single read requiring an extra seek are minimal. In fact the performance degradation due to fragmentation is overhyped in general.

Setting a good sized mininum on a page file isn't a bad idea. But there is no need to limit the maximum. Should the page file grow to meet demand and than shrink again, the original allocated portion will still be in a single chunk (again it probably doesn't matter much). Although your program may have run a bit slower, you avoided an "Out of virtual memory" condition which would be far worse.
SmartDrv is offline   Reply With Quote
Old 4th Nov 2004, 02:44 AM   #6 (permalink)
Da Boss
 
Join Date: 10 Oct 2002
Location: In front of my BenQ Joybook 7000 notebook!
Posts: 29,436
Reputation: 2830
Adrian Wong has a reputation beyond reputeAdrian Wong has a reputation beyond reputeAdrian Wong has a reputation beyond reputeAdrian Wong has a reputation beyond reputeAdrian Wong has a reputation beyond reputeAdrian Wong has a reputation beyond reputeAdrian Wong has a reputation beyond reputeAdrian Wong has a reputation beyond reputeAdrian Wong has a reputation beyond reputeAdrian Wong has a reputation beyond reputeAdrian Wong has a reputation beyond repute
Rep Power: 63
Default

Hello SmartDrv!

Actually, this is still a work in progress. Right now, only part 2 of the guide has been posted. If my calculations are right, the complete guide will consist of about 39-40 pages.

So, there is actually a LOT more to virtual memory optimization than just defragmenting the paging file. It just happens that you are only reading the first two parts of the guide.

Yes, the new paging file system reads in chunks. But I don't think it's 64K. The last time I checked Microsoft's Knowledge Base, it was 4K chunks. So, performance degradation is not as severe as in the swapfile days. I think I mentioned this in the guide.

However, that does not mean that defragmenting the paging file won't improve its performance. Defragmenting the paging file keeps the paging file together. This reduces head seeks. And if you move the paging file to the outer tracks, that ensures maximum transfer rates from the paging file. All of it, not just some parts.

As for the maximum page file size, if you read the guide again, you will see that I recommend creating a semi-permanent paging file. In fact, I also mentioned that there is no way to create a true permanent paging file. Windows XP automatically extends the paging file if there is a need for more virtual memory.
__________________
Dr. Adrian Wong
Tech ARP | Blog @ Tech ARP | The Free Trade Zone


DYKT : The only offshore account I have is at the sand bank?

Keep Tech ARP free! Visit our sponsors!

We need PROGRAMMERS and TECHNICAL WRITERS! Contact us if you are a hot shot programmer or technical writer!

My items for sale : 50x SD Card | Memory Stick PRO | Cyclone Energy Saver | Seiko SS watch | Tiger/Carlsberg beer jugs | Travel Speakers | Motorola V600 | Nokia N90 SOLD! | New Lowepro Mini Trekker AW

Other items for sale @ the FTZ : Zalman CNPS9500 LED @ $20 | Zalman CNPS7700 Cu @ $20 | Zalman CNPS7000 Cu @ $20 | Swarovski bracelet watches | Dell 17" LCD | Hi-Fi speakers | English DIVX movies | HP LaserJet toners! | Office chairs
Adrian Wong is offline   Reply With Quote
Old 4th Nov 2004, 06:07 AM   #7 (permalink)
Newbie
 
Join Date: 4 Nov 2004
Posts: 2
Reputation: 0
T8000 is an unknown quantity at this point
Rep Power: 0
Default Why does this happen?

As shown on the image, my swapfile is split up in 2 halves, even while it has its own partition and there is nothing in between of it.

I formatted the partition and recreated it, but it always splits up.

Why does this happen?
Attached Images
File Type: gif swapfile.gif (45.9 KB, 21 views)
T8000 is offline   Reply With Quote
Old 4th Nov 2004, 02:16 PM   #8 (permalink)
Newbie
 
Join Date: 4 Nov 2004
Posts: 2
Reputation: 0
SmartDrv is an unknown quantity at this point
Rep Power: 0
Default

Thanks for the quick response. I hope I didn't come off as being too negative but as I'm sure you understand there are a lot of "tweak" sites around that offer information that either does nothing or that actually hinders performance (i.e. most of those sites that tell you to edit low level memory management parameters)

While I don't see anything in your guide that would hinder performance, I do suggest a section about how changing what physical drive the page file is on is more important to overall performance than how fragmented it is. I imagine your next section will probably go over that mentioning things like how it's best to keep the page file on "fast but less busy" drives and how spanning the page file over multiple physical disks is good in some cases (i.e. SCSI) but bad in others (i.e. over 2 drives on the same IDE channel)

And as I suggest, if you need some more information, check out some of the past threads on the forum I posted. I'm not affiliated with the owners and am not trying to advertise that forum for them, however, there are a lot of smart people (Network Admins, Developers, Engineers, etc) mixed in the crowd. Some like DriverGuru seem to know so much about lower level functions of operating systems that it can make your head spin.

I look forward to your next update!
SmartDrv is offline   Reply With Quote
Old 4th Nov 2004, 02:30 PM   #9 (permalink)
Da Boss
 
Join Date: 10 Oct 2002
Location: In front of my BenQ Joybook 7000 notebook!
Posts: 29,436
Reputation: 2830
Adrian Wong has a reputation beyond reputeAdrian Wong has a reputation beyond reputeAdrian Wong has a reputation beyond reputeAdrian Wong has a reputation beyond reputeAdrian Wong has a reputation beyond reputeAdrian Wong has a reputation beyond reputeAdrian Wong has a reputation beyond reputeAdrian Wong has a reputation beyond reputeAdrian Wong has a reputation beyond reputeAdrian Wong has a reputation beyond reputeAdrian Wong has a reputation beyond repute
Rep Power: 63
Default

Quote:
Originally Posted by T8000
As shown on the image, my swapfile is split up in 2 halves, even while it has its own partition and there is nothing in between of it.

I formatted the partition and recreated it, but it always splits up.

Why does this happen?
Hello T8000, as mentioned in the guide, Windows XP does not necessarily create a contiguous paging file. Even then, I agree. It's odd that it didn't create a contiguous paging file in an empty partition.

Don't worry though. You can easily defragment the paging file using Diskeeper or a similar utility.
__________________
Dr. Adrian Wong
Tech ARP | Blog @ Tech ARP | The Free Trade Zone


DYKT : The only offshore account I have is at the sand bank?

Keep Tech ARP free! Visit our sponsors!

We need PROGRAMMERS and TECHNICAL WRITERS! Contact us if you are a hot shot programmer or technical writer!

My items for sale : 50x SD Card | Memory Stick PRO | Cyclone Energy Saver | Seiko SS watch | Tiger/Carlsberg beer jugs | Travel Speakers | Motorola V600 | Nokia N90 SOLD! | New Lowepro Mini Trekker AW

Other items for sale @ the FTZ : Zalman CNPS9500 LED @ $20 | Zalman CNPS7700 Cu @ $20 | Zalman CNPS7000 Cu @ $20 | Swarovski bracelet watches | Dell 17" LCD | Hi-Fi speakers | English DIVX movies | HP LaserJet toners! | Office chairs
Adrian Wong is offline   Reply With Quote
Old 4th Nov 2004, 02:31 PM   #10 (permalink)
Super Active
 
Viper007Bond's Avatar
 
Join Date: 12 Oct 2004
Location: Portland, OR, USA
Posts: 1,605
Reputation: 152
Viper007Bond has a spectacular aura aboutViper007Bond has a spectacular aura about
Rep Power: 6
Default

Quote:
Originally Posted by T8000
As shown on the image, my swapfile is split up in 2 halves, even while it has its own partition and there is nothing in between of it.

I formatted the partition and recreated it, but it always splits up.

Why does this happen?
Wow, that's a good idea.

I'm going to try to make mine use like 2 MB of space all of the time though as I should never have to use all of my GB of RAM... right?
Viper007Bond is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +8. The time now is 06:38 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 1998-2007 Tech ARP. All rights reserved.