Page 1 of 2 12 LastLast
Results 1 to 16 of 19

Thread: Virtual Memory ... worth to modify ?

  1. #1
    Cov
    Cov is offline
    Covenant Cov's Avatar
    Join Date
    Jul 2007
    Posts
    562
    Thanks
    67
    Thanked
    19 times in 14 posts
    • Cov's system
      • Motherboard:
      • Zotac GeForce 9300 iTX
      • CPU:
      • Q9550 Yorkfield
      • Memory:
      • G.Skill PQ 4GB
      • Storage:
      • WD10EADS + Intel X25-M Postville
      • PSU:
      • Pico PSU 150-XT + 150W adapter
      • Case:
      • Lian Li PC-Q07 Silver
      • Operating System:
      • Windows 7 x64
      • Monitor(s):
      • LG IPS 236V
      • Internet:
      • o2 (6MB Broadband)

    Virtual Memory ... worth to modify ?

    As you may know, our HDDs (SATA/150) have transfer speeds of approx 118 MB/s.

    My DDR2-800 Memory is significant faster ...




    When I check under ...
    Start › system › advanced system settings › performance › settings › advance › virtual memory › change
    ... how much virtual memory has been assigned in my system, I get the following info:





    • By default, “Automatically manage paging file size for all drives” setting is selected so that Windows Vista system can manage the paging file without user’s interruption.
    • If you want change the paging file size, move the pagefile.sys to another drive, or disable virtual memory paging, uncheck the check box of Automatically manage paging file size for all drives.
    • Select and highlight the appropriate drive that users want to change the paging file settings under the box of “Drive [Volume Label]“.

    • To fix a permanent size for the paging file, click on Custom size button, and set the values of Initial Size (MB) and Maximum Size (MB).
    • Both values can be of same size to make the size of pagefile.sys static.
    • Then click on Set button.

    • System managed size is useful for users who do not want pagefile.sys to locate on system drive root and want to move its storage location to another drive, but still want Vista to dynamically manage and allocate the drive space for the paging usage.
    • To move the paging file to another drive, click on No paging file radio button, and click on Set button. Then select a different drive to set a new pagefile.sys with custom size or system managed size.
    • To disable paging file or virtual memory, simply set no paging files on all drives.

    At the moment I have 4 GB physical RAM (Vista x86) and I'm aware that the more RAM you have, the more Window assigns as paging file.

    If we consider about 4 to 5 GB memory to be reserved for the swap file and I had 8 GB RAM (Vista x64), couldn't I make Windows use my RAM instead of the HDD ?

    According to Everest are only about 25% of my RAM used after Vista has booted up.

    3.25 GB - 25% would mean up to 2.5 GB unused RAM

    Has anyone tried this out yet ?

  2. #2
    Senior Member Blaineoliver's Avatar
    Join Date
    Sep 2006
    Location
    London
    Posts
    1,128
    Thanks
    22
    Thanked
    70 times in 63 posts
    • Blaineoliver's system
      • Motherboard:
      • GA-790XT-UD4P
      • CPU:
      • Phenom II 720 x4 @ 3.5Ghz
      • Memory:
      • Crucial Ballistix 2x2GB DDR3
      • Storage:
      • Samsung F1 1TB
      • Graphics card(s):
      • HD 5770
      • PSU:
      • Chieftec 750 Modular A135
      • Case:
      • Chieftec mesh
      • Operating System:
      • Vista Ultimate
      • Monitor(s):
      • 2 x Samsung 22"
      • Internet:
      • 20Meg Virgin media

    Re: Virtual Memory ... worth to modify ?

    Some games refuse to run without pagefile. Try some see if you get a performance increase.

  3. #3
    Senior Member
    Join Date
    Oct 2008
    Posts
    476
    Thanks
    116
    Thanked
    56 times in 39 posts
    • Tonka777's system
      • Motherboard:
      • GA890GPA-UD3H
      • CPU:
      • Phenom 1090T
      • Memory:
      • 8192Mb Kingston Hyper X
      • Storage:
      • 1Tb+1Tb+500Gb Samsung F1's
      • Graphics card(s):
      • BFG GTX 280 OC2
      • PSU:
      • Antec TruePower 650
      • Case:
      • Lian Li PC7-FW
      • Operating System:
      • 7
      • Monitor(s):
      • Iiyama E1900WS
      • Internet:
      • Sky ADSL2

    Re: Virtual Memory ... worth to modify ?

    Bear in mind that each game/app is limited in address space by Windows, this is usually less than 3Gb, as there is a 3Gb switch for xp and Vista to allow it to use more.

    Also, i know that Windows likes to keep a large proportion of your Ram free just in case you are thinking about launching something else, i cant remember the specifics, hopefully someone else will!
    Last edited by Tonka777; 01-03-2009 at 10:21 PM. Reason: removal of useless info!

  4. #4
    Cov
    Cov is offline
    Covenant Cov's Avatar
    Join Date
    Jul 2007
    Posts
    562
    Thanks
    67
    Thanked
    19 times in 14 posts
    • Cov's system
      • Motherboard:
      • Zotac GeForce 9300 iTX
      • CPU:
      • Q9550 Yorkfield
      • Memory:
      • G.Skill PQ 4GB
      • Storage:
      • WD10EADS + Intel X25-M Postville
      • PSU:
      • Pico PSU 150-XT + 150W adapter
      • Case:
      • Lian Li PC-Q07 Silver
      • Operating System:
      • Windows 7 x64
      • Monitor(s):
      • LG IPS 236V
      • Internet:
      • o2 (6MB Broadband)

    Re: Virtual Memory ... worth to modify ?

    Was just thinking about Vista's Ready Boost but that is limited to max 4 GB additional memory from a USB device.
    Then I thought about using the whole of my 8 GB USB stick instead of the HDD, but looking at the transfer speed it seems as a no-brainer:

    USB 2.0 has a raw data rate at 480Mbps = 60 MB/s.
    Besides this, doesn't flash memory "wear out" ?

  5. #5
    Senior Member
    Join Date
    Dec 2008
    Location
    Cardiff
    Posts
    350
    Thanks
    24
    Thanked
    15 times in 14 posts
    • WhiteGiant's system
      • Motherboard:
      • Asus P5Q-E (1901 BIOS)
      • CPU:
      • Intel E8400 @ 3.6Ghz / TRUE Black
      • Memory:
      • 8gb Corsair 4-4-4-12 @2.1v
      • Storage:
      • 2 x 500gb Seagate (RAID0) + Storage drives(1.7tb)
      • Graphics card(s):
      • Powercolor 4870 1gb
      • PSU:
      • Enermax 500w (Modular)
      • Case:
      • Antec Nine Hundred v1
      • Operating System:
      • Win7 Home Premium
      • Monitor(s):
      • Belinea Artistline 22w
      • Internet:
      • Sky Max - oddly getting faster.

    Re: Virtual Memory ... worth to modify ?

    I've been trying to think of something to do with my 8gb, will watch closely.
    "Don't wanna see your face, don't wanna hear your voice . . ."

  6. #6
    Senior Member
    Join Date
    Jul 2004
    Location
    London
    Posts
    2,431
    Thanks
    99
    Thanked
    72 times in 48 posts
    • Mblaster's system
      • Motherboard:
      • ASUS PK5 Premium
      • CPU:
      • Intel i5 2500K
      • Memory:
      • 8gb DDR3
      • Storage:
      • Intel X25 SSD + WD 2TB HDD
      • Graphics card(s):
      • Nvidia GeForce GTX 570
      • PSU:
      • Corsair HX520
      • Case:
      • Antec P180
      • Operating System:
      • Windows 7 Professional x64
      • Monitor(s):
      • HP w2207 (22" wide)
      • Internet:
      • Rubbish ADSL

    Re: Virtual Memory ... worth to modify ?

    I have 4gb of RAM on Vista x64, and I removed the page file.

    Had no problems at all, although didn't really do any benchmarking to test if it improved performance.
    I don't mean to sound cold, or cruel, or vicious, but I am so that's the way it comes out.

  7. #7
    Senior[ish] Member Singh400's Avatar
    Join Date
    Jun 2008
    Location
    Earth
    Posts
    3,000
    Thanks
    130
    Thanked
    301 times in 239 posts
    • Singh400's system
      • Motherboard:
      • Asus P5Q Deluxe (BIOS 1406)
      • CPU:
      • Intel Core 2 Quad Q9450 2.66 GHz @ 3.6 GHz
      • Memory:
      • 4GB (2x2GB) Corsair TwinX DDR2 PC2-8500 @ 1080Mhz 5-5-5-15
      • Storage:
      • 4782 GB / 4.8 TB and increasing ;)
      • Graphics card(s):
      • XFX HD 6950 2GB / 800Mhz / 1250Mhz
      • PSU:
      • 620W Corsair HX Series Modular SLi PSU
      • Case:
      • Antec Twelve Hundred
      • Operating System:
      • Windows 7 Ultimate Edition x64
      • Monitor(s):
      • 24" Dell E248WFP TrueColour
      • Internet:
      • BT Infinity FTTC / 76 Mbps down & 16 Mbps up

    Re: Virtual Memory ... worth to modify ?

    The pagefile is there for a reason. Windows won't operate correctly without it. I've got tons of HDD space so I've got a 6GB static pagefile.


    [CPU: Q9450 @ 3.6Ghz|RAM: Corsair PC2-8500 (2x2GB)]
    [MOBO: Asus P5Q Deluxe (1406)|HDD: Samsung F1 750GB]
    [GFX: XFX HD6950 2GB (flashed to HD6970)|PSU: Corsair HX 620W]

  8. #8
    fold fold fold!
    Join Date
    Nov 2008
    Posts
    499
    Thanks
    25
    Thanked
    31 times in 24 posts
    • shbris's system
      • CPU:
      • Q8200
      • Memory:
      • 4GB
      • Storage:
      • 320GB and 640GB Caviar Blue WD
      • Graphics card(s):
      • 5850
      • Case:
      • Antec 900
      • Operating System:
      • Windows 7 64
      • Monitor(s):
      • 22" Dell Ultra
      • Internet:
      • 20Mbps / 756kbps

    Re: Virtual Memory ... worth to modify ?

    yep necessary evil

  9. #9
    One Great Ordeal!
    Join Date
    Feb 2005
    Posts
    1,764
    Thanks
    201
    Thanked
    56 times in 49 posts
    • digit's system
      • Motherboard:
      • Abit AB9 Quad GT
      • CPU:
      • Intel Core 2 Quad Q6600 @ 2.4 (Stock)
      • Memory:
      • 2 x 2048MB Corsair XMS2 DDR2 (PC6400) 2 x 2024MB OCZ Platnium DDR2 (PC6400)
      • Storage:
      • 1 x Seagate 500GB, 3 x WD 500GB
      • Graphics card(s):
      • Ati Radeon HD 4850 512MB
      • PSU:
      • Antec Quattro 1000W
      • Case:
      • Coolermaster Mystique
      • Operating System:
      • Windows 7 (64 Bit)
      • Monitor(s):
      • DGM 24" TFT
      • Internet:
      • Tiscali '8 Meg'

    Re: Virtual Memory ... worth to modify ?

    If you want to make a slight performance difference to your page file, having it on a different drive to the one windows is installed on is a good plan. If you really wanted faster performance on your primary hdd, switch to an SSD. Provided its using the newest chipset it would make a difference to access times.

  10. #10
    Cov
    Cov is offline
    Covenant Cov's Avatar
    Join Date
    Jul 2007
    Posts
    562
    Thanks
    67
    Thanked
    19 times in 14 posts
    • Cov's system
      • Motherboard:
      • Zotac GeForce 9300 iTX
      • CPU:
      • Q9550 Yorkfield
      • Memory:
      • G.Skill PQ 4GB
      • Storage:
      • WD10EADS + Intel X25-M Postville
      • PSU:
      • Pico PSU 150-XT + 150W adapter
      • Case:
      • Lian Li PC-Q07 Silver
      • Operating System:
      • Windows 7 x64
      • Monitor(s):
      • LG IPS 236V
      • Internet:
      • o2 (6MB Broadband)

    Re: Virtual Memory ... worth to modify ?

    You can indeed turn off the paging file 100%.
    And no, Windows will not just enable it again, which is why Windows/applications crash in funny ways, if all memory gets eaten up.

    Mark Russinovich, if you trust him as a source, writes this in his Windows internals books.
    There are also many others trustworthy sources that say the same.
    And if you investigate your own system, you'll see that it is the truth.
    My window Vista Ultimate 64 bit with 4 gigs of RAM runs perfect without paging files.
    I run 3ds Max 9, and Adobe Master Collection as my primary software to perform my work.
    Games Microsoft Flight X, and spiderman 3.
    I just concluded that with 4 gig why have a need of paging files, and my programs at least seem to open faster.
    Read this for specifics: http://support.microsoft.com/kb/889654

    Important line:
    "When no page file exists, or the page file is insufficient, the system reserves some virtual memory in the physical memory for its paging needs."

    In translation, if you don't have page file paging memory will be still used in physical memory which is surely faster then on HDD.
    And due to fact that paging is done even if there is a LOT of free memory there are some gains when working without PF.

    Which applications need PF to work I really don't know and as a programmer I would really like to see the problem which can't be solved without using PF.

    Anyway, I work with 4GB XPx64 and without PF.
    I have one Linux VM (with 1GB reserved) working almost all time except when playing games.
    And I tend to play high load games like Crysis or COD4 in 1680×1050 on ultra high settings…

    Disabling PF gives no visible performance increase generally, for example in some rare occasions you will spare your self waiting to copy large file when Windows suddenly decides to write large chunk of data to PF.
    Or after long inactivity without you will not need to wait for windows to restore PF data from disk as it will do instantly from memory.

    The most important reason I don't use PF is because my HDD is a LOT LOT quieter without it.

    Anyway gains and risks for disabling PF are minor, so I recommend disabling it and if after 1month (which is generally the time to populate your system with mostly used applications) you don't experience any problems leave it disabled. In this period save often

    Regards..
    Another consideration is security.

    With paging file, Windows can potentially save your files to disk.
    These files on HDD can be recoverable. Without paging files, anything in memory will basically not be "logged".
    That is why for some security programs, they also recommend turning paging off to prevent having a copy of your sensitive document/data to be saved on a HDD.
    Virtual memory is FAR slower than physical memory.
    If something gets move into the virtual memory, and you have to use it, you'll notice a delay in accessing whatever application got moved.
    Windows will move things to virtual memory (WHETHER OR NOT YOU HAVE PLENTY OF PHYSICAL MEMORY FREE) simply because it hasn't been active for X amount of time.

    Virtual Memory is a great safe guard against memory leaks, however, Windows' behavior on moving application to virtual memory even before the physical memory is reaching capacity is really annoying and a performance hit.

    If you are one of the few that have frequent FBI visits or do REALLY REALLY private stuff on your computer, you can set the paging file to empty out during shutdown, however, this significantly increases shutdown time and isn't recommended.
    It's also easily possible that the FBI would be able to access it even after it has been deleted (even after a secure "shred-style" delete), so it is likely not worth the trouble.
    ect ect ...

  11. #11
    Now 100% Apple free cheesemp's Avatar
    Join Date
    Apr 2007
    Location
    Southampton
    Posts
    1,216
    Thanks
    46
    Thanked
    59 times in 42 posts
    • cheesemp's system
      • Motherboard:
      • Gigabyte z77 something or another
      • CPU:
      • Intel i5 3570k @ stock
      • Memory:
      • 8gb
      • Storage:
      • 64Gb M4 SSD + 2x500Gb Sata II drives
      • Graphics card(s):
      • Geforce 285 GTX
      • PSU:
      • Antec 650W
      • Case:
      • Antec 300
      • Operating System:
      • Win7
      • Monitor(s):
      • 23" Samsung LED
      • Internet:
      • 14Mb O2

    Re: Virtual Memory ... worth to modify ?

    I've found real performance improvements spanning my page file over two disks on my work machine. Its only got 2Gb of RAM but putting the swap onto both drives resulted in visual studio almost doubling in responsiveness - It was almost unusable otherwise.

    I doubt you'd see any real gains taking it away although I would recommend setting it to a sensible static size so it doesn't fragment to much.

  12. #12
    DDY
    DDY is offline
    Sleeps late DDY's Avatar
    Join Date
    Jun 2006
    Location
    Local Cluster
    Posts
    1,741
    Thanks
    89
    Thanked
    285 times in 219 posts
    • DDY's system
      • Motherboard:
      • Gigabyte H67N-USB3
      • CPU:
      • Intel Core i5 2300 @ 1.0v
      • Memory:
      • 8GB (2x4GB) 1333MHz Mushkin
      • Storage:
      • Crucial M4 64GB
      • Graphics card(s):
      • Nvidia GTX670 2GB
      • PSU:
      • Silverstone ST45SF
      • Case:
      • Silverstone Sugo SG06B
      • Operating System:
      • Win 7 Pro

    Re: Virtual Memory ... worth to modify ?

    I've turned the page file off to re size a partition under Vista but forgot to turn it back on after. I'd constantly get windows notifications that my memory is running critically low, save work and close applications. Ignoring this (deliberately) I fired up another application and the machine locked up. Even with 2GB RAM, page file is essential.

  13. #13
    Senior[ish] Member Singh400's Avatar
    Join Date
    Jun 2008
    Location
    Earth
    Posts
    3,000
    Thanks
    130
    Thanked
    301 times in 239 posts
    • Singh400's system
      • Motherboard:
      • Asus P5Q Deluxe (BIOS 1406)
      • CPU:
      • Intel Core 2 Quad Q9450 2.66 GHz @ 3.6 GHz
      • Memory:
      • 4GB (2x2GB) Corsair TwinX DDR2 PC2-8500 @ 1080Mhz 5-5-5-15
      • Storage:
      • 4782 GB / 4.8 TB and increasing ;)
      • Graphics card(s):
      • XFX HD 6950 2GB / 800Mhz / 1250Mhz
      • PSU:
      • 620W Corsair HX Series Modular SLi PSU
      • Case:
      • Antec Twelve Hundred
      • Operating System:
      • Windows 7 Ultimate Edition x64
      • Monitor(s):
      • 24" Dell E248WFP TrueColour
      • Internet:
      • BT Infinity FTTC / 76 Mbps down & 16 Mbps up

    Re: Virtual Memory ... worth to modify ?

    Quote Originally Posted by Cov View Post
    ect ect ...
    Fascinating that Mark says that. Mark is like God of Windows. His word is Law.

    I'm gonna disable the page file tonight and see what happens...

    Oh and it's etc etc..., not ect ect


    [CPU: Q9450 @ 3.6Ghz|RAM: Corsair PC2-8500 (2x2GB)]
    [MOBO: Asus P5Q Deluxe (1406)|HDD: Samsung F1 750GB]
    [GFX: XFX HD6950 2GB (flashed to HD6970)|PSU: Corsair HX 620W]

  14. #14
    Senior Member
    Join Date
    Jul 2004
    Location
    London
    Posts
    2,431
    Thanks
    99
    Thanked
    72 times in 48 posts
    • Mblaster's system
      • Motherboard:
      • ASUS PK5 Premium
      • CPU:
      • Intel i5 2500K
      • Memory:
      • 8gb DDR3
      • Storage:
      • Intel X25 SSD + WD 2TB HDD
      • Graphics card(s):
      • Nvidia GeForce GTX 570
      • PSU:
      • Corsair HX520
      • Case:
      • Antec P180
      • Operating System:
      • Windows 7 Professional x64
      • Monitor(s):
      • HP w2207 (22" wide)
      • Internet:
      • Rubbish ADSL

    Re: Virtual Memory ... worth to modify ?

    Quote Originally Posted by Singh400 View Post
    Fascinating that Mark says that. Mark is like God of Windows. His word is Law.

    I'm gonna disable the page file tonight and see what happens...

    Oh and it's etc etc..., not ect ect
    It's not going to be all that exciting, unless you don't have much memory and your PC crashes

    Would be interesting if someone (someone less lazy than me) benchmarked it to see if theres actually any performance gains, and where/how much etc.
    I don't mean to sound cold, or cruel, or vicious, but I am so that's the way it comes out.

  15. #15
    Senior Member
    Join Date
    Aug 2008
    Posts
    492
    Thanks
    8
    Thanked
    106 times in 80 posts

    Re: Virtual Memory ... worth to modify ?

    Quote Originally Posted by Singh400 View Post
    Fascinating that Mark says that. Mark is like God of Windows. His word is Law.

    I'm gonna disable the page file tonight and see what happens...
    I think he just said it was *possible* to completely disable the pagefile without Windows automatically re-enabling it - he didn't necessarily say it was a good idea, unless I've misunderstood something.

    [H]ard|Forum willy-waving if anyone's interested...

  16. #16
    MSFT Paul Adams's Avatar
    Join Date
    Jul 2003
    Location
    %systemroot%
    Posts
    1,926
    Thanks
    29
    Thanked
    77 times in 59 posts
    • Paul Adams's system
      • Motherboard:
      • Gigabyte GA-X58A-UD3R (Rev.2)
      • CPU:
      • Intel Core i7 950
      • Memory:
      • 12GB (3x4GB) Kingston DDR3
      • Storage:
      • OCZ 120GB SSD / 2x Samsung Spinpoint F1 500GB
      • Graphics card(s):
      • Zotac GeForce GTX 670 4GB
      • PSU:
      • Corsair AX850
      • Case:
      • NZXT Switch 810
      • Operating System:
      • Windows 8 x64 Pro
      • Monitor(s):
      • Samsung 27" 120Hz S27A950D
      • Internet:
      • 100Mbps fiber

    Re: Virtual Memory ... worth to modify ?

    You are unlikely to see significant benefits from resizing, removing or relocating the pagefile(s) on Windows clients, I could maybe see a reason for tuning it on servers but even then after baselining to ensure it actually makes a positive difference.

    By having no pagefile you can prevent some apps from launching at all.

    By relocating the pagefile to a drive other than the system drive you may gain a tiny bit of performance for app loading times or under heavy memory pressure, but at the cost of being able to produce a memory dump if a bluescreen occurs.

    Resizing the page file on the system drive to less than ~1GB can also make a memory dump impossible if a bluescreen occurs - this is where the populated contents of physical RAM get dumped.


    Understanding why paging occurs can be useful - it is a natural housekeeping job done by the kernel to free up limited resources (physical RAM) which is in use but has not been used recently (or tagged as "lock in physical memory" by the developer using APIs).

    Where XP used to free up pages of physical memory and have a large list of empty pages, Vista would rather use these empty pages for caching - to prevent the need for accessing the page file to pull virtual memory contents back from disk.

    If physical memory used hits a threshold, this cache can be reduced to satisfy memory requests from apps, so it's not preventing anything from working as intended.


    Also, on the ReadyBoost topic - this is pure for file caching and not a replacement for the pagefile.
    The pagefile contains "valid data mapped in the system virtual address space" and so if it suddenly vanished then it will likely cause a bluescreen.
    USB memory sticks are intended to be removable - even without warning - so by using them only as a fast version of files read from disk it does not matter if it gets ejected suddenly as the data can still be obtained from its original source.


    From personal experience (not measured benchmarks) I have found much more perceptible performance gains from using suspend-to-RAM instead of startup/shutdown - as the cache isn't flushed so when you resume it still contains valid, usable data without needing to go to the disk.

    I have not seen any empirical evidence that removing, resizing or relocating the pagefile helps under "normal circumstances" - only synthetic lab stress tests which don't help in the real world.
    There will be people that will argue with that, of course
    ~ I have CDO. It's like OCD except the letters are in alphabetical order, as they should be. ~
    [ Technet Blog ]
    PC: Win8 x64 | Gigabyte GA-X58A-UD3R | Core i7 950 | 12GB DDR3 | 120GB SSD | 2x500GB SATA-300 | GeForce GTX670 4GB
    Camera: Canon 60D | Sigma 10-20/4.0-5.6 | Canon 100/2.8 | Tamron 18-270/3.5-6.3

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Best Memory for Stock Q6600 Based System
    By tintax in forum PC Hardware
    Replies: 6
    Last Post: 16-06-2008, 09:52 PM
  2. Replies: 5
    Last Post: 11-05-2008, 07:44 PM
  3. New project team aims to bring DX10 XP
    By Oobie- in forum General Gaming Chatter
    Replies: 17
    Last Post: 09-09-2007, 08:30 PM
  4. Memory Problem
    By marko in forum Help! Quick Relief From Tech Headaches
    Replies: 13
    Last Post: 10-02-2007, 03:38 PM
  5. Replies: 12
    Last Post: 04-11-2005, 11:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •