Help trying to run selftest on EC2
John Arbash Meinel
john at arbash-meinel.com
Wed Dec 2 18:34:23 GMT 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Adrian Wilkins wrote:
> On 02/12/09 17:42, jam wrote:
>> Does anyone know if there is a way to list open file handles for a
>> process?
>
> There's the excellent Sysinternals suite of tools, which I've used to
> debug similar problems with Bazaar in the past (specifically #304023).
>
> ProcMon, and FileMon are probably the most relevant here, you can
> configure them to log all filesystem events and highlight interesting
> things (like errors). ProcExp will let you grab a live process and see
> which file handles it holds, or conversely let you find which process is
> holding a file, but it's very much a live snapshot and you might not be
> able to catch it in the act, so to speak.
>
> http://technet.microsoft.com/en-us/sysinternals/bb842062.aspx
>
> Given this is an EC2 server - are the files in question on an SMB share,
> or are they a "local" disk... and is it really local? I'm not familiar
> with EC2 virtualization but storing things on a SAN really impacts a lot
> of things that like low-latency file access.
>
Thanks for the pointers. I'll try to look into them.
It seems that it also matters that I'm running a single-CPU instance. I
have a patch together that has more explicit file.close() calls. Which
seems to help some of the problems.
I also ran on a copy of the EC2 instance on a "c1.medium" server rather
than "m1.small". Which means it has 2 processors. And on *that* machine
the tests don't fail, even without my fix. (as they pass on my local
machine as well.)
Anyway, it still needs some debugging because of the threading issues.
But I'm getting closer.
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAksWsy8ACgkQJdeBCYSNAAOYrwCbBeZC/VNcCRaT1o2N9q2vk2ZW
yBQAniT+c4mlQGQDsQx5dyyDSeMrjDJ3
=2MU+
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list