Easiest RAM trick *ever*
Moderator: James Steele
Easiest RAM trick *ever*
As far as RAM is concerned...
The current Mac OS has a really funny way of handling memory that's been let go of by other apps. It sits in "Inactive memory", and most of the time takes *forever* to get released again. Sometimes it just won't release it at all. If you are having memory errors and what not, try this little trick.
1. Open Terminal (in your Utilities)
2. Type the word "purge" (no quotes)
3. Wait for it to finish.
Your Inactive Memory has now been converted back to Free Memory. I do this a few times a day and it's amazing that they haven't built a routine to do this automatically.
The current Mac OS has a really funny way of handling memory that's been let go of by other apps. It sits in "Inactive memory", and most of the time takes *forever* to get released again. Sometimes it just won't release it at all. If you are having memory errors and what not, try this little trick.
1. Open Terminal (in your Utilities)
2. Type the word "purge" (no quotes)
3. Wait for it to finish.
Your Inactive Memory has now been converted back to Free Memory. I do this a few times a day and it's amazing that they haven't built a routine to do this automatically.
Re: Easiest RAM trick *ever*
Brilliant!!
Thanks!!
Thanks!!

6,1 MacPro, 96GB RAM, macOS Monterey 12.7.6, DP 11.33
- James Steele
- Site Administrator
- Posts: 22789
- Joined: Fri Oct 15, 2004 10:01 pm
- Primary DAW OS: MacOS
- Location: San Diego, CA - U.S.A.
- Contact:
Re: Easiest RAM trick *ever*
Very cool... I've actually posted this info (with attribution) to the MOTU-MAC email list. I tried it and watched it free up 400MB. Pretty cool!
JamesSteeleProject.com | Facebook | Instagram | Twitter
Mac Studio M1 Max, 64GB/2TB, macOS Sequoia 15.5 Public Beta 2, DP 11.34, MOTU 828es, MOTU 24Ai, MOTU MIDI Express XT, UAD-2 TB3 Satellite OCTO, Console 1 Mk2, Avid S3, NI Komplete Kontrol S88 Mk2, Red Type B, Millennia HV-3C, Warm Audio WA-2A, AudioScape 76F, Dean guitars, Marshall amps, etc., etc.!
Mac Studio M1 Max, 64GB/2TB, macOS Sequoia 15.5 Public Beta 2, DP 11.34, MOTU 828es, MOTU 24Ai, MOTU MIDI Express XT, UAD-2 TB3 Satellite OCTO, Console 1 Mk2, Avid S3, NI Komplete Kontrol S88 Mk2, Red Type B, Millennia HV-3C, Warm Audio WA-2A, AudioScape 76F, Dean guitars, Marshall amps, etc., etc.!
Re: Easiest RAM trick *ever*
Hmmmmmmm.
Unfortunately, doing that just gives me the following command line:
Unfortunately, doing that just gives me the following command line:
Terminal wrote:-bash: purge: command not found
MacPro 2.8 GHz 8-Core Intel Xeon | 14 GB RAM | OS 10.11.6 | DP 8
Re: Easiest RAM trick *ever*
Yeah, me too...zed wrote:Hmmmmmmm.
Unfortunately, doing that just gives me the following command line:
Terminal wrote:-bash: purge: command not found

When I type Purge nothing happen and when I press Return I got the same result as Zed...
Is there something else to do before the purge starts ? Do we have to quit all opened apps before launching Terminal ?
Btw, my OS language isn't english. Are command lines language dependent ?
Thanks a lot

MacPro 2x2.8 GHz, 10Gb Ram, OSX 10.5.8
Re: Easiest RAM trick *ever*
The purge command is part of XCode. If you don't have the XCode package, download it here:
http://developer.apple.com/technologies/tools/" onclick="window.open(this.href);return false;
http://developer.apple.com/technologies/tools/" onclick="window.open(this.href);return false;
6,1 MacPro, 96GB RAM, macOS Monterey 12.7.6, DP 11.33
- ronjams
- Posts: 130
- Joined: Thu Apr 14, 2005 10:01 pm
- Primary DAW OS: MacOS
- Location: ST. LOUIS MISSOURI
Re: Easiest RAM trick *ever*
How can you tell how much ram has been purged? Is there an application that tells you this?
Mac Studio M1 Max DIGITAL PERFORMER• 1248/8pre ES • Falcon/kontakt/Unify & A LOT MORE GEAR
Re: Easiest RAM trick *ever*
Thanks for that. I had to adjust my profile to become an Apple Developer in order to download the software. It's a big one... gonna take an hour to download on my fairly fast connection.Frodo wrote:The purge command is part of XCode. If you don't have the XCode package, download it here:
http://developer.apple.com/technologies/tools/" onclick="window.open(this.href);return false;
I'm guessing Utilities > Activity Monitor is your best bet. That's what I will be using when I try it for the first time, and what I use every day to keep track of how much memory DP is using.ronjams wrote:How can you tell how much ram has been purged? Is there an application that tells you this?
If this trick can actually free up memory within DP, this will save me from either crashing or having to quit every time I get up to about 2.4GB, which it always climbs up to fairly quickly.
Now if only I could get up to 4GB (as I am supposed to) it would be like having a whole new Mac...
MacPro 2.8 GHz 8-Core Intel Xeon | 14 GB RAM | OS 10.11.6 | DP 8
Re: Easiest RAM trick *ever*
I use something called NerdTool to display active data on my desktop, instead of the menu bar (which I also keep hidden). That number on the top left is my free RAM. Whenever that starts getting down in the 500MB range I run the purge command. Always brings something back.


