You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would a concurrencies.log solution that's gentler on L3 cache avoid the slowdown in Computing stats we saw in 8a0b5fe?
Instead of storing the whole string, we could store a tuple of the 3 pointers we need to recreate it.
Not counting container overhead, We're dealing with 14.2 MB rather than 59.7. In 24 B at a time, rather than >4x as many.
Not much time to save in ConcAugThread itself; we saved a very small amount when constructing no list elements whatsoever.
CompStatsThread results?
How much additional time would be wasted dereferencing our pointers and individually inserting them into the ofstream, all single-threaded?
Not much time to save in ConcAugThread itself; we saved a very small amount when constructing no list elements whatsoever.
I was looking either not very closely, at too little data, incomplete data, or possibly even the wrong data. Initial results from lab1 with 1 and 2 threads are actually quite promising.
The results from lab3 aren't in yet, but this appears to be a dead end.
We have very slight gains in CompStatsThread, and actually pretty good gains in ConcAugThread, but they're outweighed by the extra time writing concurrencies.log.
Costs include dereferencing a bunch of pointers (FWIW), inserting a greater number of items into the ofstream, and (probably) the big one, creating string objects for HighwaySegments.
Not constructing strings for concurrencies.log lines, we're faster single-threaded.
But with threaded string construction, speed scales up.
End result, all machines are slower with >1 thread.
Activity
yakra commentedon Apr 29, 2020
I was looking either not very closely, at too little data, incomplete data, or possibly even the wrong data. Initial results from lab1 with 1 and 2 threads are actually quite promising.
yakra commentedon Apr 29, 2020
Writing to concurrencies.log
...Will this cause the same damage to L3 cache?
CompStatsThread
Saving < 0.2s, except for very few threads on most machines.
yakra commentedon Apr 29, 2020
The results from lab3 aren't in yet, but this appears to be a dead end.
We have very slight gains in CompStatsThread, and actually pretty good gains in ConcAugThread, but they're outweighed by the extra time writing concurrencies.log.
Costs include dereferencing a bunch of pointers (FWIW), inserting a greater number of items into the ofstream, and (probably) the big one, creating string objects for
HighwaySegments.Not constructing strings for concurrencies.log lines, we're faster single-threaded.
But with threaded string construction, speed scales up.
End result, all machines are slower with >1 thread.