Skip to content

Pyspice-memory probelm #373

@KrizLuk0

Description

@KrizLuk0

Environment (OS, Python version, PySpice version, simulator)

Use ngspice 42, Python 3.10,

Expected Behaviour

I need the memory not to increase, or at least minimally.

Actual Behaviour

Hi, I have a problem that when using PySpice simulations, MiB keeps getting added to the RAM. Specifically, it always happens with the command analysis: analysis = simulator.transient(**SimParams). Specifically, it is about 13 MiB, which makes it impossible to run this program, as there are so many simulations that even 16 GB of RAM is not enough. I am using the commands destroy, reset, gc.collect, but I don’t know what else to do. Thank you for any advice.

Here is my code:
https://github.com/KrizLuk0/Pyspice-memory/blob/main/Pyspice.py

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