linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Carl-Daniel Hailfinger <c-d.hailfinger.kernel.2003@gmx.net>
To: Larry McVoy <lm@bitmover.com>
Cc: Christoph Hellwig <hch@infradead.org>,
	Neil Brown <neilb@cse.unsw.edu.au>,
	Jeff Garzik <jgarzik@pobox.com>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: BK->CVS, kernel.bkbits.net
Date: Thu, 24 Apr 2003 11:19:36 +0200	[thread overview]
Message-ID: <3EA7AC28.8090402@gmx.net> (raw)
In-Reply-To: <20030424024549.GA10840@work.bitmover.com>

Larry McVoy wrote:
> On Wed, Apr 23, 2003 at 05:49:47PM +0200, Carl-Daniel Hailfinger wrote:
> 
> Fast or safe, pick one.  CVS has no integrity check and you will never know

I picked bitkeeper because it is convenient, easy to use, has a
distributed structure and keeps revision history locally.

> [description of feats achieved by integrity checking snipped]
> 
> The BK integrity check will tell you right away if any of your data is bad.

Every once in a while (cron job at night), I do a
bk -r check -ac
According to the man page, that should cover me nicely. Files which
change during a bk pull are checked anyway, so the only possible
corruption remaining undetected for a few hours is corruption in files
which were not modified at all. I just don't see the BIG benefit in
knowing a few hours earlier that an unused file is corrupted.

If corruption does not affect your working set, it is nice to know about
(to get rid of the offending hardware), but it will not harm you
directly. Checking readonly files is a job for cron because it is highly
unlikely that corruption of your on-disk data will happen on read. I'ts
either already corrupt on the platter or not (cabling/RAM etc. issues
aside), READING a sector from disk should NEVER change the contents of
this sector. If it does, you have a much bigger problem.

> *Everyone* hates the check until it saves their butt and then they decide
> it's not such a bad idea.  It's a lot like a seatbelt - you don't like it
> until something goes wrong.

You should introduce periodic checks, then. Data corruption is not a
function of the read count of a specific sector, but of the write count
and/or time. Feel free to point me to contrary evidence, I'm always
willing to learn.

> BK != CVS.  You want fast and loose, by all means, use CVS, that's not our
> intended market and we don't care about fast where fast means bad data.
> 
> 
>>P.S. If anyone knows other speedup tricks for a kernel tree in bk,
>>please tell me.
> 
> 
> Mount the file system with noatime.

Did that already. But thanks for the suggestion anyway.

> Buy enough memory to fit the kernel in memory and on a 1Ghz processor that
> pull will take about 20 seconds.  Even laptop memory is pretty cheap these
> days.  Pricewatch says $80 for .5GB for laptops, that's cheap.

With a upper maximum of 192MB in my laptop (the chipset won't accept
more), I have no choice but to buy a new one or enable partial checks. I
even use ext2 instead of reiser/ext3 on my notebook to save RAM. The
only thing running during a bk pull is XFree86 and fvwm2 as windowmanager.

Unfortunately, I was unable to find a good laptop in the 80$ range;
heck, I would even consider a good used laptop in the 300$ range. And
before you ask: as an university student, I think twice before shelling
out money for a new machine. Maybe that will change if I have gobs of
money available.

Don't understand me wrong, bitkeeper is a tool which has saved me hours
of merging and debugging mismerges, but I'd perefer not to use xiafs
instead of ext2 just to save a couple more kB of RAM to speed up bk.

Regards,
Carl-Daniel

-- 
Carl-Daniel Hailfinger
Xiafs maintainer
More about Xiafs soon at
http://www.hailfinger.org/


  parent reply	other threads:[~2003-04-24  9:08 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-17 16:27 BK->CVS, kernel.bkbits.net Larry McVoy
2003-04-17 20:52 ` H. Peter Anvin
2003-04-20  0:30   ` Larry McVoy
2003-04-20 13:16     ` Roman Zippel
2003-04-20 15:23       ` Larry McVoy
2003-04-20 15:42         ` Roman Zippel
2003-04-21  4:46     ` Neil Brown
2003-04-21  6:58       ` Jeff Garzik
2003-04-23 15:49       ` Carl-Daniel Hailfinger
2003-04-24  2:45         ` Larry McVoy
2003-04-24  7:21           ` Christoph Hellwig
2003-04-24  9:19           ` Carl-Daniel Hailfinger [this message]
2003-04-21 15:58     ` Jamie Lokier
2003-04-20  1:34 ` Ben Collins
2003-04-20  1:49   ` Larry McVoy
2003-04-21 18:58     ` H. Peter Anvin
2003-04-21 21:41       ` Ben Collins
2003-04-20  7:32   ` Shachar Shemesh
2003-04-20  9:58     ` Geert Uytterhoeven
2003-04-20 13:47       ` Shachar Shemesh
2003-04-20 13:01     ` Ben Collins
2003-04-20 13:37       ` Shachar Shemesh
2003-04-20 13:42         ` viro
2003-04-20 13:47         ` Ben Collins
2003-04-20 14:13           ` Shachar Shemesh
2003-04-20 14:42           ` Shachar Shemesh
2003-04-20 14:47             ` Wichert Akkerman
2003-04-20 14:58               ` Shachar Shemesh
2003-04-20 15:45             ` viro
2003-04-22 11:09         ` Gerd Knorr

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3EA7AC28.8090402@gmx.net \
    --to=c-d.hailfinger.kernel.2003@gmx.net \
    --cc=hch@infradead.org \
    --cc=jgarzik@pobox.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lm@bitmover.com \
    --cc=neilb@cse.unsw.edu.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).