Welcome, Guest. Please Login
 
  HomeHelpSearchLogin FAQ Radified Ghost.Classic Ghost.New Bootable CD Blog  
 
Pages: 1 2 3 
Send Topic Print
Pagefile on 2nd HDD-primary or logical partition? (Read 21522 times)
Brian
Demigod
******
Offline



Posts: 6345
NSW, Australia


Back to top
Re: Pagefile on 2nd HDD-primary or logical partiti
Reply #15 - Dec 15th, 2006 at 9:08pm
 
Rad wrote on Dec 15th, 2006 at 4:20pm:
i have moved my swap/page file off a scsi boot/system drive to another scsi (15K-rpm) and noticed no perf increase.

I used to have a 2 GB pagefile on the second HD. I moved it to the C: drive and reduced its size to 400 MB. I haven't noticed a performance decrease.

If I read my posted link correctly I could get by with a 200 MB pagefile (minimum setting) because I never exceed that value. Tha maximum setting is 1 GB just in case of growth. What you see in the C: drive as pagefile.sys is the minimum setting. As Christer mentioned, the pagefile (and the hibernation file) isn't included in a Ghost 9/10 backup image.
 
 
IP Logged
 

NightOwl
Radministrator
*****
Offline


"I tought I saw a puddy
tat..."

Posts: 5826
Olympia, WA--Puget Sound--USA


Back to top
Re: Pagefile on 2nd HDD-primary or logical partiti
Reply #16 - Dec 16th, 2006 at 12:33am
 
The C Man

Quote:
does it have to be a primary partition, or could it be a logical partition?

It can be either--I run my page file on a second HDD that has only logical partitions inside a single extended partition.

The reason for making the second HDD a single extended partition is that it is then assigned drive letters last, and will not effect the current drive letters on the first HDD--if you are for instance adding a second HDD to an existing system whose first HDD has a primary and maybe a couple logical partitions in an extended partition.

When Windows, and especially DOS, initially assign drive letters--all non-hidden primary partitions get a drive letter first--so all visible primaries on the first HDD get a drive letter, then all visible primaries on the second HDD get a drive letter, then all logical partitions on the first HDD get drive letters, and then all logical partitions on the second HDD get drive letters.

If you add a second HDD to a system that already has drive letters assigned to the extended partitions on the first HDD--those drive letters will get *bumped* because the primary on the second HDD gets a drive letter before the logical partitions--now, this is only true in DOS, Win3.1, Win95, Win98, and WinMe--NT based OS's such as WinXP *remember* drive letter assignments based on the HDD's disk ID--so this *bumping* will not occur while in the WinXP OS--but if you boot to DOS for Ghost procedures--drive letter assignments will not match because in DOS--drive letters are assigned on each boot and are not *remembered*!

If you make the second HDD a single extended partition with logical partitions inside--now its drive letters are assigned last, and the drive letters on the first HDD will remain as they were!

Quote:
It's not so much that I want to eek out every last bit of HDD performance

As mentioned by others, the performance gain by placing the page file on a second HDD on systems with 512 MB or greater is probably greatly over-rated--except under one condition!--if you have multiple users who log on and off your system multiple times during the day, and you use *
Fast User Switching
*.

*
Fast User Switching
* saves the *system state* of a given user to the page file when one logs off, and another user logs on--now the page file is going to get *heavy usage* and you have to have a page file that is big enough to hold your system RAM times the # of users that will log on and off during the day + the amount of regular page file use.  On my system, on average I use about 180 MB for page file usage--so say for safety I set aside 325 MB for the page file (.325 GB).  If I had 1 GB of RAM and four users using Fast User Switching, then I would set aside a minimum of 4.325 GB for the page file.

Now, each time a user signs off and a new user signs on, the first users *system state* i.e. all of RAM is *paged out* to the page file--and all the second user's *system state* on the page file is read back into RAM when the second user signs on--now there is a performance benefit to having the page file on the outer part of the HDD platter on a second HDD!

Under *normal* single user use--the page file is usually not a major performance problem--programs place data there in case they have to be *paged out* because there's not enough system RAM, but if there is enough RAM, then the page file does not actually get used much--it's there and has data in it, but it's never accessed or used--so the second time a page file becomes a performance issue is if you have less than 512 MB of system RAM, or you open so many programs at once that the system runs out of RAM and has to *page out* the present program(s) in RAM so another program can take its place in RAM so the system can use that program.

Quote:
I want to cut down on fragmentation, that's the reason for my interest in locating the pagefile on a separate drive

That's probably the best reason to consider placing the page file in its own partition--even if it's not on a second HDD on the outer part of the disk as the first partition.

