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

Memory leaks in dataset training #96

Open
alastair opened this issue Mar 3, 2020 · 1 comment
Open

Memory leaks in dataset training #96

alastair opened this issue Mar 3, 2020 · 1 comment

Comments

@alastair
Copy link
Member

alastair commented Mar 3, 2020

During dataset training, when cluster_mode=False, the multiprocessing code starts n new processes, and then runs jobs in each process. There is a memory leak during this process, and so eventually the processes get killed (and turn into zombies).
Running with cluster_mode=True, a new process is started for the actual training process, and so any leaked memory is recovered at the end of each job.

Attached is a valgrind report of potential memory leaks. Gaia was built with debug mode, and so symbol names and filenames are included (search for gaia2::)
gaia-svmclassification-valgrind.txt

@alastair
Copy link
Member Author

alastair commented Mar 3, 2020

prob.y = new double[nsegments];
prob.x = new svm_node_ptr[nsegments];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant