Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > Optimum Swap File Size with 4G of RAM

Reply
Thread Tools Display Modes

Optimum Swap File Size with 4G of RAM

 
 
Walter_Slipperman
Guest
Posts: n/a

 
      01-11-2008
I have Vista Home Premium 64 and 4G of RAM.

I have set up my 750G drive with 1 primary drive for Vista, 1 primary for
XP, 1 primary for an alt OS, and then 1 extended drive that contains 1
logical drive for Vista swap, 1 logical drive for XP swap and the remaining
large logical drive for Data.

I have set the swap drives to be 4G each because it seems to me that they
won't need to be as large as the otherwise suggested two or three times the
RAM because I figure with that much RAM I shouldn't find myself using
virtual memory. As far as I know I don't do things that require hugh
amounts of memory, like photo and video editing.

- Is it a mistake to have the virtual memory (the swap file) approximately
the size of the RAM even when I have a lot of RAM?

-- I assume that I can use Disk Management to increase the size of the swap
drives at the expense of making other drives smaller. If I do want to
increase the size of the swap drive how would I make sure that the Data
drive is the drive that is being shrinked to accomodate this?

--- If there is data on the Data drive (there is none yet) how do I insure
that the swap drive gets an efficient section of the Data drive if it eats
into it?

---- And does XP behave the same way with this issue, because I also have a
4G swap drive for it?

////Walter////


 
Reply With Quote
 
 
 
 
the wharf rat
Guest
Posts: n/a

 
      01-11-2008
In article <>,
Walter_Slipperman <> wrote:
>
>- Is it a mistake to have the virtual memory (the swap file) approximately
>the size of the RAM even when I have a lot of RAM?
>


No. In fact, the real/swap ratio should go down as the amount of
real memory rises.

The old rule of thumb was 2x real memory. As real ram amounts
increased and thus decreased the need for paging this moved to swap size
should equal ram size. Certain operating systems use swap space as temp or
scratch space and motivate you to allocate extra swap. Windows doesn't
do that AFAIK.

>-- I assume that I can use Disk Management to increase the size of the swap
>drives at the expense of making other drives smaller. If I do want to
>increase the size of the swap drive how would I make sure that the Data
>drive is the drive that is being shrinked to accomodate this?
>
>--- If there is data on the Data drive (there is none yet) how do I insure
>that the swap drive gets an efficient section of the Data drive if it eats
>into it?
>
>---- And does XP behave the same way with this issue, because I also have a
>4G swap drive for it?
>
>////Walter////
>
>



 
Reply With Quote
 
John Smith
Guest
Posts: n/a

 
      01-11-2008
1st of all you dont need to put a swap file on each drive
2nd 32 bit OS's cannot access of handle chunks of memory either ram or
virtual that are bigger
than 4 gigs..

making partitions for virtual memory (pagefiles) is stupid unless you put
the pagefile on a SECOND drive

thus the smartest thing to do is to make a FIRST partition of a very fast
second or third drive that is not used for other things much, and put it
there.. the only reason for the parition is to ensure that it wont be
fragmented.. and that its located in the outer rims of the disk where the
speed of the disk is maximum thus it can provide faster data flow

But really all this is crap.. you wont see much difference.. if you want
speed first of all, you should avoid vista (the worst OS microsoft has made
since windows ME) that is 50% slower than XP in everything...

"Walter_Slipperman" <> wrote in message
news:...
>I have Vista Home Premium 64 and 4G of RAM.
>
> I have set up my 750G drive with 1 primary drive for Vista, 1 primary for
> XP, 1 primary for an alt OS, and then 1 extended drive that contains 1
> logical drive for Vista swap, 1 logical drive for XP swap and the
> remaining large logical drive for Data.
>
> I have set the swap drives to be 4G each because it seems to me that they
> won't need to be as large as the otherwise suggested two or three times
> the RAM because I figure with that much RAM I shouldn't find myself using
> virtual memory. As far as I know I don't do things that require hugh
> amounts of memory, like photo and video editing.
>
> - Is it a mistake to have the virtual memory (the swap file) approximately
> the size of the RAM even when I have a lot of RAM?
>
> -- I assume that I can use Disk Management to increase the size of the
> swap drives at the expense of making other drives smaller. If I do want
> to increase the size of the swap drive how would I make sure that the Data
> drive is the drive that is being shrinked to accomodate this?
>
> --- If there is data on the Data drive (there is none yet) how do I insure
> that the swap drive gets an efficient section of the Data drive if it eats
> into it?
>
> ---- And does XP behave the same way with this issue, because I also have
> a 4G swap drive for it?
>
> ////Walter////
>
>



 
Reply With Quote
 
