Open jeremiedb opened 1 year ago
Also, deterioration appears more accute with greater number of threads:
16 Threads (on a 16 threads AMD ryzen):
9.203387 seconds (23.63 M allocations: 5.051 GiB, 6.94% gc time, 77.60% compilation time: 11% of which was recompilation)
1.956289 seconds (1.80 M allocations: 3.913 GiB, 41.04% gc time)
2.233191 seconds (1.80 M allocations: 3.913 GiB, 22.36% gc time)
2.827008 seconds (1.80 M allocations: 3.913 GiB, 11.75% gc time)
3.290497 seconds (1.80 M allocations: 3.913 GiB, 9.42% gc time)
3.628016 seconds (1.80 M allocations: 3.913 GiB, 12.39% gc time)
3.841822 seconds (1.80 M allocations: 3.913 GiB, 12.04% gc time)
3.442708 seconds (1.80 M allocations: 3.913 GiB, 7.52% gc time)
3.782556 seconds (1.80 M allocations: 3.913 GiB, 12.31% gc time)
3.887522 seconds (1.80 M allocations: 3.913 GiB, 10.90% gc time)
3.876421 seconds (1.80 M allocations: 3.913 GiB, 9.79% gc time)
3.781522 seconds (1.80 M allocations: 3.913 GiB, 9.09% gc time)
3.831761 seconds (1.80 M allocations: 3.913 GiB, 8.49% gc time)
3.959064 seconds (1.80 M allocations: 3.913 GiB, 12.16% gc time)
3.694886 seconds (1.80 M allocations: 3.913 GiB, 6.88% gc time)
4.554031 seconds (1.80 M allocations: 3.913 GiB, 16.07% gc time)
4.442375 seconds (1.80 M allocations: 3.913 GiB, 9.45% gc time)
4.486033 seconds (1.80 M allocations: 3.913 GiB, 9.17% gc time)
4.318760 seconds (1.80 M allocations: 3.913 GiB, 6.02% gc time)
5.050747 seconds (1.80 M allocations: 3.913 GiB, 15.19% gc time)
This was run with current latest releases:
[88a5189c] DataAugmentation v0.2.11
[587475ba] Flux v0.13.13
[916415d5] Images v0.25.2
[dbeba491] Metalhead v0.7.4
[9a3f8284] Random
[10745b16] Statistics
MLUtils = 0.4.1
I am also observing this.
DataLoader performance degrades through iterations when
parallel=true
.Following is a MWE illustrating the issue:
If lauched with
julia --project=@. --threads=8 .\data-test.jl
:If
parallel=false
, then performance remains stable throughout the iterations: