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

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant