monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-devel] mtn size (of revision)


From: Lapo Luchini
Subject: [Monotone-devel] mtn size (of revision)
Date: Tue, 17 Jul 2007 00:33:50 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.8.0.12) Gecko/20070509 Thunderbird/1.5.0.12 Mnenhy/0.7.4.0

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

I'm probably one of the few interested, but I *like* to know how much a
new revision "costs" to me, in terms of space, partly because I'm a
statistics freak, part because the less it occupies the "better mtn is"
and mostly because, well, disk space may well be cheap nowadays, but
wasting is not good anyway 0=)

One (personal) application of mtn is, example given, the versioning of
my Palm databases backup files (.pdb and .prc obtained thru
pilot-link.org): the whole database is around 9MB, and a good 20% of the
files is "touched" by each sync, but by the very record-based nature of
Palm databases, xdelta works like magic.
Of course I can know this for sure sync'ing that branch to a single
database and then:

% LANG=C mtn -d palm.mtn db info
creator code      : _MTN (0x5f4d544e)
schema version    : 7ca81b45279403419581d7fde31ed888a80bd34e (usable)
counts:
  full rosters    :   1
  roster deltas   :   5
  full files      : 165
  file deltas     : 190
  revisions       :   6
  ancestry edges  :   6
  certs           :  24
  logical files   : 165
bytes:
  full rosters    :    8092
  roster deltas   :    8259
  full files      : 4957002
  file deltas     :   63716
  revisions       :   19952
  cached ancestry :     440
  certs           :    5871
  heights         :     264
  total           : 5063596
database:
  page size       : 8192
  cache size      : 2000

...which is quite impressive (98% of size in revision 1 out of 5).

But in the future a mini-project of mine could be to have this kind of
info about a specific revision, or a specific branch, or a generic
selector maybe (listing each revision or the total).

Useful? Probably next to nothing.
Nice? Yes.
Urgent? Not at all. I'd rather use my time helping cvsimport/cvsync
stuff I care much more about.
OTOH it probably is a bite-sized mini-project...

Well. I wrote it mainly to remember to myself to do it someday.
And it probably is easy too... (probably need to do a few queries and
that's it, just like I guess it is for "db info")
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQIcBAEBAgAGBQJGm/JNAAoJELBiMTth2oCD46sQAKWixiHbfcx5cZVt2No04h7C
DNLk3WOXzI3lmoLz42URCwbMHtUhOJucv7zXza4ElwGLBE4N6xXq7mFTPF73qrdF
2AREekBp9TYKV8rCO6l1iY5rDJRIMkwUbsWSIaqd6ymSLCNd3jfN2QbOMscwff27
fXeZeXLThGXsug2oQbACOk4VfqQLRM3ZH3KSKjrW4vrINNoNos6633qTr0MHXVYI
AZ+yv2bEl8ilX20WqEirkkATyAPKpKAUYNxX32WLA0ZLv5xlKTM/Ybb/I6g4xr6M
fwq2ZzUkNkMTVN/Jv5UT9jbyYukxZAiz27IGBP5fn1Q8OIJOcEKVWFnnoU5cFuBn
VM8p+8Uf/aIt5Avpt7gwK8p80AKD7E7J80D4u807ljHBLY0xBYFtO7RVjGhQqMWO
IoPUjy7POAzYQXX0El/mA1aNkN56nB2e88O7doyI/AgmoWvWWN1ob5kPKRe5pMU4
zNVVK6kRYVnzf21MtEe44miQOJ7RjkFi5B5cG+MkW7QOV6saWT+cG6WP3grYd2uP
9Qbo/7bhS/sMQ/ge+NaTc08CgcIkRfnHZg/xXJ3OzlUGOeXwpa06vfM5xQ25Bxar
nga0IjJ691K17I/Kn0f7DlZ0DRTs8TSsWfLiVtKEL6mlhVQ2rxYIi2hqtU78WRlW
s67/LBjhk9Ogxd0Y8VNM
=bhUu
-----END PGP SIGNATURE-----





reply via email to

[Prev in Thread] Current Thread [Next in Thread]