The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    low virtual memory=bad game performance

    Discussion in 'Gaming (Software and Graphics Cards)' started by m4rc, Aug 29, 2006.

  1. m4rc

    m4rc Notebook Evangelist

    Reputations:
    109
    Messages:
    457
    Likes Received:
    0
    Trophy Points:
    30
    hello again,

    Recently css has been freezing up. with an application error 0xc000012d.
    i did my research on google and figured that this has something to do with low virtual memory or i think tahat's ram.?
    any way, by increasing this, will css not freeze anymore? how would you increase this.

    btw this is the ttrue list of stuff i did to try to get css to be playable: new drivers, reinstall steam, reinstall css, turn off sound, change graphic settings, lower resoultion, turn alot of eyecandy in game off, stop programs from auto booting, uhh contacting steam(no help) a loooooooootttttttt of stuff, delete files in valve folder
     
  2. Bog

    Bog Losing it...

    Reputations:
    4,018
    Messages:
    6,046
    Likes Received:
    7
    Trophy Points:
    206
    You can increase virtual memory by right-clicking on My Computer, going to the Advanced tab, Settings for Performance. Go to the second advanced tab, where you will see Change for virtual memory.

    By the way, how much RAM are you running on?
     
  3. m4rc

    m4rc Notebook Evangelist

    Reputations:
    109
    Messages:
    457
    Likes Received:
    0
    Trophy Points:
    30
    supposedly 1 gig


    settings for performance?
     
  4. sionyboy

    sionyboy Notebook Evangelist

    Reputations:
    100
    Messages:
    535
    Likes Received:
    0
    Trophy Points:
    30
    Set to 1536 (both minimum and maximum values)
     
  5. m4rc

    m4rc Notebook Evangelist

    Reputations:
    109
    Messages:
    457
    Likes Received:
    0
    Trophy Points:
    30
    my min is already a 1536, is it safe or better to put higher?

    it says 33424mb is available
     
  6. sionyboy

    sionyboy Notebook Evangelist

    Reputations:
    100
    Messages:
    535
    Likes Received:
    0
    Trophy Points:
    30
    It should be set to one and a half times the amount of memory you have in your system. In your case, it should be set to

    Initial Size - 1536
    Maximum Size - 1536.

    Don't forget to press SET to, as this applies the memory settings.
     
  7. m4rc

    m4rc Notebook Evangelist

    Reputations:
    109
    Messages:
    457
    Likes Received:
    0
    Trophy Points:
    30
    but is it better to put more?

    bump? read above^
     
  8. Charles P. Jefferies

    Charles P. Jefferies Lead Moderator Super Moderator

    Reputations:
    22,339
    Messages:
    36,639
    Likes Received:
    5,091
    Trophy Points:
    931
    Remember that you can Edit your post and add something you forgot. Please do that.

    If you have 1GB of RAM, I'd set 1.5x that as both your min & max as posted.
     
  9. m4rc

    m4rc Notebook Evangelist

    Reputations:
    109
    Messages:
    457
    Likes Received:
    0
    Trophy Points:
    30
    k, i did that but css still freezes :(
     
  10. danimal1968

    danimal1968 Notebook Enthusiast

    Reputations:
    0
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    15
    You can always try making it a little bigger and see if it helps. Undo the change if it doesn't.
     
  11. m4rc

    m4rc Notebook Evangelist

    Reputations:
    109
    Messages:
    457
    Likes Received:
    0
    Trophy Points:
    30
    k thanks for the answer
     
  12. Jalf

    Jalf Comrade Santa

    Reputations:
    2,883
    Messages:
    3,468
    Likes Received:
    0
    Trophy Points:
    105
    No, setting it to 1.5x your memory makes no sense.
    The idea is that your RAM + page file size should add up to *at least* the total amount of memory you need.

    If you use that 1.5x setting on low-end systems, there won't be enough virtual memory. There isn't some "golden ratio" (Except in the sense that the higher you set it, the safer you are), but on the contrary, the less RAM you have, the bigger your pagefile needs to be.

    If you want to make sure you don't run into problems, set it to 3GB (You have 1GB memory, and 32-bit OS'es can handle 4GB memory total, so up to 30GB pagefile makes sense.)

    You don't lose performance or anything else (other than hard disk space) by enlarging the page file.
     
  13. Charles P. Jefferies

    Charles P. Jefferies Lead Moderator Super Moderator

    Reputations:
    22,339
    Messages:
    36,639
    Likes Received:
    5,091
    Trophy Points:
    931
    You mean 3GB?

    I normally have mine set to 1.5GB as the min, and 2GB as the max, as I have 2GB of RAM.
     
  14. Jalf

    Jalf Comrade Santa

    Reputations:
    2,883
    Messages:
    3,468
    Likes Received:
    0
    Trophy Points:
    105
    Err oops, yes, 3 GB. I don't know if Windows would allow a 30GB pagefile, but that technically wouldn't perform worse. it'd just use up a lot of disk space... :p
     
  15. m4rc

    m4rc Notebook Evangelist

    Reputations:
    109
    Messages:
    457
    Likes Received:
    0
    Trophy Points:
    30
    argh, total confusion lol
    i fixed css by doing something verysimple
    playing ind direct x 7 :( and hardware sync)
    only problem is horrible graphics :(
    Any way i have my virtual memory at 1900 for min and max, is that ok?
    i have 1 gig


    if you put a very large number in min and max...can you over clock your RAM?????
    that would be odd...
     
  16. PC_pulsar

    PC_pulsar Notebook Evangelist

    Reputations:
    5
    Messages:
    479
    Likes Received:
    0
    Trophy Points:
    30
    I have no virtual memory on anymore. It only slows down my lappy.
     
  17. m4rc

    m4rc Notebook Evangelist

    Reputations:
    109
    Messages:
    457
    Likes Received:
    0
    Trophy Points:
    30
    argh, total confusion lol
    i fixed css by doing something verysimple
    playing ind direct x 7 and hardware sync)
    only problem is horrible graphics
    Any way i have my virtual memory at 1900 for min and max, is that ok?
    i have 1 gig


    if you put a very large number in min and max...can you over clock your RAM?????
    that would be odd...


    ^that and what is the difference with direct x 9 and 7 for games
     
  18. sionyboy

    sionyboy Notebook Evangelist

    Reputations:
    100
    Messages:
    535
    Likes Received:
    0
    Trophy Points:
    30
    It just allows for better visual effects. For example, In DX9 mode in HL2 you get nice shiny water with waves, and frosted glass effects. DX7 cannot do that.
     
  19. m4rc

    m4rc Notebook Evangelist

    Reputations:
    109
    Messages:
    457
    Likes Received:
    0
    Trophy Points:
    30
    yea because css only runs in dx7 for me...dosent even run in 8 or 8.1 :(
     
  20. sionyboy

    sionyboy Notebook Evangelist

    Reputations:
    100
    Messages:
    535
    Likes Received:
    0
    Trophy Points:
    30
    What graphics card do you own ? Do you have latest DirectX setup on your system? Are your graphic card drivers properly installed on your machine?
     
  21. m4rc

    m4rc Notebook Evangelist

    Reputations:
    109
    Messages:
    457
    Likes Received:
    0
    Trophy Points:
    30
    yea man i got catalyst 6.8 and ATI x1400 512
    i got direct x 9c
     
  22. Jalf

    Jalf Comrade Santa

    Reputations:
    2,883
    Messages:
    3,468
    Likes Received:
    0
    Trophy Points:
    105
    No it doesn't. It consumes some HDD space, but it doesn't slow you down.
     
  23. PC_pulsar

    PC_pulsar Notebook Evangelist

    Reputations:
    5
    Messages:
    479
    Likes Received:
    0
    Trophy Points:
    30
    HDD space is much slower than Memory space, so in fact it does can slow your system down. But if you haven't enough mem space it will make your pc or lappy faster because the free memory (saved in the virtual memory) could be used for games or other software that's being used at that moment.
     
  24. Jalf

    Jalf Comrade Santa

    Reputations:
    2,883
    Messages:
    3,468
    Likes Received:
    0
    Trophy Points:
    105
    Yes, HDD is a lot slower, but that doesn't make your system slower. Windows will only *use* the pagefile when it runs out of physical memory (That is, in cases that would either cause programs to crash if you had no pagefile, or at the very least, require much more aggressive freeing of unused memory, which would also lower performance indirectly.

    Having a pagefile does not slow down your system because Windows does not use it directly. When something it needs is located on the pagefile, it loads that data into memory, swapping out the least used data. After that, it is in RAM which is fast. So programs never access the pagefile, and once again, won't slow down your system.

    By the same logic, getting rid of your system RAM would speed up your system, because the CPU has a cache that's faster. The exact same applies. It uses RAM to store all the stuff that doesn't fit into cache, but the data that is actually being used currently is in the cache anyway, and so doesn't suffer the slowdowns of RAM.
    And similarly, the data being used is by definition located in RAM, and so it won't be slowed down by a pagefile.
     
  25. sionyboy

    sionyboy Notebook Evangelist

    Reputations:
    100
    Messages:
    535
    Likes Received:
    0
    Trophy Points:
    30
    Myth - "Disabling the Pagefile improves performance."

    Reality - "You gain no performance improvement by turning off the Pagefile. When certain applications start, they allocate a huge amount of memory (hundreds of megabytes typically set aside in virtual memory) even though they might not use it. If no Pagefile (i.e., virtual memory) is present, a memory-hogging application can quickly use a large chunk of RAM. Even worse, just a few such programs can bring a machine loaded with memory to a halt. Some applications (e.g., Adobe Photoshop) will display warnings on startup if no Pagefile is present."

    "In modern operating systems, including Windows, application programs and many system processes always reference memory using virtual memory addresses which are automatically translated to real (RAM) addresses by the hardware. Only core parts of the operating system kernel bypass this address translation and use real memory addresses directly. All processes (e.g. application executables) running under 32 bit Windows gets virtual memory addresses (a Virtual Address Space) going from 0 to 4,294,967,295 (2*32-1 = 4 GB), no matter how much RAM is actually installed on the computer. In the default Windows OS configuration, 2 GB of this virtual address space are designated for each process' private use and the other 2 GB are shared between all processes and the operating system. RAM is a limited resource, whereas virtual memory is, for most practical purposes, unlimited. There can be a large number of processes each with its own 2 GB of private virtual address space. When the memory in use by all the existing processes exceeds the amount of RAM available, the operating system will move pages (4 KB pieces) of one or more virtual address spaces to the computer's hard disk, thus freeing that RAM frame for other uses. In Windows systems, these "paged out" pages are stored in one or more files called pagefile.sys in the root of a partition. Virtual Memory is always in use, even when the memory required by all running processes does not exceed the amount of RAM installed on the system."

    Source
     
  26. PC_pulsar

    PC_pulsar Notebook Evangelist

    Reputations:
    5
    Messages:
    479
    Likes Received:
    0
    Trophy Points:
    30
    That's the reason why i disabled the virtual memory. I have much performance gain in ut2004 because of disabling it. And other programs are running smoother too
     
  27. chris2pher71

    chris2pher71 Notebook Evangelist

    Reputations:
    64
    Messages:
    433
    Likes Received:
    0
    Trophy Points:
    30
    maybe its just network lag...u on cable or dsl? 56k?
     
  28. m4rc

    m4rc Notebook Evangelist

    Reputations:
    109
    Messages:
    457
    Likes Received:
    0
    Trophy Points:
    30
    Why an argument?
    is 1900 ram [/I]better than the 1.5 amount of 1532 ram or something?
     
  29. Charles P. Jefferies

    Charles P. Jefferies Lead Moderator Super Moderator

    Reputations:
    22,339
    Messages:
    36,639
    Likes Received:
    5,091
    Trophy Points:
    931
    UT2004 shouldn't be running anything but smooth on a Go7900GTX + Core Duo. I don't think RAM is to blame there.

    I think it is safer to leave VM enabled. I often go very, very close to using the full 2GB I have on Photoshop (1.8GB+).
     
  30. Jalf

    Jalf Comrade Santa

    Reputations:
    2,883
    Messages:
    3,468
    Likes Received:
    0
    Trophy Points:
    105
    No, you have not disabled virtual memory, you have disabled the pagefile. Virtual memory is still in use, because that is one of the features that makes it possible to run more than one process at a time. And like said above (at least half a dozen times so far), disabling your page file won't increase performance.

    Virtual memory *can* not be disabled, any more than your file system can be disabled.
     
  31. m4rc

    m4rc Notebook Evangelist

    Reputations:
    109
    Messages:
    457
    Likes Received:
    0
    Trophy Points:
    30
    ok what DOES increase performance, and how do you do this?
    setting my ram to a greater # makes performance better?
     
  32. Jalf

    Jalf Comrade Santa

    Reputations:
    2,883
    Messages:
    3,468
    Likes Received:
    0
    Trophy Points:
    105
    If by "setting my ram to a greater #", you mean buying more RAM, then yes, that often helps... ;)

    The way programmers see it is in terms of a memory hierarchy. You have multiple "layers" of memory, each one smaller but faster than the underlying ones, and so you obviously want to avoid having to dive into the low-level layers.
    If you can fit the required data into the CPU's registers, everything runs insanely fast. Unfortunately, they can hold a combined 64 byte on a 32-bit CPU. Then there's the CPU cache, which is a lot bigger (up to 4MB for level 2 cache, 128kb for level 1), and if you can fit all the currently needed data there, you're still doing good. If that fails, you have to use the underlying system RAM, which is a lot slower, but there's lots of it.
    And finally, as a backup, you have the pagefile which is sloooooooooow, and is only really there to take the stuff that didn't fit into RAM.

    So the obvious way to improve performance is to ensure that you don't have more data than you have RAM. Either by buying more RAM, or, well, by running fewer, smaller programs... ;)

    Pagefile settings won't make a difference on performance, because as I said, it's only there as a safety net. It only affects you in the cases where things go wrong (and then you'd be a lot worse off without it), but as long as things go as planned, it doesn't impact performance or anything else.
     
  33. m4rc

    m4rc Notebook Evangelist

    Reputations:
    109
    Messages:
    457
    Likes Received:
    0
    Trophy Points:
    30
    okay, thanks, maybe i will go to 2 gig one day...
     
  34. unknown555525

    unknown555525 rawr

    Reputations:
    451
    Messages:
    1,630
    Likes Received:
    0
    Trophy Points:
    55
    The particular error you got in CSS is due to memory being maxed.

    I have only gotten this error on my older notebook with an ati mobility 7500 32MB
     
  35. m4rc

    m4rc Notebook Evangelist

    Reputations:
    109
    Messages:
    457
    Likes Received:
    0
    Trophy Points:
    30
    o rly?
    wellllllll........
    that's not the real problem because in direct x 7 the game works pergfectly...
    or could the maxed out memory bethe problem?
     
  36. KGann

    KGann NBR Themesong Writer

    Reputations:
    317
    Messages:
    2,742
    Likes Received:
    0
    Trophy Points:
    55
    I can't stand Source with DX7... it's insanly ugly. Why not just play 1.6? But, I guess that goes back to the rule of thumb- Performance over Graphics. :) I really only play Battlefield 1942 on my laptop, and I don't get any errors, and it runs pretty dang smooth on medium/low settings, 1024x768.
     
  37. PC_pulsar

    PC_pulsar Notebook Evangelist

    Reputations:
    5
    Messages:
    479
    Likes Received:
    0
    Trophy Points:
    30
    It isn't the ram i blame but my harddisk. Ut2004 runs smooth all the time but sometimes when my harddisk begins to work it will stutter for a short time. Now i disabled or pagefiling or virtual memory and Ut2004 doesn't have the harddisk stuttering problem anymore. I know it's weird but it's true it's something with te harddisk whose slowdown some games for a few seconds and the way above is my solution for the short stuttering.
     
  38. Jalf

    Jalf Comrade Santa

    Reputations:
    2,883
    Messages:
    3,468
    Likes Received:
    0
    Trophy Points:
    105
    Well, I'd expect DX9 mode to eat a lot more memory than DX7. So it could very well be the problem. :)

    Ok, to be precise, Windows does start using the pagefile before memory runs out entirely. This is, ironically, to ensure good performance. It tries to always have a chunk of RAM free, because it doesn't know when a program is going to suddenly try to allocate 100MB of memory. So it tries to gradually, without affecting performance, swap out bits of unused data. If it didn't do this, it'd risk suddenly having to swap 100MB, which would cause it to stall for entire seconds. No one wants that.

    About your stutter, there could be several explanations. First, does it keep occurring? It might well happen once or twice early on, until Windows has shuffled memory around satisfactoryily, so it can serve future memory requests without having to use the pagefile. But, and this is important, None of UT's data will end up in the pagefile. Instead, it pushes other programs to the pagefile to ensure that there's room for the currently used data, because this ensures good performance in the long run. So you might simply be trading your short moment of stutter for lower performance the rest of the time, or even saving up for some even bigger stutter. (Or just a program crash when it runs out of memory)
    Second, it sounds likely that your IDE drivers have a bit of a problem. I really hope they aren't set to PIO mode (and if they were, that'd probably give you even worse performance), but even if that's not the case, it sounds like they don't handle asynchronous transfers as well as they should.

    Basically though, you're playing a dangerous game. You're getting rid of a small amount of stutter (which most likely only occurs for the first minute of playing, or so), and what you get in return can be one or more of the following:
    - Risk of program crashes
    - Risk of bigger stutter later
    - Overall slightly lower performance.

    Basically, yes. The point is that you might well need more than 1.5x your memory. The pagefile is a safety net, and if you only allow it to catch half the accidents, it's not really much good. The bigger it is, the more accidents it'll be able to catch. And its ideal size isn't proportional to the amount of ram. On the contrary, the less RAM you have, the bigger pagefile you need.
     
  39. ikovac

    ikovac Cooler and faster... NBR Reviewer

    Reputations:
    872
    Messages:
    1,637
    Likes Received:
    0
    Trophy Points:
    55
    Good point Jalf!

    I had that problem with DVD-RW - for no obvious reason the mode switched from UDMA to PIO.

    I also think the best thing is to leave the virtual memory alone. Windows manage it. Somebody mentioned XP myths - well I encourage people to read that. I played with it a few times, and was happy for a while until the first crash, stutter, error message etc... I leave it alone and I never have any problems with gaming or whatsoever.

    Cheers,

    Ivan
     
  40. PC_pulsar

    PC_pulsar Notebook Evangelist

    Reputations:
    5
    Messages:
    479
    Likes Received:
    0
    Trophy Points:
    30
    Ok i will switch paging on, but i didn't have had any crashes at all since i changed it (2.5 months ago)
     
  41. Jalf

    Jalf Comrade Santa

    Reputations:
    2,883
    Messages:
    3,468
    Likes Received:
    0
    Trophy Points:
    105
    well, the crashes only occur when it runs out of memory.
    As long as your 2GB is enough, all is well.

    Basically, to give you an idea of the difference between running with and without a pagefile, Chaz said his Photoshop sessions might consume up to 1.8GB. If you've got a big pagefile, you can have all that running *while* playing, and it won't affect your performance. All 1.8GB of data will just be pushed to the pagefile because it's unused. (so yeah, while it's pushing that data, you'll probably see a bit of stuttering, but it'll pass)
    If you try that trick without a pagefile, *something* will crash. ;)
     
  42. usapatriot

    usapatriot Notebook Nobel Laureate

    Reputations:
    3,266
    Messages:
    7,360
    Likes Received:
    14
    Trophy Points:
    206
    I have 1024 Paging File on my laptop.
     
  43. sionyboy

    sionyboy Notebook Evangelist

    Reputations:
    100
    Messages:
    535
    Likes Received:
    0
    Trophy Points:
    30
    I have 2gb of system memory, and a 1gb pagefile. Highest pagefile usage I have seen so far is 84MB, that was encoding a DVD to mp4. Had FEAR and CoD2 running which had no effect on pagefile usage, and also opened Photoshop and about 15 photographs (6mp each). No trouble at all.