On my i386 machine, I set kern.maxvnodes to 140000 (was 390000ish). Then, even with restarting IPsec, coda, etc., I have done heavy git operations (in a repo with 300K files) without trouble. I'm not sure that this fixes everything, but so far it seems much better. So I suggest turning down kern.maxvnodes to see if that helps.
Attachment:
pgpKy4vdYYQBE.pgp
Description: PGP signature