start top command in "solaris mode"


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers start top command in "solaris mode"
# 1  
Old 10-13-2008
start top command in "solaris mode"

Ever noticed that using the top command on a multiple cpu box can often give totally misleading answers, like 230%, when you think that 100% should be the max?

Well, that's because top has a bizarre mode called "Irix mode" wherein if you have 4 cpus, the %CPU column of top can go up to 400%. I have no idea why you would ever want such a mode.

Fortunately, top also has the intuitively correct mode, called "solaris mode", in which the %CPU column can only go to 100%. Basically, it is the same number as in "Irix mode" but divided by the number of cpus.

Unfortunately, I cannot figure out how to start top off in "solaris mode". What I have to do now is execute top, and then execute the interactive command 'I' to toggle "Irix mode" off and turn "solaris mode" on.

If you could let me know how to execute a single command line for top which immediately uses the proper "solaris mode", I would be very grateful.
# 2  
Old 10-13-2008
top uses a config file in /etc called toprc. the presence of this file will determine top output and behavior. also, ~.toprc is more user specific obviously controlling output by login name.

man top for details. man top
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Howto auto boot SPARC | How to auto supply "start /SYS" and "start /SP/console" commands

When I power ON my T4-1, I got a prompt -> where I have to start /SYS and start /SP/console. How can I auto supply these two commands ? (3 Replies)
Discussion started by: z_haseeb
3 Replies

2. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies

3. UNIX for Dummies Questions & Answers

How to put "top" command in crontob?

Hi, how to put "top" command in crontab through script in suse linux. Below script is working fine, but it is not working when sheduled in crontab script scheduled in cron: health.sh --------- #! /bin/ksh top |head -5 >output.txt Thanks Suresh (3 Replies)
Discussion started by: suresh3566
3 Replies

4. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

5. Shell Programming and Scripting

Retrieve RAM memory size from "top" command output

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

6. UNIX for Dummies Questions & Answers

Without using top, how to get swap space of a "subzone" on Solaris 5.10

Hi all, OS = Solaris 5.10 Without using top, can anyone please advise how to get the current swap space that is assigned to a sub-zone that is part of the Solaris zone? Some of the servers does not have the top command and I do not have access to run zone level commands either like zonecfg... (3 Replies)
Discussion started by: newbie_01
3 Replies

7. Shell Programming and Scripting

Not able to create any file name start with "-" hyphen in Solaris

Hi All, I am not able to create any file name start with "-" hyphen. Any logical issue with these types of files creation in Solaris. ============================== bash-3.00$ touch -file.txt touch: illegal option -- i usage: touch file... touch ] file... touch ... (5 Replies)
Discussion started by: hanu_oracle
5 Replies

8. UNIX for Dummies Questions & Answers

running command "top" in cron

hi all, i would like to collect stat. about the cpu usage every 30 mins so, I set up the cron job sth like 0,30 * * * * * /usr/bin/top -d 1 >> $STAT i know cron doesn't have a TERM output, so error occurs. any ideas or work around for this?? many thanks (3 Replies)
Discussion started by: freddy1228
3 Replies

9. Shell Programming and Scripting

Repeating "vi" ex-editor 'command mode' commands

Hi, How to repeat the command which we typed and executed inside the "vi" editor 'command mode' (will be get by pressing "ESC" and ":" keys), since it cannot be repeated using the "." key? Because I'm typing the lengthy command at the command mode and do not know the way to repeat it often.... (0 Replies)
Discussion started by: royalibrahim
0 Replies

10. Debian

Debian: doubt in "top" %CPU and "sar" output

Hi All, I am running my application on a dual cpu debian linux 3.0 (2.4.19 kernel). For my application: <sar -U ALL> CPU %user %nice %system %idle ... 10:58:04 0 153.10 0.00 38.76 0.00 10:58:04 1 3.88 0.00 4.26 ... (0 Replies)
Discussion started by: jaduks
0 Replies
Login or Register to Ask a Question