Walter_Slipperman
Guest
Posts: n/a

 
      01-11-2008

"the wharf rat" <> wrote in message
news:fm851k$ace$...
> In article <>,
> Walter_Slipperman <> wrote:
>>
>>- Is it a mistake to have the virtual memory (the swap file) approximately
>>the size of the RAM even when I have a lot of RAM?
>>

>
> No. In fact, the real/swap ratio should go down as the amount of
> real memory rises.
>

Thanks.

 
Reply With Quote
 
HeyBub
Guest
Posts: n/a

 
      01-11-2008
Walter_Slipperman wrote:
> I have Vista Home Premium 64 and 4G of RAM.
>
> I have set up my 750G drive with 1 primary drive for Vista, 1 primary
> for XP, 1 primary for an alt OS, and then 1 extended drive that
> contains 1 logical drive for Vista swap, 1 logical drive for XP swap
> and the remaining large logical drive for Data.
>
> I have set the swap drives to be 4G each because it seems to me that
> they won't need to be as large as the otherwise suggested two or
> three times the RAM because I figure with that much RAM I shouldn't
> find myself using virtual memory. As far as I know I don't do things
> that require hugh amounts of memory, like photo and video editing.
>
> - Is it a mistake to have the virtual memory (the swap file)
> approximately the size of the RAM even when I have a lot of RAM?
>
> -- I assume that I can use Disk Management to increase the size of
> the swap drives at the expense of making other drives smaller. If I
> do want to increase the size of the swap drive how would I make sure
> that the Data drive is the drive that is being shrinked to accomodate
> this?
> --- If there is data on the Data drive (there is none yet) how do I
> insure that the swap drive gets an efficient section of the Data
> drive if it eats into it?
>
> ---- And does XP behave the same way with this issue, because I also
> have a 4G swap drive for it?
>


The optimum amount of a swap file is contingent on the applications running
at the time. For ordinary, piddly, things, virtual memory may be virtually
unused. When really pushing the machine, lots of paging may be required for
efficient use. That's why it's usually best to let the system manage the
file - it can do so dynamically.


 
Reply With Quote
 
Walter_Slipperman
Guest
Posts: n/a

 
      01-11-2008



"HeyBub" <> wrote in message
news:%...
> Walter_Slipperman wrote:
>> I have Vista Home Premium 64 and 4G of RAM.
>>
>> I have set up my 750G drive with 1 primary drive for Vista, 1 primary
>> for XP, 1 primary for an alt OS, and then 1 extended drive that
>> contains 1 logical drive for Vista swap, 1 logical drive for XP swap
>> and the remaining large logical drive for Data.
>>
>> I have set the swap drives to be 4G each because it seems to me that
>> they won't need to be as large as the otherwise suggested two or
>> three times the RAM because I figure with that much RAM I shouldn't
>> find myself using virtual memory. As far as I know I don't do things
>> that require hugh amounts of memory, like photo and video editing.
>>
>> - Is it a mistake to have the virtual memory (the swap file)
>> approximately the size of the RAM even when I have a lot of RAM?
>>
>> -- I assume that I can use Disk Management to increase the size of
>> the swap drives at the expense of making other drives smaller. If I
>> do want to increase the size of the swap drive how would I make sure
>> that the Data drive is the drive that is being shrinked to accomodate
>> this?
>> --- If there is data on the Data drive (there is none yet) how do I
>> insure that the swap drive gets an efficient section of the Data
>> drive if it eats into it?
>>
>> ---- And does XP behave the same way with this issue, because I also
>> have a 4G swap drive for it?
>>

>
> The optimum amount of a swap file is contingent on the applications
> running at the time. For ordinary, piddly, things, virtual memory may be
> virtually unused. When really pushing the machine, lots of paging may be
> required for efficient use. That's why it's usually best to let the system
> manage the file - it can do so dynamically.