If the page file is being managed by Windows, it will grow and shrink as needed, and Windows will place it in all the holes or empty spaces during boot that are present--then Windows adds program files during use--the page file may grow adding to itself, but fragmented from the rest of the page file--and Windows adds more files after it--so the permanent Windows files have to work around all the fragmented page file segments on the OS partition--which is contributing to the fragmentation of the OS files.  On re-boot, the page file is re-created and fills the various holes, and Windows has to work around that again, and so on the fragmenting process goes.

So, placing the page file in its own partition can help reduce the fragmentation process.
 

____________________________________________________________________________________________

No question is stupid ... but, possibly the answers are Wink !
 
IP Logged
 
C Man
Radmeister
**
Offline



Posts: 58


Back to top
Re: Pagefile on 2nd HDD-primary or logical partiti
Reply #17 - Dec 16th, 2006 at 2:57am
 
NightOwl, that's the reason I asked whether the partition on the 2nd HDD could be logical instead of primary - because of the way the drive letters would shift if it had to be a primary partition.

I picked up this nice little program about a month ago, it lets you assign drive letters in Win9x and 'hold' them.  I successfully used it to keep my main HDD's drive letters assigned as C,D, & E (primary and two logicals) when I was dual booting between 9x and XP.

Not sure how much it'll interest anyone here since you're probably all on an NT based OS, but here's the link anyway.

http://www.v72735.f2s.com/LetAssig/
 
 
IP Logged
 
Christer
Übermensch
*****
Offline



Posts: 1360
Sweden


Back to top
Re: Pagefile on 2nd HDD-primary or logical partiti
Reply #18 - Dec 16th, 2006 at 3:55am
 
The C Man,

Quote:
When I mentioned setting the pagefile to 2 GB, I just meant the upper ceiling for its size, not a fixed size.

Hmm ... Undecided ... it must have been late (in Sweden) when I made my comment on the 2 GB pagefile ... Roll Eyes ... I read it as 2 MB which is the absolute minimum "recommended" by Microsoft. Sorry about that.

Nightowl,

Quote:
... and you have to have a page file that is big enough to hold your system RAM times the # of users that will log on and off during the day + the amount of regular page file use.

I never thought of that. I have set up a computer for a family of four with the standard pagefile setting 1.5-3.0xRAM. That computer is primarily used by one user and maybe another but never all four "fast user switching".

Quote:
On re-boot, the page file is re-created and fills the various holes, and Windows has to work around that again, and so on the fragmenting process goes.

If a system has been set up with a Windows managed pagefile, change it to a "semi-fixed" pagefile with sensible minimum and maximum sizes. Create a Ghost Image, check the integrity and immediately restore it. Since the pagefile is excluded from the image (there is a place holder displaying the size but it is empty, 0 bytes), it gets recreated in a single contiguous chunk during the restoration of the Image. Not only that, it also gets located towards the front of the partition, only the most important system files have higher priority.

Christer
 

Old chinese proverb:
If I hear - I forget, If I see - I remember, If I do - I understand
 
IP Logged
 
NightOwl
Radministrator
*****
Offline


"I tought I saw a puddy
tat..."

Posts: 5826
Olympia, WA--Puget Sound--USA


Back to top
Re: Pagefile on 2nd HDD-primary or logical partiti
Reply #19 - Dec 16th, 2006 at 9:20am
 
The C Man

Quote:
Not sure how much it'll interest anyone here since you're probably all on an NT based OS, but here's the link anyway.

Actually, I dual boot to Win98se on one system--and another is still exclusively Win98se--always happy to see links to interesting programs and utilities--thanks for the link!

Looks like you would still see drive letter re-assignment in DOS however--in your experience is that true?
 

____________________________________________________________________________________________

No question is stupid ... but, possibly the answers are Wink !
 
IP Logged
 
NightOwl
Radministrator
*****
Offline


"I tought I saw a puddy
tat..."

Posts: 5826
Olympia, WA--Puget Sound--USA


Back to top
Re: Pagefile on 2nd HDD-primary or logical partiti
Reply #20 - Dec 16th, 2006 at 9:54am
 
Christer

Couple references to *Fast User Switching*:

How To Use the Fast User Switching Feature in Windows XP


Optimize Windows XP--Fast User Switching


In that last link above--apparently the recommendation as to how to *optimize* Fast User Switching is to *not* use it!

I found the information on Fast User Switching and the page file buried in this reference:

Virtual Memory in Windows XP


Quote:
What about Fast User Switching then?

If you use Fast User Switching, there are special considerations. When a user is not active, there will need to be space available in the page file to ‘roll out’ his or her work: therefore, the page file will need to be larger. Only experiment in a real situation will establish how big,
but a start point might be an initial size equal to half the size of RAM for each user logged in.

It looks like that segment of the webpage has changed from what I originally read--now says to start by using *half the size of RAM*--used to say the *full amount of RAM* per user!

This is another interesting *page file* link:

How can I optimize the Windows 2000/XP/2003 virtual memory (Pagefile)?


***********************************************
Christer wrote:

Quote:
If a system has been set up with a Windows managed pagefile, change it to a "semi-fixed" pagefile with sensible minimum and maximum sizes. Create a Ghost Image, check the integrity and immediately restore it. Since the pagefile is excluded from the image (there is a place holder displaying the size but it is empty, 0 bytes), it gets recreated in a single contiguous chunk during the restoration of the Image. Not only that, it also gets located towards the front of the partition, only the most important system files have higher priority.

Another forum poster had mentioned that he used Ghost image restores as his *defragmenter* rather than programs like Perfect Disk or Disk Keeper--interesting concept!  I think if you create a page file where both the min and max are the same, you then create a *permanent* page file in one contiguous space and now Windows will not resize it--and that reduces *fragmentation* of files also if the page file is on the OS partition.
 

____________________________________________________________________________________________

No question is stupid ... but, possibly the answers are Wink !
 
IP Logged
 

Pleonasm
Übermensch
*****
Offline



Posts: 1619


Back to top
Re: Pagefile on 2nd HDD-primary or logical partiti
Reply #21 - Dec 16th, 2006 at 10:06am
 
The C Man, one option to possibly consider is disabling the use of the paging file – see How to stop the NT Executive from paging to disk.  Of course, before testing this approach, it would be wise to create a Ghost backup of your system.
 

ple • o • nasm n. “The use of more words than are required to express an idea”
 
IP Logged
 
John.
Übermensch
*****
Offline



Posts: 2072


Back to top
Re: Pagefile on 2nd HDD-primary or logical partiti
Reply #22 - Dec 16th, 2006 at 12:55pm
 
Pleonasm wrote on Dec 16th, 2006 at 10:06am:
The C Man, one option to possibly consider is disabling the use of the paging file – see How to stop the NT Executive from paging to disk.  Of course, before testing this approach, it would be wise to create a Ghost backup of your system.


This is a good tweak.  I've used it on several pc's that have 1gb of memory and it definitely improves the responsiveness of XP.

Here's another reference to it:

http://www.winguides.com/registry/display.php?id=399

 

Ghost4me  Ghost 9, 10, 12, 14, 15.  Windows XP, Vista, Windows 7
 
IP Logged
 
C Man
Radmeister
**
Offline



Posts: 58


Back to top
Re: Pagefile on 2nd HDD-primary or logical partiti
Reply #23 - Dec 16th, 2006 at 1:49pm
 
NightOwl wrote on Dec 16th, 2006 at 9:20am:
Looks like you would still see drive letter re-assignment in DOS however--in your experience is that true?

From personal experience, I don't remember, but I'm looking in the program's folder right now and see both Letassig.exe & Letassig32.exe.  Oh, and I see in the small text file 'manual' that it says it works in DOS too.  There ya go.

Pleonasm, I'll look at that tweak here in a bit.  Ghost4me, glad you can verify that it works well.

Last month I had shut off the page file temporarily just to see what would happen, and everything booted up and worked fine.  Again, this was with 512 MB RAM on an Athlon Thunderbird 1000 MHz from 2001.

I'm going to reinstall XP in about an hour I hope (going to try doing it off the HDD w/o booting into Win9x first), and I'll definitely try out that tweak.
 
 
IP Logged
 
NightOwl
Radministrator
*****
Offline


"I tought I saw a puddy
tat..."

Posts: 5826
Olympia, WA--Puget Sound--USA


Back to top
Re: Pagefile on 2nd HDD-primary or logical partiti
Reply #24 - Dec 16th, 2006 at 2:43pm
 
Pleonasm

Quote:
one option to possibly consider is disabling the use of the paging file

The tweak you mentioned above does not appear to *disable the use of the paging file* in general--it appears to only apply to one system function of whether the NT Kernel uses the paging file or not.

Ghost4me

Quote:
This is a good tweak.  I've used it on several pc's that have 1gb of memory and it definitely improves the responsiveness of XP.

I tried the tweak myself--did not see any obvious performance change on my system--and I've also run across several references that question whether it has any performance effects because the *normal* behavior of WinXP is to keep the kernel in RAM as long as there is enough in the first place--and if there isn't enough RAM, well you will have other performance problems far sooner--here's one:

See *Disable Paging of Kernel*


Here's another:

See:  *Update: I asked Windows guru Ed Bott... *



 

____________________________________________________________________________________________

No question is stupid ... but, possibly the answers are Wink !
 
IP Logged
 
Christer
Übermensch
*****
Offline



Posts: 1360
Sweden


Back to top
Re: Pagefile on 2nd HDD-primary or logical partiti
Reply #25 - Dec 17th, 2006 at 9:59am
 
NightOwl,

Quote:
I think if you create a page file where both the min and max are the same, you then create a *permanent* page file in one contiguous space and now Windows will not resize it--and that reduces *fragmentation* of files also if the page file is on the OS partition.

I see no reason to not give the OS the possibility to temporarily increase the pagefile if needed. The initial chunk (1.5xRAM) will always be static and any additional increase (up to 1.5xRAM with my setting) will be in additional fragments but they will be deleted when the need no longer exists. That setting would actually work with fast user switching and two users.

Christer
 

Old chinese proverb:
If I hear - I forget, If I see - I remember, If I do - I understand
 
IP Logged
 

Pleonasm
Übermensch
*****
Offline



Posts: 1619


Back to top
Re: Pagefile on 2nd HDD-primary or logical partiti
Reply #26 - Dec 17th, 2006 at 11:29am
 
Interesting links in Reply #24, NightOwl (although the experience of Ghost4me seems to contradict the author's assertion about the lack of an impact of the tweak described in Reply #21).

Here's another tip that might be of interest to readers of this thread.

Quote:
If your PC has at least 1GB of RAM, you may be able to speed up your PC by disabling the swap file in your virtual memory settings. Simply click No paging file in the Virtual Memory dialog box (see Figure 1). To open your virtual memory settings in Windows XP, right-click My Computer, click Properties, Advanced, choose the Settings button under "Performance", click the Advanced tab, and select the Change button.
Source:  http://www.pcworld.com/article/id,123413-c,optimization/article.html#
 

ple • o • nasm n. “The use of more words than are required to express an idea”
 
IP Logged
 
Pleonasm
Übermensch
*****
Offline



Posts: 1619


Back to top
Re: Pagefile on 2nd HDD-primary or logical partiti
Reply #27 - Dec 17th, 2006 at 11:34am
 
From a security perspective, one tweak that I have used is to Clear the Windows Paging File at Shutdown, in order to ensure that all content stored in virtual memory is erased.
 

ple • o • nasm n. “The use of more words than are required to express an idea”
 
IP Logged
 
NightOwl
Radministrator
*****
Offline


"I tought I saw a puddy
tat..."

Posts: 5826
Olympia, WA--Puget Sound--USA


Back to top
Re: Pagefile on 2nd HDD-primary or logical partiti
Reply #28 - Dec 17th, 2006 at 11:52am
 
Pleonasm

Quote:
Here's another tip that might be of interest to readers of this thread.

Source:  http://www.pcworld.com/article/id,123413-c,optimization/article.html#

See here for a discussion of why this tweak may be counter productive: 
Virtual Memory in Windows XP
--See the heading: *Can the Virtual Memory be turned off on a really large machine?*

Quote:
Strictly speaking Virtual Memory is always in operation and cannot be “turned off.” What is meant by such wording is “set the system to use no page file space at all.”

Doing this would waste a lot of the RAM.
The reason is that when programs ask for an allocation of Virtual memory space, they may ask for a great deal more than they ever actually bring into use — the total may easily run to hundreds of megabytes. These addresses have to be assigned to somewhere by the system.
If there is a page file available, the system can assign them to it — if there is not, they have to be assigned to RAM, locking it out from any actual use
.

I guess if you don't really need all that RAM in the first place that the virtual memory is locking up, then this tweak causes no harm--but, if you have that much RAM, I doubt it helps performance either--because virtual memory is never used!
 

____________________________________________________________________________________________

No question is stupid ... but, possibly the answers are Wink !
 
IP Logged
 
Pleonasm
Übermensch
*****
Offline



Posts: 1619


Back to top
Re: Pagefile on 2nd HDD-primary or logical partiti
Reply #29 - Dec 17th, 2006 at 12:07pm
 
RE:  "if you have that much RAM, I doubt it helps performance either -- because virtual memory is never used"

NightOwl, I have read that Windows XP will fulfill some memory allocation requests with virtual memory even when there is unused physical RAM available.  I don't know the algorithms and rules of how this works, but my understanding is that even if a user has a huge amount of physical RAM, an enabled paging file will still be employed.
 

ple • o • nasm n. “The use of more words than are required to express an idea”
 
IP Logged
 
Pages: 1 2 3 
Send Topic Print