I only have 512MB of Ram how can I have a commit charge of 545488?

Jeff7

Lifer
Jan 4, 2001
41,596
20
81
I've got 1GB of RAM and my commit charge is nearly 3GB. How?
As far as I know, commit charge is the amount of physical RAM AND virtual RAM you currently have. Total is what is currently in use, and peak is - the peak that you've used thus far. :)
If your peak approaches your limit often, or tries to exceed it, you might need more RAM.
 

trashbox

Junior Member
Apr 6, 2004
7
0
0
You PC run faster without virtuall Ram ( pagefiles) If you Have 384 MB ram or more.

virtual ram use up you Hardrive Space & Slow it down By 30 % of you PC Perform.
 

JustAnAverageGuy

Diamond Member
Aug 1, 2003
9,057
0
76
Originally posted by: trashbox
You PC run faster without virtuall Ram ( pagefiles) If you Have 384 MB ram or more.

virtual ram use up you Hardrive Space & Slow it down By 30 % of you PC Perform.

In the old days, this was true. However with newer games, not always. It may also lead to some system instability.
 

Jeff7

Lifer
Jan 4, 2001
41,596
20
81
Originally posted by: trashbox
You PC run faster without virtuall Ram ( pagefiles) If you Have 384 MB ram or more.

virtual ram use up you Hardrive Space & Slow it down By 30 % of you PC Perform.

From what I've seen, it's usually a bad idea to disable your pagefile, as some programs need it, regardless of how much RAM is present. Try making it so that it's a set size - put the max and min equal to each other. The system won't allocate any overhead then to deciding how big to make the file.

In WinXP, to change your pagefile size:
Right Click My Computer
Properties
Advanced Tab
Settings button under the Performance section
Advanced Tab
Change button
Custom size
Set the max and min to the same; press Set. Then press the OK buttons until you're back at the desktop. You'll need to reboot in order to effect the changes.

 

JBT

Lifer
Nov 28, 2001
12,094
1
81
Originally posted by: trashbox
You PC run faster without virtuall Ram ( pagefiles) If you Have 384 MB ram or more.

virtual ram use up you Hardrive Space & Slow it down By 30 % of you PC Perform.

Thats a load of bull. It will not run 30% faster with out a page file and many programs actually REQUIRE you to have have one... I think about anyone who has looked into this in much detail says to keep your page file and ussually have it set to a static amount that is 1.5x the amount of your system ram.
 

KillaKilla

Senior member
Oct 22, 2003
416
0
0
Whats the harm of using this formula(if space is abundant):

3.75GB - (actual RAM)= Pagefile size?
That way you'll never run out? Or will apps use more if they detect more?
 

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
apps don't detect swap
apps have a virtual memory space of a set size (4GB theoretical on a 32bit machine, although I hear windows allows only 2GB)
to an app that space is all the same, it may use as much or little as it likes and doesn't care if it's on disk or in memory
the os then gives out memory space to apps as they request it and decides where that data will be stored (where in memory, or where on disk, if there isn't enough memory)
no program requires swap space, but, if enough memory is needed that the os can't find space in memory or in the limited page file you specify, then you're in trouble
 

Matthias99

Diamond Member
Oct 7, 2003
8,808
0
0
apps don't detect swap
apps have a virtual memory space of a set size (4GB theoretical on a 32bit machine, although I hear windows allows only 2GB)

Windows can support 4GB (or more, in the case of Windows Advanced Server) of RAM, but only 2GB can be addressed to any particular application unless it uses Microsoft's proprietary PAE (Physical Address Extension) API for its memory allocation. Almost nobody does this; it's usually easier to write your program in a UNIX of some sort if you need 4GB+ of memory available to it. The new 64-bit Windows for x86-64 should not suffer from this restriction, and Longhorn probably won't either (you should be able to address a full 4GB 32-bit virtual address space to any single program).

no program requires swap space, but, if enough memory is needed that the os can't find space in memory or in the limited page file you specify, then you're in trouble

Yep. Most programs will fail spectacularly if you run out of swapfile and they request more memory from the OS.
 

dullard

Elite Member
May 21, 2001
26,078
4,729
126
Originally posted by: kamper
no program requires swap space, but, if enough memory is needed that the os can't find space in memory or in the limited page file you specify, then you're in trouble
Only half true. Many programs will run just fine without any swap space. But many programs won't install without it either.

4fingerwu1: No one quite came out and answered you directly (although you should be able to infer the answer from the posts). Basically you have a swap file that was used. A swap file is the hard drive acting like extremely slow memory.

KillaKilla: There is one major problem with setting the swap file too big. A program which screws up could attempt to use all of that memory (well Windows limits a single thread to 2 GB, but you may have multi-threaded programs). I don't care how fast your hard drive is (assuming it isn't solid state), but if a program tries to do a few 2GB->2GB operations all at once and all you have is ~512 MB, then your computer will start thrashing the hard drive for hours (if not days). You can sit and wait for the program to stop doing that. Or you can shut off your computer as the hard drive is thrashing. Neither option is a very pleasant option. Trust me from experience, don't set your swap file to a size which is far more than you'll need. I personally won't set one bigger than 512 MB ever again (no matter how much memory I have).
 

Matthias99

Diamond Member
Oct 7, 2003
8,808
0
0
Originally posted by: dullard

KillaKilla: There is one major problem with setting the swap file too big. A program which screws up could attempt to use all of that memory (well Windows limits a single thread to 2 GB, but you may have multi-threaded programs). I don't care how fast your hard drive is (assuming it isn't solid state), but if a program tries to do a few 2GB->2GB operations all at once and all you have is ~512 MB, then your computer will start thrashing the hard drive for hours (if not days). You can sit and wait for the program to stop doing that. Or you can shut off your computer as the hard drive is thrashing. Neither option is a very pleasant option. Trust me from experience, don't set your swap file to a size which is far more than you'll need. I personally won't set one bigger than 512 MB ever again (no matter how much memory I have).

This is, I have to say, a pretty farfetched scenario, and you could *still* just kill the program in question through Task Manager, unless it's running in Realtime priority (and that would be a pretty dumb thing to do). Besides, at the default settings a program could request 2GB of swap anyway, and would get it.

Also, I'm pretty sure (though not 100% positive) that Windows limits an *application* to 2GB of memory space. Threads within an application share the same address space -- that's the whole purpose of being multithreaded in the first place. :p
 

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
Originally posted by: dullard
Originally posted by: kamper
no program requires swap space, but, if enough memory is needed that the os can't find space in memory or in the limited page file you specify, then you're in trouble
Only half true. Many programs will run just fine without any swap space. But many programs won't install without it either.

Elaborate on that, would you? Does windows provide a library to allow a program to do a safety check before installing? That would kinda make sense but it doesn't change my point that while running (shoulda said that before) programs have no knowledge of where their data is kept, for all intents and purposes it is in main memory.
 

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
This is, I have to say, a pretty farfetched scenario, and you could *still* just kill the program in question through Task Manager, unless it's running in Realtime priority (and that would be a pretty dumb thing to do). Besides, at the default settings a program could request 2GB of swap anyway, and would get it.

Realtime or not, if it's thrashing it's using next to no cpu time, so - as long as the task manager and kernel memory haven't been sent to disk in the mad search for more memory - you're fine ;)
 

Matthias99

Diamond Member
Oct 7, 2003
8,808
0
0
Originally posted by: kamper
This is, I have to say, a pretty farfetched scenario, and you could *still* just kill the program in question through Task Manager, unless it's running in Realtime priority (and that would be a pretty dumb thing to do). Besides, at the default settings a program could request 2GB of swap anyway, and would get it.

Realtime or not, if it's thrashing it's using next to no cpu time, so - as long as the task manager and kernel memory haven't been sent to disk in the mad search for more memory - you're fine ;)

Good point, although it would definitely slow your system to a crawl if this happened (try setting Prime95 to the highest priority settings for an example). And if everything but this program has been flushed from RAM, Windows might never get around to fetching anything else from disk (like Task Manager). I just don't know how Realtime priority interacts with disk-based I/O in Windows systems when you start swapping pages out. But certainly in any realistic situation you could stop the runaway program without having to power off the machine suddenly.
 

Sideswipe001

Golden Member
May 23, 2003
1,116
0
0
To get back to the orginial poster...

If you are hitting more peak commit change than you have RAM, it's probably a good idea to get more RAM. You'll most likely notice a difference.