Go Back   MacRumors Forums > Apple Systems and Services > Mac Basics and Help

Reply
 
Thread Tools Search this Thread Display Modes
Old Apr 5, 2013, 02:24 AM   #1
DukeOfMapleton
macrumors newbie
 
Join Date: Apr 2013
Can't find the script for purge command timer!

I remember finding a bit of code floating on one of the apple forums but I can't find it after days of scouring google.

My initial problem was the inactive RAM was getting too high. I wanted to have the RAM purged periodically. I found a script that did just that, and had a value section where I can enter the time in milliseconds.

I have it now set to 21,600ms which is 6 hours. So my computer automatically purges the ram every 6 hours. But now I need to remove the code because it interferes with my music production workflow and freezes the computer for a few seconds which could be detrimental to a live set.

Please if anyone knows what I am talking about or remember where this specific code is, let me know.

Its almost as if the person who published the code, decided to delete the post or something because I tried typing in main key words in search queries and still nothing comes up.
DukeOfMapleton is offline   0 Reply With Quote
Old Apr 5, 2013, 06:45 AM   #2
benwiggy
macrumors 68020
 
Join Date: Jun 2012
Quote:
Originally Posted by DukeOfMapleton View Post
Its almost as if the person who published the code, decided to delete the post or something
Perhaps that's because purging your Inactive RAM regularly is unnecessary and actually unhelpful?
OS X is designed to use lots of your RAM for Inactive Memory.

https://developer.apple.com/library/...outMemory.html

Quote:
When the number of pages on the free list falls below a threshold (determined by the size of physical memory), the pager attempts to balance the queues. It does this by pulling pages from the inactive list. If a page has been accessed recently, it is reactivated and placed on the end of the active list. In OS X, if an inactive page contains data that has not been written to the backing store recently, its contents must be paged out to disk before it can be placed on the free list. If an inactive page has not been modified and is not permanently resident (wired), it is stolen (any current virtual mappings to it are destroyed) and added to the free list. Once the free list size exceeds the target threshold, the pager rests.
If you want to get rid of the scheduled script, it probably resides at /Library/LaunchAgents or /Library/LaunchDaemons (or the same folders in the user library).
__________________
2012 MacMini, 2.6GHz i7, 16Gb RAM, Fusion Drive | 2012 MacBook Pro, 16Gb RAM, 480 Gb SSD |
2009 MacBook | 2006 iMac | 2003 G3 iBook | Beige G3 | PowerMac 7600 | Mac IIsi |

Last edited by benwiggy; Apr 5, 2013 at 11:02 AM.
benwiggy is offline   0 Reply With Quote
Old Apr 5, 2013, 12:25 PM   #3
DukeOfMapleton
Thread Starter
macrumors newbie
 
Join Date: Apr 2013
Quote:
Originally Posted by benwiggy View Post
If you want to get rid of the scheduled script, it probably resides at /Library/LaunchAgents or /Library/LaunchDaemons (or the same folders in the user library).
Oh ok, I didn't know it was harmful to purge periodically. I found the script thanks to you. It was hidden in the Launch Agent folder. Thanks!
DukeOfMapleton is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Mac Basics and Help

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
How do I get the "purge" command? RedCroissant PowerPC Macs 8 Jan 18, 2014 07:33 PM
Purge Command Broken 10.8.1 isrefel OS X 10.8 Mountain Lion 42 Oct 28, 2013 03:18 AM
Adding Command (Script) to Packagemaker Installer? Goftrey Mac Programming 4 Aug 23, 2013 09:25 PM
"purge" Command !!! OS X Mavericks (10.9) 10 Aug 11, 2013 11:22 AM
Automate "purge" command? RedCroissant OS X 17 Dec 15, 2012 11:42 AM

Forum Jump

All times are GMT -5. The time now is 11:03 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC