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

Updated discussion of optimizations in cnmf demo #1300

Merged
merged 1 commit into from
Mar 19, 2024

Conversation

EricThomson
Copy link
Contributor

Description

Minor update to demo_pipeline.ipynb section on optimizations : added discussion of subsampling before online algorithms.

" <h2 style=\"margin-top: 0;\">Optimizing performance</h2> \n",
" If you hit memory issues later, there are a few things you can do. First, you may want to lower the number of processors you are using. Each processor uses more RAM, and on a workstation with many processors, you can sometimes get better performance by reducing <em>num_processors_to_use</em>.The best way to determine the optimal number is by trial and error. When you set <em>num_processors_to_use</em> variable to <em>None</em>, it defaults to <i>one</i> less than the total number of CPU cores available (the reason we don't automatically set it to the total number of cores is because in practice this typically leads to worse performance).\n",
"\n",
"<br>Second, if your system has less than 32GB of RAM, and things are running slowly or you are running out of memory, then get more RAM. While you can sometimes get away with less, we recommend a *bare minimum* level of 16GB of RAM, but more is better. 32GB RAM is acceptable, 64GB or more is best. Obviously, this will depend on the size of your data sets.\n",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In theory we could mention that OSX users have less ram than they think because of hybrid memory, but maybe that's too much detail to put in a notebook; good to see specific numbers here.

@pgunn
Copy link
Member

pgunn commented Mar 19, 2024

Looks good; ready to merge whenever you want

@EricThomson EricThomson merged commit c3b7342 into dev Mar 19, 2024
3 checks passed
@pgunn pgunn deleted the optimization_update branch May 3, 2024 18:02
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

Successfully merging this pull request may close these issues.

2 participants