A server application typically requires resources reserved for its own use by its administrator. I don’t care about the behavior of other users, I would like to be a “polite” application, so it should allow the size of the cache, etc. Configured by an administrator who is the only one who knows how to properly configure his systems (usually ...)
The default values should in any case take into account how much memory is available in general, especially on 32-bit systems with less than 4 GB of memory (as long as Delphi provides only 32-bit applications) in order to leave something free for operating systems systems and avoids switching too often. It is also recommended that you request the user to select it during configuration.
If the application runs only on the server, a value between 40 and 75% of the available memory may be fine (depending on how much memory is required outside the cache), but ask the user again, since it is almost impossible to find out what others might need. applications. You can also have min cache size and maximum cache size, start by highlighting a smaller value, and then grow if necessary and reduce it if necessary.
On a 32-bit system, this is a kind of memory usage that can help use PAE / AWE to access more than 3 GB of memory.
Update : you can also control the monitoring / skipping of the cache and calculate which cache size will best suit the needs of the user (it may be too small but too large), as well as user recommendations about this.
user160694
source share