- #How much free memory do i have on my pc how to
- #How much free memory do i have on my pc software
- #How much free memory do i have on my pc windows
Asking the user to select it at setup is also advisable.
#How much free memory do i have on my pc how to
I would not care about others application behaviour, I would care about being a "polite" application, thereby it should allow memory cache size and so on to be configurable by the administator, which is the only one who knows how to configure his systems properly (usually.)ĭefaults values should anyway take into consideration how much memory is available overall, especially on 32 bit systems with less than 4GB of memory (as long as Delphi delivers only 32 bit apps), to leave something free to the operating systems and avoids too frequent swapping. I will use like 70% of total RAM if the main purpose of the computer to hold this server application and about 40-50% if its purpose is 'general use' computer.Ī server application usually needs resources set aside for its own use by its administrator. Just deliver the application with that setting set by default to a acceptable value (which will be something like x% of the total amount of RAM). Else, it it thinks it is the most important running app, it will allow the app to allocate all RAM it needs in detriment of other less important applications. If the user thinks that the server application is not a important application it will probably give it low priority (low cache). The main purpose of the computer that is running the server app is to run the server? Or is just a normal computer used also for other tasks? In other words is it a dedicated server or a normal workstation/desktop?
#How much free memory do i have on my pc windows
Especially that Windows is already doing some good caching so the most recent files are already in cache. The speed of the network is really high? Higher than the speed of the hard drive? If you have a normal network, then the harddrive will be able to read the files from disk and deliver them over network in real time. One image can be requested by multiple clients? Or, one image can be requested by multiple times in a short interval? This tool should not be an integral part of the cache program itself (which will probably be a service without GUI anyway). Then, if you found out what works best, you can deduct formulas to calculate those values, and integrate them in your management tool. I think it's best to make the numbers configurable from the outside and create a management tool that lets you set the values manually first. But those numbers depend on the version of the OS and the other applications running on the server. If you save a miminum of say 500 MB for the server OS, you can use the rest, or 90% of the rest for your cache. I don't know any golden rules, but I'd figure you should be able to set a percentage of total memory or total available memory with a specific minimum amount of memory to be free for the system at all times. If you got those possibilities, you can try some tweaking to see what works best. If you can, build it so that you can change that value while it is running. Develop a system that can use a specific amount of memory. I would make it possible to configure it manually at first.
#How much free memory do i have on my pc software
It depends on what other software runs on the server. I hope I do not have to go there but should I ask the user how much memory he is willing to allocate to my application ? If so, how can I calculate the default value for that property and for those who will never use that setting ?.Should I request how much free memory is available prior to caching and use a fixed percentage of that memory for my needs ?.Should I stay under x% of global memory usage at all time ? And how much would that be ? What will happen if another program is launched and takes up a lot of memory, should I empty the cache ?.The caching is done on the client, I do not need caching on the server. Just to be clear, each individual image or video is not that big but the overall size of all of them can be really big.īut I'm faced with the "how much data should I cache" problem and was wondering if there are some kind of golden rules on Windows about what strategy I should adopt.
I'm developing a client/server application where the server holds large pieces of data such as big images or video files which are requested by the client and I need to create an in-memory client caching system to hold a few of those large data to speed up the process.