Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

memory_pressure(1) [mojave man page]

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 cor- responding 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

Check Out this Related Man Page

ddi-forceattach(9P)					   Kernel Properties for Drivers				       ddi-forceattach(9P)

NAME
ddi-forceattach, ddi-no-autodetach - properties controlling driver attach/detach behavior DESCRIPTION
Solaris device drivers are attached by devfsadm(1M) and by the kernel in response to open(2) requests from applications. Drivers not cur- rently in use can be detached when the system experiences memory pressure. The ddi-forceattach and ddi-no-autodetach properties can be used to customize driver attach/detach behavior. The ddi-forceattach is an integer property, to be set globally by means of the driver.conf(4) file. Drivers with this property set to 1 are loaded and attached to all possible instances during system startup. The driver will not be auto-detached due to system memory pressure. The ddi-no-autodetach is an integer property to be set globally by means of the driver.conf(4) file or created dynamically by the driver on a per-instance basis with ddi_prop_update_int(9F). When this property is set to 1, the kernel will not auto-detach driver due to system memory pressure. Note that ddi-forceattach implies ddi-no-autodetach. Setting either property to a non-integer value or an integer value not equal to 1 pro- duces undefined results. These properties do not prevent driver detaching in response to reconfiguration requests, such as executing com- mands cfgadm(1M), modunload(1M), rem_drv(1M), and update_drv(1M). SEE ALSO
driver.conf(4) Writing Device Drivers SunOS 5.10 18 May 2001 ddi-forceattach(9P)
Man Page

15 More Discussions You Might Find Interesting

1. IP Networking

Simulate 'try again' case

Hi, I was searching thro the topic and could not find a thread which zeroes in on the case i'm trying to simulate. Basically I have a need to simulate DNS Try again cases, without bringing the dns_sever down (by manipulating the entries in /etc/resolv.conf under 'nameserver' tag). I am so... (5 Replies)
Discussion started by: srinivasan_85
5 Replies

2. AIX

Some memory is gone ?

Hi, AIX system detects 24Gb memory out of 32Gb. Where should I start troubleshooting to solve/diagnose this issue ? thanks Vilius (10 Replies)
Discussion started by: vilius
10 Replies

3. Programming

Does anybody know how to simulate press Fn+Scroll Lk in Linux c

Does anybody know how to simulate press Fn+Scroll Lk in Linux c? Thanks in advance! (10 Replies)
Discussion started by: liuyan03
10 Replies

4. Shell Programming and Scripting

Subsitute from a position till end of line.

Hi, Having a following file's content, lets say: ABC|ANA|LDJ|||||DKD|||||| AJJ|KKDD||KKDK|||||||||||| KKD||KD|||LLLD||||LLD||||| Problem: Need to replace pipes from 8th occurrence of pipe till end. so the result should be: ABC|ANA|LDJ|||||DKD AJJ|KKDD||KKDK|||| ------- ------- ... (12 Replies)
Discussion started by: _Noprofi
12 Replies

5. Linux

Where does the memory go?

I've been running a bit low on memory recently, so I decided to find out where it's going. Obviously my browser is pretty memory-intensive, but I'm not sure there's much I can do about that (short of browsing less, all I can do is tune settings and/or change browsers). So I opened the system... (9 Replies)
Discussion started by: CRGreathouse
9 Replies

6. Shell Programming and Scripting

take all characters from end to start till a fullstop

e.g. "hello.all" to be transformed to "all" :b: (6 Replies)
Discussion started by: hakermania
6 Replies

7. Shell Programming and Scripting

Waiting till the directory becomes empty

Hi Guys, I am writing a shell script to check whether the directory is empty or not. If it is empty then proceed but if it not then wait till it becomes empty. Is there any way for this? Suggestions are welcome!! Thanks in advance!:) (13 Replies)
Discussion started by: AB10
13 Replies

8. Programming

Tool to simulate non-sequential disk I/O (simulate db file sequential read) in C POSIX

Writing a Tool to simulate non-sequential disk I/O (simulate db file sequential read) in C POSIX I have over the years come across the same issue a couple of times, and it normally is that the read speed on SAN is absolutely atrocious when doing non-sequential I/O to the disks. Problem being of... (7 Replies)
Discussion started by: vrghost
7 Replies

9. Shell Programming and Scripting

How to start reading from the nth line till the last line of a file.

Hi, For my reuirement, I have to read a file from the 2nd line till the last line<EOF>. Say, I have a file as test.txt, which as a header record in the first line followed by records in rest of the lines. for i in `cat test.txt` { echo $i } While doing the above loop, I have read... (5 Replies)
Discussion started by: machomaddy
5 Replies

10. Shell Programming and Scripting

Percentage Calculation in Decimal

Hi, I have two variable and I need to calculate the percentage of them. Example: (b-a)*100/b How can I do it? I need to do it till 2 decimal point. (16 Replies)
Discussion started by: Anupam_Halder
16 Replies

11. Shell Programming and Scripting

Delete specific parts in a .txt file

Hi all, I desperately need a small script which deletes everything in a particular .txt file when "Abs = {" appears till "},", and also when "B-1 = {" appears till "}," I would like all the text in between of those instances to be deleted, however, other text to be unedited (kept as it is).... (12 Replies)
Discussion started by: c_lady
12 Replies

12. Shell Programming and Scripting

Removing cr,lf till number of fields are full

I have a file 1|2|3|4 a|b|c|d 1|2 3|4 a| b| c| d| The file should have 4 fields to load into a database. The file may have cr, lf, or end of line characters. What I want to see as output is 1|2|3|4 a|b|c|d 1|23|4 a|b|c|d I have tried (17 Replies)
Discussion started by: tampatim
17 Replies

13. UNIX for Dummies Questions & Answers

User memory utilization

Hi, I am a newbie and would like help to determine the total memory usage by a user eg oracle in Solaris 10 machine. The user has been assigned a total memory of 20gb .But there are a number of processes under that user. I would like to know the total memory being utilized from all the... (8 Replies)
Discussion started by: Rossdba
8 Replies

14. Shell Programming and Scripting

Working out percentage of memory utilization

Hi there I am middle of writing a script to allow me to see the % of the memory which is being used. When I submit my script I don't get any errors but I just get a blank output. Any pointers? available=`free -m | grep available` if then ... (7 Replies)
Discussion started by: simpsa27
7 Replies

15. AIX

Installed Memory 32GB but shows only 16GB

Hello facing this problem in VIOS installed memory shows 32GB Installed system memory: 32 GB (32768 MB) Configurable system memory: 16 GB (16384 MB) Current memory available: 2.23 GB (2288 MB) Pending memory available: 2.23 GB (2288 MB) Reserved firmware memory: 560 MB ... (8 Replies)
Discussion started by: filosophizer
8 Replies