02-13-2007
use the -d option then just use awk or grep to get the value of the memory
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
in unix when i use top
i get an output like this:
load averages: 0.64, 0.57, 0.53 14:04:42
347 processes: 1 running, 1 waiting, 169 sleeping, 172 idle, 4 stopped
CPU states: 16.4% user, 2.8% nice, 7.6%... (2 Replies)
Discussion started by: gfhgfnhhn
2 Replies
2. Programming
I'm writing a monitoring application. I'd like to periodically get the information provided by the 'top' command line utility from within my code and write the output of 'top' to a file. Wondering if anyone has already done something like this.
Doing
system("top > someFile");
does not create... (6 Replies)
Discussion started by: antoniomorandi
6 Replies
3. AIX
HI All,
Can anyone send me a command to find TOP 5 Memory consuming process.
It would be lelpful if I get output something like below
processname - pid - memory(in MB) - command
I tried few commands from the internet but the result only give the real memory usage or pagging, I want total... (4 Replies)
Discussion started by: bce_groups
4 Replies
4. AIX
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
5. Shell Programming and Scripting
Hi all,
I found like top command could be used to find the Memory and CPU utilization. But i want to know how to find the Memory and CPU utilization for a particular user using top command.
Thanks in advance.
Thanks,
Ananthi.U (2 Replies)
Discussion started by: ananthi_ku
2 Replies
6. Shell Programming and Scripting
hi,
I want to extract and save the cpu(s) information from top command output, but individual cpu statistics separately on a multi-processor machine.
In command line, top will show this statistics when we press the switch "1".
any ideas?
thanks,
meharo (3 Replies)
Discussion started by: meharo
3 Replies
7. 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
8. UNIX Desktop Questions & Answers
Hi All,
I work on a Linux platform which runs Red Hat (forget which version) and use both korn and bash shells. Is there a way of making the command line appear at the top of the terminal window and any lists, commands or directory names etc to appear below the top, that is to say reverse the... (1 Reply)
Discussion started by: ray_m
1 Replies
9. Shell Programming and Scripting
Hi,
I am trying to get the system RAM size from "top" command's output by the following but it is not working.
top | sed "s/^Mem.**\(*\), *//" (10 Replies)
Discussion started by: royalibrahim
10 Replies
10. Red Hat
I wanted to know how to find the memory taken by a process using top command. The output of the top command is as follows as an example:
Mem: 13333364k total, 13238904k used, 94460k free, 623640k buffers
Swap: 25165816k total, 112k used, 25165704k free, 4572904k cached
PID USER ... (6 Replies)
Discussion started by: RHCE
6 Replies
LEARN ABOUT HPUX
vparconfig
vparconfig(1M) vparconfig(1M)
NAME
vparconfig - specify the partition mode policy, partition CLM policy, and partition ILM policy for the next system boot
SYNOPSIS
[mode]]
memtype size
DESCRIPTION
The command sets the EFI variable that determines the partition mode on Itanium-based systems and then automatically reboots the system.
The partition mode policy can be vPars or nPars.
In addition, the command sets the partition ILM policy EFI variable (for InterLeaved Memory) and the partition CLM policy EFI variable (for
Cell Local Memory). However, the reboot does not happen automatically. The partition ILM policy or partition CLM policy change will only
occur when you reboot the system using the command.
The default behavior of the command specified without any options is to display the current settings of the partition mode policy, the par-
tition ILM policy, and the partition CLM policy.
This command is only available at the EFI shell if the vPars depot has been installed on the disk.
This command is not supported on PA-RISC platforms.
Options and Arguments
recognizes the following command line options and arguments:
Specifies the partition mode for the next system boot and then automatically reboots the system. The valid values for mode are case-insen-
sitive and The system reboots in the following ways:
o If mode is then after reboot, the system will be in vPars mode.
vPars mode allows you to boot the vPars Monitor and virtual partitions in the next nPartition boot.
o If mode is then after reboot, the system will be in nPars mode.
In nPars mode you cannot boot the vPars Monitor or virtual partitions. However, you can boot HP-UX as a standalone operating
system.
o If is specified with no arguments, then the system reboots with the existing mode.
memtype size
Specifies the desired granularity of Cell Local Memory (CLM) or InterLeaved Memory (ILM) to be set in the appropriate EFI variable
for the next reboot.
memtype is either or
size specifies the desired granularity in megabytes corresponding to memtype. Only a decimal value is allowed to specify the gran-
ule size.
Displays command line options and arguments.
EXAMPLES
Reboot the system to mode.
Reboot the system to mode.
Set the ILM granularity to 128 MB.
Set the CLM granularity to 128 MB.
AUTHOR
was developed by the Hewlett-Packard Company.
SEE ALSO
vparenv(1M).
Itanium(R)-Based Systems Only vparconfig(1M)