[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] monotone serve thrashing
From: |
Matt Johnston |
Subject: |
Re: [Monotone-devel] monotone serve thrashing |
Date: |
Sat, 21 May 2005 02:00:34 +0800 |
User-agent: |
Mutt/1.5.6+20040907i |
On Fri, May 20, 2005 at 08:29:03AM -0500, Glen Ditchfield wrote:
> On Thursday 19 May 2005 22:54, Matt Johnston wrote:
> > What sort of distribution of file sizes does the database
> > have? (and also how many revisions/files etc?)
>
> Approximately 2800 files. One 31MB, one 17MB, about 40 larger than 1 MB.
> Only a few small files have more than one revision.
Matthew Gregan recently (since 0.19) committed a change that
might make a reasonable difference, see below. The
t_netsync_largish_file test he refers to tries syncing a 32
MB file, like your case.
Does that seem to help?
Matt
Diff of bf6ecba5660c9d26a4b46feb59e96e524c3c93e2 to
01f992577bd8bcdcade0f89e724fd5dc2d2bbe8a:
#
# patch "ChangeLog"
# from [be4a709afac1a9612ec0cdbd4c142975afd10d45]
# to [4829837e6117756eb0067a5fb38476fab5c96c46]
#
# patch "constants.cc"
# from [cc76e26e5126f2a43b1a91c0ce1213a77861d34c]
# to [3fd062ad419efedd4ec4fd0cd5452fbdd94d54c6]
#
--- ChangeLog
+++ ChangeLog
@@ -1,3 +1,9 @@
+2005-05-11 Matthew Gregan <address@hidden>
+
+ * constants.cc (constants::bufsz): Increase buffer size. Reduces
+ the runtime to tests/t_netsync_largish_file.at by four to seven
+ times on my test machines.
+
2005-05-10 Timothy Brownawell <address@hidden>
* revision.cc: Make expand_{ancestors,dominators} twice as fast.
--- constants.cc
+++ constants.cc
@@ -35,7 +35,7 @@
size_t const maxpasswd = 0xfff;
// number of bytes to use in buffers, for buffered i/o operations
- size_t const bufsz = 0xfff;
+ size_t const bufsz = 0x3ffff;
// size of a line of database traffic logging, beyond which lines will be
// truncated.