Automatic memory management means that Stata automatically adjusts its memory usage up and down as necessary based on the data you are using at any given time.
The memory manager is tunable. You can set a maximum memory that Stata is to be allowed to use or a minimum that Stata should not fall below. Or a niceness that tells Stata how soon after Stata realizes it can release memory, it should release the memory. Sometimes memory usage falls just to grow again, so a little delay improves performance. You can be totally nice to other users and release memory the instant it becomes available, or totally selfish and wait 30 minutes, or just go with the default of 1 minute.
The memory manager has been designed to manage terabytes.
© Copyright 1996–2026 StataCorp LLC