Skip to content
This repository has been archived by the owner on Feb 26, 2025. It is now read-only.

CoreNEURON - Performance issue when reporting dt is less than 0.1 #52

Open
jorblancoa opened this issue Dec 5, 2024 · 1 comment
Open

Comments

@jorblancoa
Copy link
Collaborator

When running CoreNEURON simulations, it was noticed that putting the reporting dt < 0.1 (0.025 or 0.05), the performance of the IO was greatly degraded (factor of 10).

The reason for that is when CoreNEURON calls nrn_flush_reports() after the nrn_spike_exchange(), libsonatareport checks if it is time to write to disk (buffer is full).

Usually it will buffer several timesteps, but sometimes it will record_data twice between flush_reports, forcing the reporting library to force write to avoid deadlock, not using the buffering capabilities.

The idea would be to move the check for flushing Sonata reports in neuron to nrn_fixed_step_thread to ensure it is performed every simulation step.

@jorblancoa
Copy link
Collaborator Author

A draft PR was created in neuron trying to tackle this issue, but there are problems with the multithreading with NVHPC:OMP.
neuronsimulator/nrn#2884

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

No branches or pull requests

1 participant