Sponsored Content
Top Forums Shell Programming and Scripting List processes using my memory Post 302972444 by Corona688 on Thursday 5th of May 2016 11:36:39 AM
Old 05-05-2016
Quote:
Any drawback or issues with release the 41199488k cached
Problem #1: It does not need releasing. It releases itself. That's why you have nearly no swap used, you're not out of memory.
Problem #2: Forcing it from 'cache' into 'free' will decrease performance for no benefit.
Problem #3: It is unlikely to solve any of your problems.

"unable to allocate shared memory" is not the same thing as "out of memory"; On Linux, that likely refers to a ramdisk residing in /dev/shm whose maximum capacity -- and what it's willing to give it to -- depends on your system settings. What's the status of /dev/shm on your system (df -h ) ?

Last edited by Corona688; 05-05-2016 at 12:44 PM..
This User Gave Thanks to Corona688 For This Post:
 

10 More Discussions You Might Find Interesting

1. AIX

Need a list of top 10 CPU using processes (also top 10 memory hogs, separately)

Okay, I am trying to come up with a multi-platform script to report top ten CPU and memory hog processes, which will be run by our enterprise monitoring application as an auto-action item when the CPU and Memory utilization gets reported as higher than a certain threshold I use top on other... (5 Replies)
Discussion started by: thenomad
5 Replies

2. Shell Programming and Scripting

Processes in Shared Memory

Hello , I would like to know how to check if a given process id belongs to particualr shared memory segment . Please help Thanks in advance (3 Replies)
Discussion started by: rmv
3 Replies

3. Shell Programming and Scripting

Reserve resources (memory and processes)

I have a shell script which sets some variables and then calls modules of a program in succession, one by one. Problem is that the script is executed on servers with many users, so sometimes the script starts running, runs for 10 minutes and then breaks due to lack of resources when other users run... (1 Reply)
Discussion started by: tetreb
1 Replies

4. Homework & Coursework Questions

processes and shared memory

Hi again! I have 2 questions ..: How can i create exactly one number of processes ? For example i want to create l*n processes and i tried this: for(i=0;i<l*n;i++){ pid=fork()} But it creates more than l*n Also, i want each child to run another x.c program with 3 command line... (1 Reply)
Discussion started by: giampoul
1 Replies

5. Homework & Coursework Questions

processes and shared memory

Hi again! I have 2 questions ..: How can i create exactly one number of processes ? For example i want to create l*n processes and i tried this: for(i=0;i<l*n;i++){ pid=fork()} But it creates more than l*n Also, i want each child to run another x.c program with 3 command line... (1 Reply)
Discussion started by: giampoul
1 Replies

6. Solaris

How get memory and cpu usages of user's processes?

I have the processes (100+) by the oracle id and I'd to get the summarized view of the oracle processes' usage of the memory and the cpu. top would give me some, but not all. Thanks (3 Replies)
Discussion started by: iwmi
3 Replies

7. AIX

Identify All Processes memory and cpu usage.

Hi All, Anyone has script to monitor AIX total processes memory and cpu usage that contribute to the total memory and CPU utilize so far ? The purpose of this is to analyze process memory trend. Thanks. Best Regards, ckwan (2 Replies)
Discussion started by: ckwan
2 Replies

8. UNIX for Dummies Questions & Answers

Finding the most memory consuming processes in Linux

Platform: Oracle Linux 6.4 To find the most memory consuming processes, I tried the following 2 methods 1. Method1 # ps aux | head -1 ; ps aux | sort -nk +4 | tail -7 USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 95 0.0 0.0 0 0 ? ... (2 Replies)
Discussion started by: kraljic
2 Replies

9. Programming

JVM processes are not getting memory allocation as soon as started

Hi, i have this scenario, when i start about 20 java processes simultaneously in unix and run ps -eaf command i can see that processes are running but memory is not getting allocated to them immediately and it stays ideal for at least 10-15 min. Meanwhile i run free command to check the RAM,... (5 Replies)
Discussion started by: Vishal Gangrade
5 Replies

10. AIX

AIX memory usage by processes

Hi, i have 2 identical web servers using AIX. I use nmon analyser to check their performance. The server A exceeds 20% memory usage for system, 5% for cache and the rest 75% for processes. While, it uses 4% of Paging Space. The server B exceeds 20% for system, 45% for cache and 35% for processes.... (24 Replies)
Discussion started by: dim
24 Replies
PMATOP(1)						      General Commands Manual							 PMATOP(1)

NAME
pmatop - System & Process Monitor SYNOPSIS
Interactive usage: pmatop [-g|-m] [-L linelen] [-h host] [ interval [ samples ]] Writing and reading raw logfiles: pmatop -w rawfile [ interval [ samples ]] pmatop -r [ rawfile ] [-g|-m] [-L linelen] [-h host] DESCRIPTION
The program pmatop is an interactive monitor to view the load on a Linux system. It shows the occupation of the most critical hardware resources (from a performance point of view) on system level, i.e. cpu, memory, disk and network. By default metrics from the local host are displayed, but a different host may be specified with the [-h host] option. It is modeled after atop(1) and provides a showcase for the variety of data available via pmcd(1). Every interval (default: 10 seconds) information is shown about the resource occupation on system level (cpu, memory, disks and network layers), followed by a list of processes which have been active during the last interval If the list of active processes does not entirely fit on the screen, only the top of the list is shown. The intervals are repeated till the number of samples (specified as command argument) is reached, or till the key 'q' is pressed in inter- active mode. When pmatop is started, it checks whether the standard output channel is connected to a screen, or to a file/pipe. In the first case it produces screen control codes (via the ncurses library) and behaves interactively; in the second case it produces flat ASCII-output. In interactive mode, the output of pmatop scales dynamically to the current dimensions of the screen/window. Furthermore in interactive mode the output of pmatop can be controlled by pressing particular keys. However it is also possible to specify such key as flag on the command line. In that case pmatop switches to the indicated mode on beforehand; this mode can be modified again interactively. Specifying such key as flag is especially useful when running pmatop with output to a pipe or file (non-interactively). These flags are the same as the keys that can be pressed in interactive mode (see section INTERACTIVE COMMANDS). OUTPUT FORMAT
The output of pmatop consists of system level and process level information. The system level information consists of the following output lines: PRC Process and thread level totals. This line contains the total cpu time consumed in system mode (`sys') and in user mode (`user'), the total number of processes present at this moment (`#proc'), `sleeping interruptible' (`#tslpi') and `sleeping uninterruptible' (`#tslpu'), and the number of zombie pro- cesses (`#zombie'). CPU The occupation percentage of this process related to the available capacity for this resource on system level. This line contains the total CPU usage in system mode, in user mode, in irq mode, in idle mode, and in wait mode. The cpu lines con- tain this information on a per cpu basis. CPL This line contains load average information for the last minute, five minutes, and fifteen minutes. Also the number of context switches and the number of device interrupts. MEM This line contains the size of physical memory, free memory, page cache, buffer cache, and slab. SWP This line contains the size of swap, free swap, committed space, and committed space limit. PAG This line contains the number of page scans, allocstalls, swapins, and swapouts. LVM/MDD/DSK For every logical volume/multiple device/hard disk one line is shown containing the name, number of reads, and number of writes. NET The first line is for the upper TCP/IP layer and contains the number of packets received, packets transmitted, packets received. The next line is one per network interface and contains the number of packets received and number of packets transmitted. PROCESS The remaining lines are one line per process and can be controlled as described below. INTERACTIVE COMMANDS
When running pmatop interactively (no output redirection), keys can be pressed to control the output. g Show generic output (default). Per process the following fields are shown in case of a window-width of 80 positions: process-id, cpu consumption during the last interval in system- and user mode, the virtual and resident memory growth of the process. The subsequent columns are the username, number of threads in the thread group, the status and exit code are shown. The last columns contain the state, the occupation percentage for the chosen resource (default: cpu) and the process name. When more than 80 positions are available, other information is added. m Show memory related output. Per process the following fields are shown in case of a window-width of 80 positions: process-id, minor and major memory faults, size of virtual shared text, total virtual process size, total resident process size, virtual and resident growth during last interval, memory occupation percentage and process name. When more than 80 positions are available, other information is added. Miscellaneous interactive commands: ? Request for help information (also the key 'h' can be pressed). z The pause key can be used to freeze the current situation in order to investigate the output on the screen. While pmatop is paused, the keys described above can be pressed to show other information about the current list of processes. Whenever the pause key is pressed again, pmatop will continue with a next sample. SEE ALSO
PCPIntro(1), collectl(1), perl(1), python(1), pmlogger(1), pmcd(1), pmprobe(1), pmval(1), PMAPI(3), and pcp.conf(4). Performance Co-Pilot PCP PMATOP(1)
All times are GMT -4. The time now is 08:12 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy