Retired Documents Library Developer
Search

 

This manual page is for Mac OS X version 10.9

If you are running a different version of Mac OS X, view the documentation locally:

  • In Terminal, using the man(1) command

Reading manual pages

Manual pages are intended as a quick reference for people who already understand a technology.

  • To learn how the manual is organized or to learn about command syntax, read the manual page for manpages(5).

  • For more information about this technology, look for other documentation in the Apple Developer Library.

  • For general information about writing shell scripts, read Shell Scripting Primer.




MEMORY_PRESSURE(1)        BSD General Commands Manual       MEMORY_PRESSURE(1)

NAME
     memory_pressure -- Tool to apply real or simulate memory pressure on the system.

SYNOPSIS
     memory_pressure [-l level] | [-p percent_free] | [-S -l level]

OPTIONS
     -l <level> Apply real or simulate memory pressure (if specified alongside simulate argument) on the
     system till low memory notifications corresponding to <level> are generated. Supported values are
     "warn" and "critical".

     -p <percent_free> Allocate memory till the available memory in the system is <percent_free> of total
     memory. If the percentage of available memory to total memory on the system drops, the tool will free
     memory till either the desired percentage is achieved or it runs out of memory to free.

     -S Simulate memory pressure on the system by placing it artificially for <sleep_seconds> duration at
     the "warn" or "critical" level.

     -s <sleep_seconds> Duration to wait before allocating or freeing memory if applying real pressure. In
     case of simulating memory pressure, this is the duration the system will be maintained at an artifical
     memory level.

DESCRIPTION
     A tool to apply real or simulate memory pressure on the system

SEE ALSO
     vm_stat(1)

Mac OS X                          Mar 7, 2013                         Mac OS X

Reporting Problems

The way to report a problem with this manual page depends on the type of problem:

Content errors
Report errors in the content of this documentation with the feedback links below.
Bug reports
Report bugs in the functionality of the described tool or API through Bug Reporter.
Formatting problems
Report formatting mistakes in the online version of these pages with the feedback links below.

Feedback