Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

large memory usage / python not freeing soon enough? #413

Open
teuben opened this issue Oct 23, 2024 · 1 comment
Open

large memory usage / python not freeing soon enough? #413

teuben opened this issue Oct 23, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@teuben
Copy link
Collaborator

teuben commented Oct 23, 2024

Describe the bug
I've mostly used spyder. But several times I run into a loaded memory (32GB physical, 54GB swap) on moderately large SDFITS files, in my case today a 23GB sdfits file. The machine started swapping in the middle of a (dysh) zoom session.

For now this is a placeholder for what might be a python of sdfits loader problem, but love to hear more experiences if others are running into this problem. I'm certainly fairly frustrated with this.

How to Reproduce
I will work on getting a reproducible script, but obviously will depend on lot on the users' memory size (and possibly swap)

Environment

  • Dysh version
  • Python version 3.12 (i believe)
  • OS Ubuntu 22
@teuben teuben added the bug Something isn't working label Oct 23, 2024
@teuben
Copy link
Collaborator Author

teuben commented Oct 24, 2024

It can help to (at least in spyder) to see which variables you have, and how much memory python is taking up. Sometimes a simple

     del sdf5

to remove an object can reclaim memory. It should of course, but doesn't always seem to do it right away.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant