Some positive feedback on the responsiveness of bzr(explorer)

John Arbash Meinel john at arbash-meinel.com
Tue May 10 05:20:56 UTC 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


...
>> Maximum memory consumption during commit was 315MB.  Total page faults
>> about 800,000 (on a machine with 2GB RAM).
> 
> What is "Total page faults"?

A page fault is when a program wants to access a bit of virtual memory
but it isn't actually present in memory.
http://en.wikipedia.org/wiki/Page_fault

This happens in a variety of contexts. One is during "swapping", when
the OS runs out of memory and writes the virtual pages to disk. Then
when the program accesses them again, it has to read back from disk.

I *think* it might also happen based on how you allocate. I know in
Linux you can do tons of mallocs(), but until you touch the memory it
doesn't actually assign real memory to your process. I believe you don't
hit a page fault during malloc() just during the later access.

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk3IyzgACgkQJdeBCYSNAAOSqQCdEcOJjKWJ2iq6BYBrsxs2sJCL
1JYAn2jH/QCsWW3Mpef/1uKjH26z3pc0
=PceT
-----END PGP SIGNATURE-----



More information about the bazaar mailing list