multitaper_toolbox icon indicating copy to clipboard operation
multitaper_toolbox copied to clipboard

UserWarning: resource_tracker

Open virsto opened this issue 2 years ago • 1 comments

The only way that I have found to execute your example without this UserWarning is to set multiprocess = False. I am running your multitaper_toolbox on Python 3.9.9 (tags/v3.9.9:ccb0e6a, Nov 15 2021, 18:08:50) [MSC v.1929 64 bit (AMD64)] on a Windows 10 platform. Unfortunately, I have been unable to find the actual source of what causes these user warnings. I do like your code for the multitaper PSD -- I am trying to use it on EKG signals (MIT Physionet EKG resources).

You might be interested to know that my 7-core laptop with multiprocess = True, "Multitaper compute time: 2.42 seconds", while with multiprocess = False, "Multitaper compute time: 0.31 seconds".

I hope that this information can be usefu :-)

virsto avatar Mar 27 '23 16:03 virsto

Thank you for your feedback - it's much appreciated.

Is the time difference in multiprocessing using your own data or the example data?

One thing that could be causing the time difference in multiprocessing is if the data segment you are using is very short. There is a time overhead associated with using parallel processing - so in some cases it can take longer than running without parallel.

If you are using your own data, could you send the (deidentified) data you are using to [email protected] in order for us to investigate this resource_tracker warning?

Best, Tom

thpossidente avatar Mar 27 '23 16:03 thpossidente