After a long time, your Mac can become slower than usual due to the accumulated cruft clogging up your computer system, such as temporary files, caches, streaming data and so on Apart from the low disk space, lack of RAM can be the second major cause of slowdown problems.
When opening an app on your Mac, its binary will be loaded from the storage into the RAM so that the CPU of your computer can fetch and execute code. Similar to multitasking operating systems, macOS will manage the RAM memory on your behalf you can run more apps at the same time than fitting into it.
The memory management on MacOS works very well, most of the time, and the Activity Monitor app will automatically slow RAM when it’s nearly 100% utilized. The RAM wants to be packed to the gills all the time since loading content from internal storage is much slower than fetching from the RAM.
However, due to some reasons, the memory management on MacOS fails to purge loaded content from the RAM memory. The operating system flushes the system caches, but caches may not be properly emptied in some cases. This will cause your Mac to start stuttering and showing up signs of slowdown performance like longer app loading times and slower multitasking operations. If you are facing the same difficulty, here is how to manually force your MacOS to tidy the RAM and flush the hard disk caches.
Easy solutions to speed up your Mac
You can fix the slowdowns on your Mac with or without rebooting it
With rebooting your Mac
Apple designs Mac to go weeks without a restart. However, it’s still recommended to shut down your computer at the end of the day and then restart it in the morning as doing this will help your macOS clean up everything in the RAM and gets rid of the disk caches.
If you’re not comfortable working with the command line in Terminal, you should restart your Mac once per day and you’ll be good.
Without rebooting your Mac
In a few cases, a reboot cannot help to clear the RAM and hard disk caches, Terminal is a good alternative. Thanks to the command lines, you can easily force your Mac’s RAM and cache-cleaning processes to back to normal. Just follow these steps below
1) Open Terminal app from Applications/Utilities folder on your Mac
2) Type in the following command into the Terminal window, and then hit Enter key:
You will be asked to enter the password for your Mac computer.
Clearing the RAM and disk cache might just take a few seconds if your Mac is not running low on RAM memory and storage space. There will not be any confirmation message when the operation is completed.
The command line method will be pretty convenient without interrupting your important work by a restart. Simply open up the Terminal app and run the aforementioned commands to give a boost without the need for the restart.
It’s time to upgrade RAM/SSD
In fact, the command is not a magical remedy for all slowdowns. Your Mac has insufficient RAM for your daily needs.
If you usually edit or render videos on your Mac, you’ll need as much RAM as you need. 8GB RAM is minimum for these days and 16GB RAM is ideal for daily multitasking like browsing the web, watching films, using social media, editing videos and so on.
Apart from RAM, you should also outfit your Mac by replacing a faster SSD which will give you a noticeable boost in performance especially if you are using an HDD drive on your Mac.