Do you think that it doesn't make sense to make a swap partition and I
should just let Vista do it on the Vista partition?

 
Reply With Quote
 
the wharf rat
Guest
Posts: n/a

 
      01-11-2008
In article <>, John Smith <> wrote:
>
>making partitions for virtual memory (pagefiles) is stupid unless you put
>the pagefile on a SECOND drive
>


Hmmm...

"The optimal solution, other than the solution of adding more physical
memory, is to do the following:

1. Create one paging file on the boot partition by using the
default settings.
2. Create another paging file on a less frequently used partition
on a separate physical disk or RAID volume.
You can create additional paging files for each separate physical disk or
RAID volume. "

Quoting the KB, BTW.

>
>But really all this is crap.. you wont see much difference.. if you want


You won't see any difference unless you work with a lot of
very large processes frequently (IE video editing) or switch users a lot.
All the stuff about drive layout optimization is also IMHO pointless. The
few milliseconds you might gain is lost in the noise.

 
Reply With Quote
 
the wharf rat
Guest
Posts: n/a

 
      01-11-2008
In article <#>,
HeyBub <> wrote:
>
>unused. When really pushing the machine, lots of paging may be required for
>efficient use. That's why it's usually best to let the system manage the
>file - it can do so dynamically.
>


Oh, gosh, no. Allowing dynamic page file management is bad for
a couple of reasons:

1. Growing and shrinking the pagefile is simply unneseccary
overhead

2. It leads to fragmentation of the page file.

 
Reply With Quote
 
the wharf rat
Guest
Posts: n/a

 
      01-11-2008
In article <#>,
Walter_Slipperman <> wrote:
>
>
>Do you think that it doesn't make sense to make a swap partition and I
>should just let Vista do it on the Vista partition?
>


The only reason to have a pagefile on the boot partition is to
get kernel dumps. The reason to put it on a seperate partition is that it
allows more efficient use of the boot file system. The reason to put it on
a seperate drive is that few IDE controllers are capable of intelligent
queueing so paging interferes with data access.

That being said, if you just pick a nice static size, like 2GB,
and leave it wherever windows puts it you probably will never notice any
small performance penalty over some complicated location scheme...

 
Reply With Quote
 
Walter_Slipperman
Guest
Posts: n/a

 
      01-11-2008
So should I just forget about the swap partition and delete that partition?
And then just let Vista do Virtual Memory with it set to "Automatically
manage paging file size for all drives"?

The whole idea of setting up swap drives was recommended to me by a guy who
helped with the initial hard drive partitioning when I was first setting up
the computer. I'm really not trying to tweak every last bit of performance
from the system. I just want something that is easily manageable. I could
delete the partition (and the XP swap partition too that I've set up for a
multi-boot system) and free up some space for my Data partition or the Vista
partition. What do you suggest?

\\\\Walter\\\\

"the wharf rat" <> wrote in message
news:fm8bnp$jse$...
> In article <>, John Smith <>
> wrote:
>>
>>making partitions for virtual memory (pagefiles) is stupid unless you put
>>the pagefile on a SECOND drive
>>

>
> Hmmm...
>
> "The optimal solution, other than the solution of adding more physical
> memory, is to do the following:
>
> 1. Create one paging file on the boot partition by using the
> default settings.
> 2. Create another paging file on a less frequently used partition
> on a separate physical disk or RAID volume.
> You can create additional paging files for each separate physical disk or
> RAID volume. "
>
> Quoting the KB, BTW.
>
>>
>>But really all this is crap.. you wont see much difference.. if you want

>
> You won't see any difference unless you work with a lot of
> very large processes frequently (IE video editing) or switch users a lot.
> All the stuff about drive layout optimization is also IMHO pointless. The
> few milliseconds you might gain is lost in the noise.
>


 
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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
swap file priority Techno Mage Windows Vista Performance 8 12-22-2007 04:08 AM
Separate partition for swap file Ferenc B. Windows Vista Installation 2 08-27-2007 12:20 PM
Re: Bitlocker swap file Jamie Hunter [MS] Windows Vista Security 6 12-13-2006 05:25 PM
Vista Swap File? Tom Ziegmann Windows Vista General Discussion 11 11-19-2006 07:51 AM
swap file Frank Windows Vista General Discussion 1 09-25-2006 07:56 AM



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