git/list[1] front-page[2] threads[3] people[4] search[5] about
 

sync() slowdown

From
SGSebastien Gross <seb-git@chezwam.org>
Date
May 26, 2008, 14:26 UTC
Message-ID
<20080526142607.GA3082@kali.thurne.chezwam.org>
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
Next: Kenneth P. Turvey
Message 1 of 4 in “sync() slowdown”
  1. Sebastien GrossMay 26, 2008
  2. Kenneth P. TurveyMay 26, 2008
  3. Sebastien GrossMay 26, 2008
  4. Matthieu MoyMay 26, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.