<br>I usually use Process Explorer, but honestly for these noticable dealys I can use an old fashioned stopwatch. I'm just not the kind of person who's going to get excited about the difference between 2.000 and 2.005 seconds No, really, I'm not making fun of the Git people. :) I realize there is sometimes interesting information in the decimal places, but my perspective is entirely pragmatic.<br>
<br>As Eli says, VMMap is also very helpful on Windows: <a href="http://technet.microsoft.com/en-us/sysinternals/dd535533">http://technet.microsoft.com/en-us/sysinternals/dd535533</a><br><br>
~M<br>
<br><br><div class="gmail_quote">On Wed, May 11, 2011 at 12:44 AM, Alexander Belchenko <span dir="ltr"><<a href="mailto:bialix@ukr.net">bialix@ukr.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Martitza Mendez пишет:<div><div></div><div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
On Mon, May 9, 2011 at 10:20 PM, John Arbash Meinel <<a href="mailto:john@arbash-meinel.com" target="_blank">john@arbash-meinel.com</a> <mailto:<a href="mailto:john@arbash-meinel.com" target="_blank">john@arbash-meinel.com</a>>> wrote:<br>
<br>
-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
<br>
...<br>
>> Maximum memory consumption during commit was 315MB. Total page<br>
faults<br>
>> about 800,000 (on a machine with 2GB RAM).<br>
><br>
> What is "Total page faults"?<br>
<br>
A page fault is when a program wants to access a bit of virtual memory<br>
but it isn't actually present in memory.<br>
<a href="http://en.wikipedia.org/wiki/Page_fault" target="_blank">http://en.wikipedia.org/wiki/Page_fault</a><br>
<br>
This happens in a variety of contexts. One is during "swapping", when<br>
the OS runs out of memory and writes the virtual pages to disk. Then<br>
when the program accesses them again, it has to read back from disk.<br>
<br>
I *think* it might also happen based on how you allocate. I know in<br>
Linux you can do tons of mallocs(), but until you touch the memory it<br>
doesn't actually assign real memory to your process. I believe you don't<br>
hit a page fault during malloc() just during the later access.<br>
<br>
<br>
This set of observations was on WinXP (I should have mentioned that). And I'm actually not sure whether or how 'lazy' memory allocation is on WIn32. Good question. I suppose I should know. I'll have to test that when I get a few minutes.<br>
</blockquote>
<br></div></div>
Which tools are you using to get such statistics? Process Explorer?<br><font color="#888888">
<br>
-- <br>
All the dude wanted was his rug back<br>
</font></blockquote></div><br>