public inbox for goredo-devel@lists.cypherpunks.ru
Atom feed
* Dependency collection takes very long
@ 2023-09-28 12:05 spacefrogg
  2023-09-30 16:47 ` Sergey Matveev
  2023-10-07 15:29 ` Sergey Matveev
  0 siblings, 2 replies; 6+ messages in thread
From: spacefrogg @ 2023-09-28 12:05 UTC (permalink / raw)
  To: Goredo Devel

Hi!

I have a not-so-small project. The final target has about 5700 
dependencies boiling down to 1300 unique dependencies, both numbers 
include transient dependencies. redo-targets reports about 270 targets, 
so the rest are source files (≈1050).

The first build runs very smooth (2min single job, 50secs with 11 jobs). 
Starting with the second build, though, goredo takes tens of seconds of 
busy CPU work after logging "dbg collecting deps" in the debug output. 
`iotop` shows that it is busy doing I/O.

N.B. `time` records about 2m50s real time while redo only counts 1m23s. 
So, some significant code executes before redo starts counting the time.

As a comparison, apenwarr/redo needs a fraction of a second to check all 
dependencies. (It does no source file hashing, though.)

redo-targets returns instantly, but redo-sources gets stuck as well, 
thrashing the disk at a rate of 12MB/s taking almost 11m to finish. This 
means it touched almost 8GB!  So, I assume that something is off when 
redo encounters a source file.

I did not change the default REDO_INODE_TRUST. So, I assume redo is 
using ctime checking. My ctimes are reliable. I tested with goredo 1.30 
and 1.32.

By the looks of it, redo always hashes source files. But even if, this 
takes way too much time for the actual amount of data (≈120MB).

–Michael

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

end of thread, other threads:[~2023-10-07 15:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-28 12:05 Dependency collection takes very long spacefrogg
2023-09-30 16:47 ` Sergey Matveev
2023-09-30 21:02   ` Sergey Matveev
2023-10-01 11:53     ` goredo
2023-10-02 11:01       ` Sergey Matveev
2023-10-07 15:29 ` Sergey Matveev