git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Matthieu Moy <Matthieu.Moy@imag.fr>
To: Sebastien Gross <seb-git@chezwam.org>
Cc: git@vger.kernel.org
Subject: Re: sync() slowdown
Date: Mon, 26 May 2008 18:09:59 +0200	[thread overview]
Message-ID: <vpq1w3p59ns.fsf@bauges.imag.fr> (raw)
In-Reply-To: <20080526142607.GA3082@kali.thurne.chezwam.org> (Sebastien Gross's message of "Mon\, 26 May 2008 16\:26\:07 +0200")

Sebastien Gross <seb-git@chezwam.org> writes:

> I think this might be useful if you repack many repositories.
> If you call the sync command before looping the repacks I guess this
> could be equivalent (modulo changes done in repositories during that
> time).

I suppose git-repack does something like

write_new_data();
sync();
delete_old_data();

And if you remove the "sync" and your system crashes (or you eject
your USB key, or ...) while "delete_old_data" is done, but
"write_new_data" hasn't been sync-ed to the hard disk, you're in
trouble.

If you repack many repositories, I guess the first time is expansive,
but the next ones pay only for what they just did.

My 2 cents,

-- 
Matthieu

      parent reply	other threads:[~2008-05-26 16:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-26 14:26 sync() slowdown Sebastien Gross
2008-05-26 16:06 ` Kenneth P. Turvey
2008-05-26 16:32   ` Sebastien Gross
2008-05-26 16:09 ` Matthieu Moy [this message]

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=vpq1w3p59ns.fsf@bauges.imag.fr \
    --to=matthieu.moy@imag.fr \
    --cc=git@vger.kernel.org \
    --cc=seb-git@chezwam.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 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).