question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Memory usage of `dss_line()`

See original GitHub issue

Hi,

I came across this repository when I was looking for an implementation of ZAPline. Really nice that you took the effort to translate the original matlab package. I have played around with it on my data, and for most of it, it works really nicely.

However, one thing that worries me a bit, is the memory usage of the dss_line(). So far, I tried to run it on MEG data (300 channels x 1.8x10^6 samples), but there was no chance that my laptop (24GB) could offer enough memory for dss_line to finish. Only if I cropped the data considerably it worked.

Of course, eventually the scripts will run on an HPC, so memory shouldn’t be a big problem there, still it is quite annoying that I can’t run and check those scripts locally before exporting them to the hpc. So I was wondering whether there are some magic tricks that I can do to lower the memory footprint? Settings that I have missed or something? I tried to trace the memory consumption of the function (where I was sufficiently confident to not affect functionality), and could indeed reduce the usage here and there, but the peak is still higher than what my pc can handle.

If helpful, I can provide more information of any kind.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
nbaracommented, Dec 2, 2021

you can base it on #57

1reaction
nbaracommented, Nov 30, 2021

Hi @eort

You are 100% right and this is something that I’ve identified already (see #50 ). One obvious thing to try is to compute the covariance by blocks. I’ll try to get around to it soon (but if you want to open a PR sooner you’re welcome 😉 )

Read more comments on GitHub >

github_iconTop Results From Across the Web

View memory usage in Activity Monitor on Mac - Apple Support
In Activity Monitor, view the amount of system memory being used on your Mac, including physical, compressed, wired, and app memory.
Read more >
Monitor your Lambda function's memory usage - Amazon AWS
You can use the following AWS services and tools to monitor your Lambda functions' memory usage. For more information on monitoring function ...
Read more >
How can I decrease memory usage? #2775 - actix/actix-web
I have a problem with memory usage. It doesn't look like a leak, but more like internal caches or something. I'm developing TUS...
Read more >
MATLAB memory - MathWorks
This MATLAB function displays information in the Command Window about the amount of memory on your computer and the amount of memory being...
Read more >
Memory Use | Alteryx Help
The Memory Limit setting in Alteryx Designer defines the maximum amount of memory the engine will use to perform operations in a workflow....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found