From: "J. Bruce Fields" <bfields@fieldses.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Junio C Hamano <gitster@pobox.com>,
Git Mailing List <git@vger.kernel.org>,
Johannes Schindelin <Johannes.Schindelin@gmx.de>
Subject: Re: Strange "beagle" interaction..
Date: Tue, 13 Nov 2007 16:21:21 -0500 [thread overview]
Message-ID: <20071113212121.GE22590@fieldses.org> (raw)
In-Reply-To: <20071113210354.GD22590@fieldses.org>
On Tue, Nov 13, 2007 at 04:03:54PM -0500, J. Bruce Fields wrote:
> On Tue, Nov 13, 2007 at 12:56:19PM -0800, Linus Torvalds wrote:
> >
> > Ok, I've made a bugzilla entry for this for the Fedora people, but I
> > thought I'd mention something I noticed yesterday but only tracked down
> > today: it seems like the beagle file indexing code is able to screw up git
> > in subtle ways.
> >
> > I do not know exactly what happens, but the symptoms are random (and
> > quite hard-to-trigger) dirty index contents where git believes that some
> > set of files are not clean in the index.
> >
> > I *suspect* that beagle is playing games with the file access times,
> > causing the ctime on disk to not match the ce_ctime in the index file. But
> > that's just a guess.
> >
> > I'm posting here in case somebody on the list knows what beagle does, or
> > somebody has been bitten by strange behaviour and realizes that he has
> > beagle running and prefers to fix the problem by just disabling beagle
> > (which will also be a great boon for performance - beagle seems to be very
> > good at flushing your file caches, but I guess that's not a bug, but a
> > "feature").
>
> Last I ran across this, I believe I found it was adding extended
> attributes to the file. I think it's something like
>
> getfattr -d
>
> to show all the extended attributes set on the file. Does that show
> anything?
By the way, on Debian or Ubuntu, at least, that requires an "apt-get
install attr" first.
>
> Yeah, I just turned off beagle. It looked to me like it was doing
> something wrongheaded.
Just looking at the attribute names and taking a wild guess, it looked
to me like beagle was computing a checksum of each file's data and
comparing it to a checksum previously stored in an xattr, and using that
to decide whether to reindex the file data.
With the result that to check whether anything's changed when it starts
up again it has to read through the entire filesystem's data.
Maybe I'm wrong--I hope so. I'd love to know.
--b.
next prev parent reply other threads:[~2007-11-13 21:21 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-13 20:56 Strange "beagle" interaction Linus Torvalds
2007-11-13 21:03 ` J. Bruce Fields
2007-11-13 21:21 ` J. Bruce Fields [this message]
2007-11-13 21:30 ` Linus Torvalds
2007-11-13 21:44 ` Jon Smirl
2007-11-13 21:49 ` David Brown
2007-11-13 21:50 ` J. Bruce Fields
2007-11-13 21:58 ` Jon Smirl
2007-11-13 21:55 ` Mike Hommey
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=20071113212121.GE22590@fieldses.org \
--to=bfields@fieldses.org \
--cc=Johannes.Schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=torvalds@linux-foundation.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.