Closed Viech closed 5 months ago
On Wed, Aug 09, 2023 at 12:28:17PM -0700, Maximilian Stahlberg wrote:
The following eats my RAM really fast (my laptop freezes within two minutes):
With the `autgrp` line commented, memory use is constant.
Yes it leaks memory, I look into it when got some time. Although computing millions of autgrp-s in one session does not seem to be a typical use.
Yes it leaks memory, I look into it when got some time.
Thanks!
Although computing millions of autgrp-s in one session does not seem to be a typical use.
My use case is reinforcement learning where the autgrp call on small digraphs is part of the scoring function. Here the memory leak is pretty noticeable as I score in parallel using multiple processes that all grow (my workaround is to respawn them at a performance cost). It's a few thousand calls per second over all processes.
I am currently unable to run the example usage code in either my local ubuntu 22.04 machine or in google colab. On colab it just tells me that the kernel crashed. On my local machine, it says "Illegal instruction (core dumped)." Do you think the memory leak could cause this behavior as well or should this be a separate github issue?
@Viech, have you arrived at workaround? Is there another alternative library?
On Thu, Sep 07, 2023 at 01:44:52PM -0700, Matthew Rosenberg wrote:
I am currently unable to run the example usage code in either my local ubuntu 22.04 machine or in google colab. On colab it just tells me that the kernel crashed. On my local machine, it says "Illegal instruction (core dumped)."
Most likely you have installed a binary wheel from pypi. Try to force a build from source, details in the Readme.
Do you think the memory leak could cause this behavior as well or should
No, I don't think so. It works but in certain cases leaks memory.
UPDATE:
My code now runs. In my case, I needed to install pynauty via the command below instead of the pip install method in the docs.
conda install -c conda-forge pynauty
Sounds like my input is in the wrong issue thread... Lmk if there's anything you'd like me to do to relocate it elsewhere.
The following eats my RAM really fast (my laptop freezes within two minutes):
With the
autgrp
line commented, memory use is constant.This is on Arch Linux Kernel
6.4.8
, Python3.11.3
, nauty2.8.6
, and pynauty2.8.6
.