Windows XP Community - XPHeads



Swap file

microsoft.public.windowsxp.perform_maintain


Reply
  #1 (permalink)  
Old 01-17-2008, 11:35 PM
Bill H.
 
Posts: n/a
Swap file
I want to set the swap file to a disk different than the one containing the
system. This other disk is at least as fast as the system disk.

My XP Pro has 4.0 gb memory, and following the usual rules of swap file max
size equal to 2.5 times memory, gets me a max size of over 10gb. However,
Windows won't let me set a swapfile size larger than 4gb. Will that, in
this case, be sufficient? Is there a reg entry for increasing the max size?

Thx.

--
Bill


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 01-17-2008, 11:48 PM
Leonard Grey
 
Posts: n/a
Re: Swap file
The correct size for virtual memory is "system managed size".

---
Leonard Grey
Errare humanum est

Bill H. wrote:
> I want to set the swap file to a disk different than the one containing the
> system. This other disk is at least as fast as the system disk.
>
> My XP Pro has 4.0 gb memory, and following the usual rules of swap file max
> size equal to 2.5 times memory, gets me a max size of over 10gb. However,
> Windows won't let me set a swapfile size larger than 4gb. Will that, in
> this case, be sufficient? Is there a reg entry for increasing the max size?
>
> Thx.
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-18-2008, 12:35 AM
Ken Blake, MVP
 
Posts: n/a
Re: Swap file
On Thu, 17 Jan 2008 15:35:27 -0800, "Bill H."
<wh@photosourcefolio.com> wrote:

> I want to set the swap file to a disk different than the one containing the
> system. This other disk is at least as fast as the system disk.
>
> My XP Pro has 4.0 gb memory, and following the usual rules of swap file max
> size equal to 2.5 times memory,



It's a terrible rule. The page file substitutes for RAM when there
isn't enough RAM. The more RAM you have, the *less* page file you
need.


> gets me a max size of over 10gb. However,
> Windows won't let me set a swapfile size larger than 4gb. Will that, in
> this case, be sufficient?



It will be more than sufficient. Unless you run extremely
memory-hungry applications, you already have much RAM than you need,
and will probably never use the page file at all.

I would just let the system manage it and not worry about its settings
at all. Even moving it to a second physical drive (which can be good
for those with lower amounts of RAM) will not affect your performance
at all with that much RAM.

But note that if you do move it to another drive, keep a small page
file on C:

For more information, read "Virtual Memory in Windows XP" by the late
MVP, Alex Nichol, at http://aumha.org/win5/a/xpvm.htm/

--
Ken Blake, Microsoft MVP Windows - Shell/User
Please Reply to the Newsgroup
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-18-2008, 02:22 AM
Jim
 
Posts: n/a
Re: Swap file

"Bill H." <wh@photosourcefolio.com> wrote in message
news:eZ%23KKJWWIHA.5448@TK2MSFTNGP04.phx.gbl...
>I want to set the swap file to a disk different than the one containing the
>system. This other disk is at least as fast as the system disk.
>
> My XP Pro has 4.0 gb memory, and following the usual rules of swap file
> max size equal to 2.5 times memory, gets me a max size of over 10gb.
> However, Windows won't let me set a swapfile size larger than 4gb. Will
> that, in this case, be sufficient? Is there a reg entry for increasing
> the max size?
>
> Thx.
>
> --
> Bill
>
>

The "usual rule" is 1.5 times the memory size, but that rule was instituted
long
before it became affordable to have 4 GB. The proper rule is "system
managed
size".

Jim


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-18-2008, 08:12 AM
Bill H.
 
Posts: n/a
Re: Swap file
Yeah, but if I use "system managed size" then how do I tell the system to
use another disk?


"Jim" <j.n@nospam.com> wrote in message
news:h3Ujj.88278$YL5.12313@newssvr29.news.prodigy. net...
>
> "Bill H." <wh@photosourcefolio.com> wrote in message
> news:eZ%23KKJWWIHA.5448@TK2MSFTNGP04.phx.gbl...
>>I want to set the swap file to a disk different than the one containing
>>the system. This other disk is at least as fast as the system disk.
>>
>> My XP Pro has 4.0 gb memory, and following the usual rules of swap file
>> max size equal to 2.5 times memory, gets me a max size of over 10gb.
>> However, Windows won't let me set a swapfile size larger than 4gb. Will
>> that, in this case, be sufficient? Is there a reg entry for increasing
>> the max size?
>>
>> Thx.
>>
>> --
>> Bill
>>
>>

> The "usual rule" is 1.5 times the memory size, but that rule was
> instituted long
> before it became affordable to have 4 GB. The proper rule is "system
> managed
> size".
>
> Jim
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-18-2008, 06:55 PM
Leonard Grey
 
Posts: n/a
Re: Swap file
That's easy: You need to create a partition on the second disk to hold
the swap file (at least). Once that's done, you just select that
partition in XP's Virtual Memory property sheet and select 'system
managed size'.

This next part is just my opinion, so no harm no foul if you don't agree.

For several years I had the same setup as you are proposing: I created a
2MB partition on a second internal hard disk and put my page file there.
(You may need more than 2MB.) I did this because I read - in a Microsoft
KB article among other places - that this was a way to improve your
computer's performance if the second hard disk was at least as fast as
the first and accessed less frequently than the first disk. Well guess
what? I didn't notice a da*n bit of difference. Recently, I abandoned
this setup and went back to having my swap file on the Windows
partition. Guess what? I didn't notice a da*n bit of difference.

I'm sure that having the page file on my second disk made a theoretical
difference - but not one that I was able to notice. There may be
situations under which it would make a noticeable difference, but not
for everyday computing.

---
Leonard Grey
Errare humanum est

Bill H. wrote:
> Yeah, but if I use "system managed size" then how do I tell the system to
> use another disk?
>
>
> "Jim" <j.n@nospam.com> wrote in message
> news:h3Ujj.88278$YL5.12313@newssvr29.news.prodigy. net...
>> "Bill H." <wh@photosourcefolio.com> wrote in message
>> news:eZ%23KKJWWIHA.5448@TK2MSFTNGP04.phx.gbl...
>>> I want to set the swap file to a disk different than the one containing
>>> the system. This other disk is at least as fast as the system disk.
>>>
>>> My XP Pro has 4.0 gb memory, and following the usual rules of swap file
>>> max size equal to 2.5 times memory, gets me a max size of over 10gb.
>>> However, Windows won't let me set a swapfile size larger than 4gb. Will
>>> that, in this case, be sufficient? Is there a reg entry for increasing
>>> the max size?
>>>
>>> Thx.
>>>
>>> --
>>> Bill
>>>
>>>

>> The "usual rule" is 1.5 times the memory size, but that rule was
>> instituted long
>> before it became affordable to have 4 GB. The proper rule is "system
>> managed
>> size".
>>
>> Jim
>>

>
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-18-2008, 07:16 PM
Ken Blake, MVP
 
Posts: n/a
Re: Swap file
On Fri, 18 Jan 2008 13:55:41 -0500, Leonard Grey
<Leonard@Grey.invalid> wrote:

> That's easy: You need to create a partition on the second disk to hold
> the swap file (at least). Once that's done, you just select that
> partition in XP's Virtual Memory property sheet and select 'system
> managed size'.



If you're saying that you need to create a *separate* partition on
that second disk, just for the page file, no you don't. In fact, you
generally shouldn't. The main performance issue with the page file is
the time it takes to move the drive's read/write heads to and from it.
The way to minimize that head movement time is to put the page file on
the most used-partition of the least-used physical drive.


> This next part is just my opinion, so no harm no foul if you don't agree.
>
> For several years I had the same setup as you are proposing: I created a
> 2MB partition on a second internal hard disk and put my page file there.
> (You may need more than 2MB.) I did this because I read - in a Microsoft
> KB article among other places - that this was a way to improve your
> computer's performance if the second hard disk was at least as fast as
> the first and accessed less frequently than the first disk. Well guess
> what? I didn't notice a da*n bit of difference. Recently, I abandoned
> this setup and went back to having my swap file on the Windows
> partition. Guess what? I didn't notice a da*n bit of difference.



Almost certainly because you had sufficient RAM for the applications
you run, so there was very little page file use. Page file placement
is only significant if there's a lot of page file use. That's why I
suggested to the OP in an earlier message in this thread, that with
the amount of RAM he has (4GB), it will almost certainly make no
difference at all what his page file settings are.



> I'm sure that having the page file on my second disk made a theoretical
> difference - but not one that I was able to notice. There may be
> situations under which it would make a noticeable difference, but not
> for everyday computing.



I'll bet that if you had only 128MB of RAM, the two scenarios you
describe above would show a substantial difference in performance.

--
Ken Blake, Microsoft MVP Windows - Shell/User
Please Reply to the Newsgroup
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-19-2008, 02:00 PM
Gerry
 
Posts: n/a
Re: Swap file
Ken

Dedicated partitions are prefereable unless you want to breed file
fragmentation.

--
Regards.

Gerry
~~~~
FCA
Stourport, England
Enquire, plan and execute
~~~~~~~~~~~~~~~~~~~


Ken Blake, MVP wrote:
> On Fri, 18 Jan 2008 13:55:41 -0500, Leonard Grey
> <Leonard@Grey.invalid> wrote:
>
>> That's easy: You need to create a partition on the second disk to
>> hold the swap file (at least). Once that's done, you just select that
>> partition in XP's Virtual Memory property sheet and select 'system
>> managed size'.

>
>
> If you're saying that you need to create a *separate* partition on
> that second disk, just for the page file, no you don't. In fact, you
> generally shouldn't. The main performance issue with the page file is
> the time it takes to move the drive's read/write heads to and from it.
> The way to minimize that head movement time is to put the page file on
> the most used-partition of the least-used physical drive.
>
>
>> This next part is just my opinion, so no harm no foul if you don't
>> agree.
>>
>> For several years I had the same setup as you are proposing: I
>> created a 2MB partition on a second internal hard disk and put my
>> page file there. (You may need more than 2MB.) I did this because I
>> read - in a Microsoft KB article among other places - that this was
>> a way to improve your computer's performance if the second hard disk
>> was at least as fast as the first and accessed less frequently than
>> the first disk. Well guess what? I didn't notice a da*n bit of
>> difference. Recently, I abandoned this setup and went back to having
>> my swap file on the Windows partition. Guess what? I didn't notice a
>> da*n bit of difference.

>
>
> Almost certainly because you had sufficient RAM for the applications
> you run, so there was very little page file use. Page file placement
> is only significant if there's a lot of page file use. That's why I
> suggested to the OP in an earlier message in this thread, that with
> the amount of RAM he has (4GB), it will almost certainly make no
> difference at all what his page file settings are.
>
>
>
>> I'm sure that having the page file on my second disk made a
>> theoretical difference - but not one that I was able to notice.
>> There may be situations under which it would make a noticeable
>> difference, but not for everyday computing.

>
>
> I'll bet that if you had only 128MB of RAM, the two scenarios you
> describe above would show a substantial difference in performance.



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 01-19-2008, 03:17 PM
Ken Blake, MVP
 
Posts: n/a
Re: Swap file
On Sat, 19 Jan 2008 14:00:02 -0000, "Gerry" <gerry@nospam.com> wrote:

> Ken
>
> Dedicated partitions are prefereable unless you want to breed file
> fragmentation.



I think we've had this discussion before, Gerry. We disagree, but I
don't want to argue about it with you. I'll continue to post what I
believe to be correct. You are welcome to do the same.




> Ken Blake, MVP wrote:
> > On Fri, 18 Jan 2008 13:55:41 -0500, Leonard Grey
> > <Leonard@Grey.invalid> wrote:
> >
> >> That's easy: You need to create a partition on the second disk to
> >> hold the swap file (at least). Once that's done, you just select that
> >> partition in XP's Virtual Memory property sheet and select 'system
> >> managed size'.

> >
> >
> > If you're saying that you need to create a *separate* partition on
> > that second disk, just for the page file, no you don't. In fact, you
> > generally shouldn't. The main performance issue with the page file is
> > the time it takes to move the drive's read/write heads to and from it.
> > The way to minimize that head movement time is to put the page file on
> > the most used-partition of the least-used physical drive.
> >
> >
> >> This next part is just my opinion, so no harm no foul if you don't
> >> agree.
> >>
> >> For several years I had the same setup as you are proposing: I
> >> created a 2MB partition on a second internal hard disk and put my
> >> page file there. (You may need more than 2MB.) I did this because I
> >> read - in a Microsoft KB article among other places - that this was
> >> a way to improve your computer's performance if the second hard disk
> >> was at least as fast as the first and accessed less frequently than
> >> the first disk. Well guess what? I didn't notice a da*n bit of
> >> difference. Recently, I abandoned this setup and went back to having
> >> my swap file on the Windows partition. Guess what? I didn't notice a
> >> da*n bit of difference.

> >
> >
> > Almost certainly because you had sufficient RAM for the applications
> > you run, so there was very little page file use. Page file placement
> > is only significant if there's a lot of page file use. That's why I
> > suggested to the OP in an earlier message in this thread, that with
> > the amount of RAM he has (4GB), it will almost certainly make no
> > difference at all what his page file settings are.
> >
> >
> >
> >> I'm sure that having the page file on my second disk made a
> >> theoretical difference - but not one that I was able to notice.
> >> There may be situations under which it would make a noticeable
> >> difference, but not for everyday computing.

> >
> >
> > I'll bet that if you had only 128MB of RAM, the two scenarios you
> > describe above would show a substantial difference in performance.

>


--
Ken Blake, Microsoft MVP Windows - Shell/User
Please Reply to the Newsgroup
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 01-19-2008, 08:34 PM
gordon@turton.my-bulldog.com
 
Posts: n/a
Re: Swap file
If your system is doing little or no paging then there will be no
perceptible benefit from any tuning that you do.
If there is not a problem then don't waste any time fixing it.

If the physical RAM is larger than the working set (the RAM used by
Windows plus the applications you normally use) then minimal if any
paging will be taking place and the position and fragmentation level
of the page file is completely inconsequential.

After booting up and loading your normal applications, the status of
the RAM can be established in a minute by opening the Task Manager and
clicking the Performance tab (this description is specific to XP) :

The Physical Memory (K) box on my system right now says: Total:
916848, Available: 318312, System Cache: 442616,
so I can see that 318312 bytes of the 1GB RAM is unused (about 30%).
Every time I check it, it is about the same.
So when my system reaches normal "steady state" there is no need for
paging, everything fits into RAM.

The Commit Charge (K) box says: Total 563880, Limit: 2891056, Peak:
820080, so I see that the most RAM+page used since last bootup is
820080, less than my physical RAM, and the steady-state RAM+page in
use 577176 is well below the physical RAM.

If physical RAM is inadequate for your working set then a RAM upgrade
is far better than a well-tuned paging setup as, to give a quote from
the Microsoft technical article in the link below, "physical RAM can
be almost one million times faster than a hard disk" :
http://blogs.msdn.com/ntdebugging/ar...hell-game.aspx

If you do need to indulge in paging then, as has been said above, your
page file should be on your fastest HD together with a set of your
least accessed files.
If you are limited to one HD then the page file should be on the outer
edge (fastest part) together with your most highly accessed other
files (this would normally be accomplished by creating a partition on
the outer edge) in order to minimize seek time (the slowest action of
hard disk access by far).

The directory files (folders) which are often deeply nested in modern
Windows installations should be close to the page file and all files
on this partition need to be kept at a very low level of
fragmentation.

------------
Regards,
Gordon.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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. The time now is 05:18 PM.


Registry Mechanic - Free Scan Now
Driver Scanner 2009 - Free Scan Now




Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74