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

Extreme memory usage when setting a non-existent synapse property #3359

Open
clinssen opened this issue Nov 6, 2024 · 0 comments
Open

Extreme memory usage when setting a non-existent synapse property #3359

clinssen opened this issue Nov 6, 2024 · 0 comments
Labels
I: No breaking change Previously written code will work as before, no one should note anything changing (aside the fix) S: Normal Handle this with default priority T: Bug Wrong statements in the code or documentation

Comments

@clinssen
Copy link
Contributor

clinssen commented Nov 6, 2024

When setting a non-existent property on a large number of synapses, the memory consumption of NEST explodes and the process soon crashes. Minimal reproducer:

import numpy as np
import nest

pop = nest.Create("iaf_psc_exp", 160000)
nest.Connect(pop, pop, "one_to_one")
connections = nest.GetConnections()
connections.set({"awefwef": np.linspace(0,1,len(connections))})  # crash here

This is working totally fine for 16000 nodes on my system and gives the following (expected) error message without delay:

NESTErrors.DictError: DictError in SLI function SetStatus_CD: Unused dictionary items:  awefwef
Maybe you tried to set common synapse properties through an individual synapse?

If I change the line to

connections.set({"awefwef": 42})

the issue also goes away, so having a large data payload seems to be part of the problem.

@gtrensch gtrensch added T: Bug Wrong statements in the code or documentation S: Normal Handle this with default priority I: No breaking change Previously written code will work as before, no one should note anything changing (aside the fix) labels Nov 15, 2024
@gtrensch gtrensch added this to PyNEST and Kernel Nov 15, 2024
@github-project-automation github-project-automation bot moved this to To do (open issues) in Kernel Nov 15, 2024
@github-project-automation github-project-automation bot moved this to To do in PyNEST Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I: No breaking change Previously written code will work as before, no one should note anything changing (aside the fix) S: Normal Handle this with default priority T: Bug Wrong statements in the code or documentation
Projects
Status: To do (open issues)
Status: To do
Development

No branches or pull requests

2 participants