1. A system, comprising: memory device; counter coupled to the memory device, wherein the counter is adapted to monitor memory consumption of the memory device for one or more programs; a plurality of processors coupled to the counter, wherein one of the plurality of processors within the system is coupled to a garbage collector adapted to free a portion of unused memory; and wherein executing the garbage collector is triggered based on a value of the counter.