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

Possible memory leak when estimating with rail_lephare #55

Open
3 tasks done
hdante opened this issue Aug 22, 2024 · 2 comments
Open
3 tasks done

Possible memory leak when estimating with rail_lephare #55

hdante opened this issue Aug 22, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@hdante
Copy link

hdante commented Aug 22, 2024

Hello, I'm currently investigating out-of-memory errors when executing RAIL with the lephare estimator and I've noticed that during an estimation, even though the input file is being processed in chunks of 10000 objects, memory grows when starting each new chunk (up to around 130000 objects for the complete file). Since changing the estimator algorithm to others (flexzboost, bpz, etc.) makes the problem disappear, I'm posting this bug report proposal for rail_lephare. A screenshot of the more or less simultaneous estimation with lephare in a group of machines shows the memory usage growing during the execution.

I'm currently trying to investigate the individual allocations during the execution.

Captura de tela de 2024-08-22 19-09-25

  • I have described the situation in which the bug arose, including what code was executed, information about my environment, and any applicable data others will need to reproduce the problem.
  • I have included available evidence of the unexpected behavior (including error messages, screenshots, and/or plots) as well as a descriprion of what I expected instead.
  • If I have a solution in mind, I have provided an explanation and/or pseudocode and/or task list.
@hdante hdante added the bug Something isn't working label Aug 22, 2024
@hdante
Copy link
Author

hdante commented Aug 22, 2024

A good representation of the memory increase generated by a memory profiler. This is a single execution of the estimation algorithm with a single file. The 12 steps in the picture represent the 12 chunks of objects being processed.

The problem is that the memory grows on each step, compared with the previous one.

Captura de tela de 2024-08-22 19-19-04

@hdante
Copy link
Author

hdante commented Aug 27, 2024

Hello, a pull request was opened at:
lephare-photoz/lephare#193

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