Skip to content

python 3.12 yields huge memory accumulation for yaq daemons #79

@wright-stuff

Description

@wright-stuff

Using Windows

# daemon env1
conda create -n bad_daemons yaqd-core python=3.12
# daemon env2
conda create -n good_daemons yaqd-core python=3.11

if I initiate a client call many times:

for _ in range(10**7):
    c.get_position()

a daemon in env2 keeps the memory size to 10s of MB, but an env1 daemon balloons to ~10 GB

The problem is quite practical; running yaqc-qtpy on one of the Wright-Group computers can make daemon memory reach 10s of GB after a few hours.

Probably an upstream issue that will be fixed, but be advised: avoid python 3.12 for daemon environments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions