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
Add commandline options (probably of only the --TwoHyphen variety) to specify the number of threads for each individual threaded task, overriding -t if also specified.
Well this is mysterious.
On BiggaTomato, when <4 ReadWptThreads are followed by 4+ NmpSearchThreads, siteupdate crashes when we try to create ifstream nmpfpfile(args.highwaydatapath+"/nmpfps.log");, of all things.
This does not appear to be affected by the value of NumThreads. (Or is it? More testing required...)
No obvious questionable sections of code.Edit:It was obvious!
ToDo: Test on lab1.5; see whether related to # of hardware threads.
In the meantime, more exhaustive testing on BiggaTomato is underway.
Longer term: See how much code I can delete & how much I can pare down the program while maintaining the same behavior. Create a new fork of yakra/HighwayData and add commits to that.
Results are not deterministic.
Value of NumThreads & # of hardware threads does not appear to affect things.
Crashes so far only happen when NmpSearchThreads > ReadWptThreads, but not every time.
Not all crashes produce error messages in shell. ToDo: tail siteupdate.log for crashes
(I am not worthy of saying "When the light went on it nearly blinded me.")
Before, thread **thr = new thread*[args.numthreads]; was just fine, with every array of threads being the same size.
But now, it's declared as thread **thr = new thread*[args.ReadWptThreads]; -- and I then go on to access it as if it's any old size. Even a bigger size. Wacky antics ensue.
I was looking right at this and didn't notice it...
Activity
yakra commentedon Mar 19, 2020
# of threads for optimum efficiency as of ef1894f:
(4)
(8)
(8)
(16)
(24)
yakra commentedon Mar 21, 2020
Well this is mysterious.
On BiggaTomato, when <4 ReadWptThreads are followed by 4+ NmpSearchThreads, siteupdate crashes when we try to create
ifstream nmpfpfile(args.highwaydatapath+"/nmpfps.log");, of all things.No obvious questionable sections of code.Edit: It was obvious!yakra/HighwayDataand add commits to that.yakra commentedon Mar 21, 2020
yakra commentedon Mar 21, 2020
On lab1.5 (UbuntuMate 18.04) I'm seeing
malloc_consolidate(): invalid chunk sizecorrupted size vs. prev_sizecorrupted double-linked listmalloc(): memory corruptionyakra commentedon Mar 21, 2020
Results are not deterministic.
Value of
NumThreads& # of hardware threads does not appear to affect things.Crashes so far only happen when
NmpSearchThreads>ReadWptThreads, but not every time.Not all crashes produce error messages in shell.
ToDo: tail siteupdate.log for crashes
yakra commentedon Mar 22, 2020
This pattern has not held.
Of 125 runs on BiggaTomato:
NmpSearchThreads>ReadWptThreadsNmpSearchThreads=ReadWptThreadsNmpSearchThreads<ReadWptThreadsOf 400 runs so far on lab1.5:
NmpSearchThreads>ReadWptThreadsNmpSearchThreads=ReadWptThreadsNmpSearchThreads<ReadWptThreadsyakra commentedon Mar 22, 2020
Duh.
(I am not worthy of saying "When the light went on it nearly blinded me.")
Before,
thread **thr = new thread*[args.numthreads];was just fine, with every array of threads being the same size.But now, it's declared as
thread **thr = new thread*[args.ReadWptThreads];-- and I then go on to access it as if it's any old size. Even a bigger size. Wacky antics ensue.I was looking right at this and didn't notice it...