![]() In our above example we have some minor swap usage which has not changed in some time and there is plenty of free memory, so currently it looks alright. ![]() If this value is higher than 0, you should investigate memory usage as it may have filled up and spilled over to disk at some point. The free command will also show your used and free swap usage, ideally 0 swap will be used, meaning that nothing has been swapped out from physical memory to hard disk. The best would be the 2982mb listed free in buffers/cache. In the above example, the used Mem shows as 3248mb with 700mb free however this is not the best indication of free memory. It’s technically in use by the operating system which is why it shows as in use, however should you actually require any of this memory elsewhere it will be ready to use straight away, so you may not necessarily be low on memory. Linux is smart enough to take some of your unused memory for disk caching to increase performance, however it can make it appear as if you have less freely available memory than you actually do. This displays how much memory is completely unused and available, as the memory used by buffers/cache can quickly be used elsewhere should it be required. The best indication of unused memory is the free column for the buffers/cache row. If you see that the amount of used Mem is high and free Mem is low, don’t panic (at least not straight away) as there is usually memory held for caching purposes to help speed things up. The ‘free’ command will provide the most accurate way of showing memory use, when run with the -m flag the output is easier to read as values will be shown in MB. ![]() ![]() If both main memory and swap become full your Linux system can completely freeze up.īy checking and monitoring the amount of memory in use and confirming there is enough free memory to service requests we can ensure that processes continue to run optimally. If this memory runs out, swap space will start to be used next, which will result in slower performance as I/O operations will need to be written to disk instead. In the Linux operating system it is important to have enough free physical memory (RAM) available for your processes which need to run. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |