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
However, some of my current analyses showed that resource usage, for example, for DIA analysis, could be optimized much more at the process level. See some results from my analyses.
### Dataset: PXD030304
CPU Usage:
Memory Usage:
IO Usage:
Most of the processes are under 50% of usage of memory and CPU which looks like a waist of resources?
My plan was always to use the results of your thousands of runs to learn a simple regression model for each step based on file size and or number of spectra. But I am not sure if you ever saved the execution logs.
I did it for most of the runs. However, you don't really need a huge data to be able to learn simple things. Some conclusions, easy ones:
samplecheet_check and sdrf_parsing are way-way over their memory requirements, they can now go easily to 1GB memory, currently we are given to them 6GB.
Would be a unique and potentially publishable feature of the pipeline.
There is still the retry functionality if the resources were not enough. But I assume there should be some very informative features that allow for a very accurate prediction of resource usage.
Yes, the idea is to optimize the pipeline for each process for 80% of the runs, if the 20 fails, it can go to the next retry. Before doing the research we have to think if is needed to have the info inside the files, MS and MS/MS. because if for the model that information is needed, then we will need to block all process until mzml_statistics finish?
I will argue that in the first iteration, we look for simple variables, file size, instrument, experiment type - DIA - DDA, and search parameters (database, mods, etc). That could be the first iteration.
I think we cannot predict CPU usage. We need to know from the implementation if it benefits from multiple cores.
Depending on the implementation multiple cores also means a bit more RAM because more data is loaded at the same time or copies are made for thread-safety
@ypriverol@jpfeuffer
I am restarting this conversation, particularly for .d files on DIANN (DIA) runs.
Currently, BIGBIO_QUANTMS:QUANTMS:DIA:PRELIMINARY_ANALYSIS asks for 72gb of RAM.
I am actually not sure how much is needed, but my raw file is 3.5gb, and my speclib is 2gb.
Now I am testing locally so it breaks my run, but also for the HPC asking that much RAM might be a bottleneck in some systems when running 100s of samples.
A couple of things here; you can optimize this in multiple ways. First, you can pass the params about how much memory do you want in that step; (honestly, I think in a local machine this will not work). The other thing is that you can pass the # of files that you want to do the preliminary analysis on; doesn't need to be the 100 files; it could be 40 for example; 50.
Just to be sure, all the Mac analysis, using emulators for all the DIANN, is quite bad. Im trying to figure it out if we can produce a container from DIANN that do not need to use arm emulator which is extremely slow. I always recommend to use quantms with a few files in the machine but quantms is fundamental for HPC and could.
Activity
jpfeuffer commentedon Dec 5, 2024
My plan was always to use the results of your thousands of runs to learn a simple regression model for each step based on file size and or number of spectra. But I am not sure if you ever saved the execution logs.
ypriverol commentedon Dec 5, 2024
I did it for most of the runs. However, you don't really need a huge data to be able to learn simple things. Some conclusions, easy ones:
samplecheet_checkandsdrf_parsingare way-way over their memory requirements, they can now go easily to 1GB memory, currently we are given to them 6GB.jpfeuffer commentedon Dec 5, 2024
Well, yes, but I wasnt talking about those easy things. Of course you can add smaller labels for those.
ypriverol commentedon Dec 5, 2024
I think the orher ones depends heavily of the mzML size, number of MS and MS/MS I guess, even type of instrument, or file size.
jpfeuffer commentedon Dec 5, 2024
That's why I said learning from your results..
jpfeuffer commentedon Dec 5, 2024
All this information is available when starting a run..
jpfeuffer commentedon Dec 5, 2024
Would be a unique and potentially publishable feature of the pipeline.
There is still the retry functionality if the resources were not enough. But I assume there should be some very informative features that allow for a very accurate prediction of resource usage.
ypriverol commentedon Dec 5, 2024
Yes, the idea is to optimize the pipeline for each process for 80% of the runs, if the 20 fails, it can go to the next retry. Before doing the research we have to think if is needed to have the info inside the files, MS and MS/MS. because if for the model that information is needed, then we will need to block all process until mzml_statistics finish?
jpfeuffer commentedon Dec 5, 2024
Yes that is true.
ypriverol commentedon Dec 5, 2024
I will argue that in the first iteration, we look for simple variables,
file size,instrument,experiment type - DIA - DDA, and search parameters (database, mods, etc). That could be the first iteration.ypriverol commentedon Dec 5, 2024
This is DDA-TMT dataset PXD010557:
Memory Usage:
CPU Usage:
IO Usage:
jpfeuffer commentedon Dec 5, 2024
I think we cannot predict CPU usage. We need to know from the implementation if it benefits from multiple cores.
Depending on the implementation multiple cores also means a bit more RAM because more data is loaded at the same time or copies are made for thread-safety
timosachsenberg commentedon Dec 5, 2024
You can also subsample and average statistics from some files to get a much better idea.
josenimo commentedon Mar 2, 2026
@ypriverol @jpfeuffer
I am restarting this conversation, particularly for .d files on DIANN (DIA) runs.
Currently,
BIGBIO_QUANTMS:QUANTMS:DIA:PRELIMINARY_ANALYSISasks for 72gb of RAM.I am actually not sure how much is needed, but my raw file is 3.5gb, and my speclib is 2gb.
Now I am testing locally so it breaks my run, but also for the HPC asking that much RAM might be a bottleneck in some systems when running 100s of samples.
thoughts?
PS, you fixes worked!!
josenimo commentedon Mar 2, 2026
I have limited nextflow knowledge, but could one ask dynamically based on file sizes?
ypriverol commentedon Mar 2, 2026
A couple of things here; you can optimize this in multiple ways. First, you can pass the params about how much memory do you want in that step; (honestly, I think in a local machine this will not work). The other thing is that you can pass the # of files that you want to do the preliminary analysis on; doesn't need to be the 100 files; it could be 40 for example; 50.
You can start by passing
And pass this as extra parameter to the pipeline
jpfeuffer commentedon Mar 2, 2026
I think the solution for your local mac is to set maxMemory and maxCPUs. nf-core configs (like ours) will automatically cap to that value.
josenimo commentedon Mar 2, 2026
awesome, thank you both, now trying it out in HPC, closer to reality
ypriverol commentedon Mar 2, 2026
Just to be sure, all the Mac analysis, using emulators for all the DIANN, is quite bad. Im trying to figure it out if we can produce a container from DIANN that do not need to use arm emulator which is extremely slow. I always recommend to use quantms with a few files in the machine but quantms is fundamental for HPC and could.
josenimo commentedon Mar 2, 2026
Yeah, I understand, and I think that is the correct way to prioritize.
I just like to test things locally before adding the extra layer of complexity.