git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* sync() slowdown
@ 2008-05-26 14:26 Sebastien Gross
  2008-05-26 16:06 ` Kenneth P. Turvey
  2008-05-26 16:09 ` Matthieu Moy
  0 siblings, 2 replies; 4+ messages in thread
From: Sebastien Gross @ 2008-05-26 14:26 UTC (permalink / raw)
  To: git

Hi git users,

I use git (a very basic usage) every day and I noticed a big slowdown
when I do a "git repack -a -d".

I noticed that it only happens when I do backup to an usb stick.

After a few investigation, I noticed that sync() is call when repacking
objects (from both builtin-prune.c and builtin-prune-packed.c).

I do understand that syncing filesystem is usefull and needed.

But is there a good idea to add a --no-sync option to prevent that
behaviour ?

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).

Any idea suggestions ?


Thanks lot

Cheers.

-- 
Sébastien Gross

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-05-26 16:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).