[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] slow update/status on NFS
From: |
Richard Levitte |
Subject: |
Re: [Monotone-devel] slow update/status on NFS |
Date: |
Wed, 23 May 2007 08:18:09 +0200 (CEST) |
In message <address@hidden> on Tue, 22 May 2007 23:12:45 +0200, "Benoît Dejean"
<address@hidden> said:
benoit> I have a repository of 2000 files over NFS. update and status
benoit> are very slow. I have strace/truss it and found a lot of stat
benoit> calls. I think this just kill performance on a network
benoit> filesystem. When doing a status, each file is stat'ed 4 times
benoit> in a row. The following patch saves 2 calls. The 1 remaining
benoit> is triggered by an assert_path_is_file in calculate_ident. I
benoit> don't know if it's good, but on my workspace, it saves a lot
benoit> of stat calls. It goes from ~8000 to ~4000. This almost saves
benoit> 15% of the time to do a status. On a local filesystem, this
benoit> makes no difference at all. (If it worths it, please let me
benoit> push :)
I just looked at the patch, and although I can see that it fixes
things for status, I think it could be taken one step further (and
thereby generalising the solution) by modifying the file_path class to
have a status cache.
Cheers,
Richard
--
Richard Levitte address@hidden
http://richard.levitte.org/
"When I became a man I put away childish things, including
the fear of childishness and the desire to be very grown up."
-- C.S. Lewis
- [Monotone-devel] slow update/status on NFS, Benoît Dejean, 2007/05/23
- Re: [Monotone-devel] slow update/status on NFS,
Richard Levitte <=
- Re: [Monotone-devel] slow update/status on NFS, Markus Schiltknecht, 2007/05/23
- Re: [Monotone-devel] slow update/status on NFS, Richard Levitte, 2007/05/23
- Re: [Monotone-devel] slow update/status on NFS, Markus Schiltknecht, 2007/05/23
- Re: [Monotone-devel] slow update/status on NFS, Richard Levitte, 2007/05/23
- Re: [Monotone-devel] slow update/status on NFS, Markus Schiltknecht, 2007/05/23
- Re: [Monotone-devel] slow update/status on NFS, Ulf Ochsenfahrt, 2007/05/23
- Re: [Monotone-devel] slow update/status on NFS, Markus Schiltknecht, 2007/05/23
- Re: [Monotone-devel] slow update/status on NFS, Richard Levitte, 2007/05/23
- Re: [Monotone-devel] slow update/status on NFS, Markus Schiltknecht, 2007/05/23
- Re: [Monotone-devel] slow update/status on NFS, Richard Levitte, 2007/05/23