Re: Easiest RAM trick *ever*
Fabulous! It works.
I just installed the bare minimum, the Xcode Toolset and the System Tools and disabled all other items in the custom install. Now the Purge function works in the Terminal, and it did free up both system RAM and DP application RAM.
This is going to be very helpful, and will be used several times a day from now on.
Thanks so much for posting this tip Andy!
I just installed the bare minimum, the Xcode Toolset and the System Tools and disabled all other items in the custom install. Now the Purge function works in the Terminal, and it did free up both system RAM and DP application RAM.
This is going to be very helpful, and will be used several times a day from now on.
Thanks so much for posting this tip Andy!
It just wouldn't feel right without the menu bar, for me. That is like the sign which says "Home Sweet Home".amplidood wrote:...instead of the menu bar (which I also keep hidden).
MacPro 2.8 GHz 8-Core Intel Xeon | 14 GB RAM | OS 10.11.6 | DP 8
- donreynolds
- Posts: 1321
- Joined: Wed Nov 24, 2004 10:01 pm
- Primary DAW OS: MacOS
- Location: Apollo Beach Florida
Re: Easiest RAM trick *ever*
I was using this free app that did the same thing. It is called Ifreemem
http://www.macupdate.com/app/mac/24279/ifreemem/" onclick="window.open(this.href);return false;
It saved my tail when I was having the Magnetic plugin problem
http://www.macupdate.com/app/mac/24279/ifreemem/" onclick="window.open(this.href);return false;
It saved my tail when I was having the Magnetic plugin problem
Mac Studio M2 OS 15.3 Sequioa, Presonus Faderport 8, 150gig Raptor x 2, Glyph 2Tb drive DP 11.33, Antelope Discrete 8, BLA microclock ll, Presonus Central Station, Waves Plat. V7 , Slate Everything, Melodyne studio, SSD 5, TruePianos, Event 20/20 bas, Adam A7, Avantone Active MixCube, and other toys, Lotsa guitars, HeadRush GTR processor and a Korg Triton)
Re: Easiest RAM trick *ever*
That app installs some other fishy things (eSellerate related) that I didn't want on my system. Every time I tried to clean that stuff off, it would put it back in. Goodbye!donreynolds wrote:I was using this free app that did the same thing. It is called Ifreemem
http://www.macupdate.com/app/mac/24279/ifreemem/" onclick="window.open(this.href);return false;" onclick="window.open(this.href);return false;
It saved my tail when I was having the Magnetic plugin problem

- donreynolds
- Posts: 1321
- Joined: Wed Nov 24, 2004 10:01 pm
- Primary DAW OS: MacOS
- Location: Apollo Beach Florida
Re: Easiest RAM trick *ever*
Really?? Do you remember what it put on it? I need to check it out also. I don't want fishy things on my system either.
Mac Studio M2 OS 15.3 Sequioa, Presonus Faderport 8, 150gig Raptor x 2, Glyph 2Tb drive DP 11.33, Antelope Discrete 8, BLA microclock ll, Presonus Central Station, Waves Plat. V7 , Slate Everything, Melodyne studio, SSD 5, TruePianos, Event 20/20 bas, Adam A7, Avantone Active MixCube, and other toys, Lotsa guitars, HeadRush GTR processor and a Korg Triton)
-
- Posts: 1130
- Joined: Sat May 21, 2005 10:01 pm
- Primary DAW OS: MacOS
- Location: Mountlake Terrace, Washington
- Contact:
Re: Easiest RAM trick *ever*
I have the Xtools but still get command not found in Terminal. Where in Xtools is the command?
iMac 2.7Ghz quadcore i5 16 gig RAM DP 7.24 OS 10.6.8, iMac G5 2.1GHz 2.5 gig Ram DP 5.13 OS 10.4.11 MOTU 828 MK2, East West Platinum Plus, Miroslav Philharmonic, Komplete 5, Kontakt 2 Garritan Big Band, Mr Sax T, The Trumpet, DrumCore, Trilogy and Trillian, Ivory, MachFive, Ethno Instrument, Reason 4, SampleTank 2 Sampletron, Samplemoog, Melodyne Editor, Nomad plugins, Vintage Warmer, Ozone 4, Amplitube Jimi, Xgear and AmpegSVX.
http:www.davidosuna.com
http:www.davidosuna.com
Re: Easiest RAM trick *ever*
I did the full install of the Developer Tools, so I don't really know specifically what it is that gets this command into the system's vocabulary. If you look above you'll see what Zed did, maybe try that.
Don, read up on what I mentioned here:
http://www.macupdate.com/app/mac/24279/ifreemem/" onclick="window.open(this.href);return false;
Don, read up on what I mentioned here:
http://www.macupdate.com/app/mac/24279/ifreemem/" onclick="window.open(this.href);return false;