![]() ![]() We can see if the system has any configured swap by typing: ![]() It is possible to have multiple swap files or swap partitions, but generally one should be enough. ![]() Step 1 – Checking the System for Swap Informationīefore we begin, we can check if the system already has some swap space available. Overall, having swap space as a fallback for when your system’s RAM is depleted can be a good safety net against out-of-memory exceptions on systems with non-SSD storage available. The information written to disk will be significantly slower than information kept in RAM, but the operating system will prefer to keep running application data in memory and use swap for the older data. The swap space on the hard drive will be used mainly when there is no longer sufficient space in RAM to hold in-use application data. This lets you increase the amount of information that your server can keep in its working memory, with some caveats. Swap is a portion of hard drive storage that has been set aside for the operating system to temporarily store data that it can no longer hold in RAM. In this guide, we will cover how to add a swap file to an Ubuntu 22.04 server. To run Baobab, type baobabīy using the graph to visualize the disk usage of each folder and file, we have a much better understanding of which folders or files take the most disk usage in our computer.One way to guard against out-of-memory errors in applications is to add some swap space to your server. Like htop, Baobab is also available in most distros. Knowing this helps me to clean the files or folders that I no longer need. I often use this tool to figure out which applications take a lot of disk usage but haven’t been used for a while. If you want to get a graphical presentation of your disk usage, try Baobab.
0 Comments
Leave a Reply. |