Dark background with blue accents with light reflectionsDark background with blue accents with light reflectionsDark background with blue accents with light reflections
[Mac OS X] Freeing Up Memory

[Mac OS X] Freeing Up Memory

[Mac OS X] Freeing up memory

In OS X, the following allocation of RAM is used:

– Part of the memory is reserved for system needs (kernel, system services). This is the so-called Reserved memory (aka Wired);
- Part of the memory is used by active programs for their work. This is Active Memory (Active);
- Part of the memory remains occupied by the data of those applications that have recently been terminated. Used to quickly restart these applications. This part is called Inactive memory (Inactive)

You can see the state of these parts of memory using the System Monitor program (Programs - Utilities):

During active work in the system, sometimes it happens that there is not enough free memory left and the system starts to free the Inactive part of it, i.e. OS X itself takes care of the optimal use of RAM.

But if you decide to clean up the memory yourself, then there is such a tool in the system. For the convenience of its use, I propose to write a small script that you can run at any time and clear the RAM yourself.

Learn how to trade online

School of Trading and Investing "ABTco Invest-School"

Learn to trade from zero • Investing in stocks • Fully Online learning

Just $27.00 for a full course

Let's Get Started

Launch the AppleScript Editor application (Applications - Utilities). Then, in the window that opens, copy this text:

Click the Compile button in the toolbar. Then press the key combination Cmd+S and in the save dialog select the Programs folder, enter a name, for example, FreeMem, select the file format - Program, then click the Save button. That is, all actions are similar to those described and shown in the pictures in this article.

For convenience, pull out your new utility from the Programs folder FreeMem in Dock.

That's not all. For the script to work, we need to have Text-to-speech support for the Russian language installed in the system. You can check it here:

Russian System VoiceMilena must be selected, like in my picture. If this is not the case, then select the Customize item in the same place and install the support we need:

That's it. Now you can run your new utility. You can control the effectiveness of its work with the same System Monitor program (Programs - Utilities). Here's what I got:

Compare the highlighted numbers in the very first picture and this one.

Good luck!

Read this article in other languages: