Free or unmap unneeded memory

From Green software

(Difference between revisions)
Jump to: navigation, search
(New page: Consumption of unneeded memory consumes energy because the memory module consumes more energy. Unneeded memory can also increase energy consumption indirectly because it could force a syst...)
Current revision (14:51, 16 September 2010) (edit) (undo)
 
Line 4: Line 4:
== Reduce memory leaks ==
== Reduce memory leaks ==
When a program consumes memory but after usage does not release it back to the operating system, this is known as a memory leak. Memory leaks can cause nasty effects like causing an application to stall or crash or the entire system can come to a halt. Memory leaks should be avoided at any time.
When a program consumes memory but after usage does not release it back to the operating system, this is known as a memory leak. Memory leaks can cause nasty effects like causing an application to stall or crash or the entire system can come to a halt. Memory leaks should be avoided at any time.
 +
 +
== Sources ==
 +
This best practices is mentioned in: <br />
 +
Saxe, E. 2010. Power-efficient software. Commun. ACM, ACM, 53, p. 44-48.

Current revision

Consumption of unneeded memory consumes energy because the memory module consumes more energy. Unneeded memory can also increase energy consumption indirectly because it could force a system to use virtual memory when it is not really needed. Limiting the amount of memory needed is always best for energy efficiency.

Reduce memory leaks

When a program consumes memory but after usage does not release it back to the operating system, this is known as a memory leak. Memory leaks can cause nasty effects like causing an application to stall or crash or the entire system can come to a halt. Memory leaks should be avoided at any time.

Sources

This best practices is mentioned in:
Saxe, E. 2010. Power-efficient software. Commun. ACM, ACM, 53, p. 44-48.

Personal tools