12-06-2012
Don't use top on Solaris. It is not delivered with the OS and might report bogus or inaccurate data.
Use vmstat 2 2 to get free virtual and physical memory.
Use prstat -Z to get per process and global memory usage.
Use pmap -x pid to get detailed memory usage for a single process.
Use echo ::memstat | mdb -k to get RAM usage.
Use swap -s to get virtual memory usage.
These 2 Users Gave Thanks to jlliagre For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I was in smit, checking on disc space, etc. and it appears that one of our physical volumes that is part of a large volume group, has no free physical partitions. The server is running AIX 5.1. What would be the advisable step to take in this instance? (9 Replies)
Discussion started by: markper
9 Replies
2. UNIX for Dummies Questions & Answers
I'm just learning shell scripting and am new to Unix/Linux. For the past week I've been logging how much free mem is on my server by using the
'$ top' command, and the free disk space in a few directories by doing
'$ df -h'.
It sucks doing that every hour. Can you help me write a script... (2 Replies)
Discussion started by: enator45
2 Replies
3. Shell Programming and Scripting
HI,
When i use the top command in Linux I get the below values.
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
What is the maximum MEM% that will occur. I got once 303% . Is it possible to get such a high value.
Regards,
Ahamed. (2 Replies)
Discussion started by: ahamed
2 Replies
4. Solaris
Hi Export,
i execute 'top' command to show the free memory in Solaris host, but the read is much lower than the RSS value shown in prstat command. Which one can reflect the real status and it is possible the difference caused by any patch of OS?
Top command (only 883 memory is free)... (3 Replies)
Discussion started by: eiga
3 Replies
5. Emergency UNIX and Linux Support
Can the %MEM value for a process show more than 100% in top output?Is this ever possible? (5 Replies)
Discussion started by: proactiveaditya
5 Replies
6. Shell Programming and Scripting
Its rather confusing, the output of top command is below:
The "swap" field of top is described by the manpage as: "The swapped out portion of a task's total virtual memory image."
But the output of free command suggests something else and it does tally with the output of swapon... (3 Replies)
Discussion started by: proactiveaditya
3 Replies
7. Solaris
Hi All,
using top command I have the below status
load averages: 3.68, 3.20, 2.67; up 0+07:01:24 13:13:16
282 processes: 275 sleeping, 3 stopped, 4 on cpu
CPU states: 87.9% idle, 6.9% user, 5.2% kernel, 0.0% iowait, ... (3 Replies)
Discussion started by: megh
3 Replies
8. Red Hat
Hi,
from below output.How to read or relate one marked in bold.
$ free -m
total used free shared buffers cached
Mem: 129176 92753 36423 0 2268 39973
-/+ buffers/cache: 50511 78664
Swap: 31996 ... (1 Reply)
Discussion started by: manoj.solaris
1 Replies
9. AIX
Hi, Paging on one of my boxes has been bloating up while physical memory is still available.
Avg Phys Mem - 85% (of 96GB)
Avg Paging: - 55% (of 24GB)
Last week, the box ran out of paging while physical memory still reported 84% usage. Any idea what I'm missing out here?
-------------
#... (2 Replies)
Discussion started by: denissi
2 Replies
10. UNIX for Beginners Questions & Answers
I am middle of writing health check scripts, can you pls share commands on how I can get cpu and Mem of top consuming process info at the moment?
Also can u suggest ideas on what all I can look for as a part do health check on red hat Linux server?
I searched on site before posting, but... (2 Replies)
Discussion started by: Varja
2 Replies
mem(7D) Devices mem(7D)
NAME
mem, kmem, allkmem - physical or virtual memory access
SYNOPSIS
/dev/mem
/dev/kmem
/dev/allkmem
DESCRIPTION
The file /dev/mem is a special file that provides access to the physical memory of the computer.
The file /dev/kmem is a special file that provides access to the virtual address space of the operating system kernel, excluding memory
that is associated with an I/O device.
The file /dev/allkmem is a special file that provides access to the virtual address space of the operating system kernel, including memory
that is associated with an I/O device. You can use any of these devices to examine and modify the system.
Byte addresses in /dev/mem are interpreted as physical memory addresses. Byte addresses in /dev/kmem and /dev/allkmem are interpreted as
kernel virtual memory addresses. A reference to a non-existent location returns an error. See ERRORS for more information.
The file /dev/mem accesses physical memory; the size of the file is equal to the amount of physical memory in the computer. This size may
be larger than 4GB on a system running the 32-bit operating environment. In this case, you can access memory beyond 4GB using a series of
read(2) and write(2) calls, a pread64() or pwrite64() call, or a combination of llseek(2) and read(2) or write(2).
ERRORS
EFAULT Occurs when trying to write(2) a read-only location (allkmem), read(2) a write-only location (allkmem), or read(2) or
write(2) a non-existent or unimplemented location (mem, kmem, allkmem).
EIO Occurs when trying to read(2) or write(2) a memory location that is associated with an I/O device using the /dev/kmem spe-
cial file.
ENXIO Results from attempting to mmap(2) a non-existent physical (mem) or virtual (kmem, allkmem) memory address.
FILES
/dev/mem Provides access to the computer's physical memory.
/dev/kmem Provides access to the virtual address space of the operating system kernel, excluding memory that is associated with an
I/O device.
/dev/allkmem Provides access to the virtual address space of the operating system kernel, including memory that is associated with an
I/O device.
SEE ALSO
llseek(2), mmap(2), read(2), write(2)
WARNINGS
Using these devices to modify (that is, write to) the address space of a live running operating system or to modify the state of a
hardware device is extremely dangerous and may result in a system panic if kernel data structures are damaged or if device state is
changed.
SunOS 5.10 18 Feb 2002 mem(7D)