Sponsored Content
Full Discussion: view others process
Top Forums UNIX for Dummies Questions & Answers view others process Post 302236970 by taheri6 on Tuesday 16th of September 2008 05:42:42 PM
Old 09-16-2008
Hi,

Thank you both for your replies.

I did do a

Code:
 
ps auxf | cat

and it just showed me that Bash was running and using 100% cpu. It gave me pids and showed the owner but that didnt show me what they did.

I then took that user and ran an lsof but I didnt see any scripts running. Our cpu monitoring didnt start alerting until today, when the session was idle (according to w command) for 10 days
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

how to view my own process in a multiuser envrionment

Hi , I am new to unix , tell me how can I check which all are the processes which were started by me or under my account , its a multiuser enviornment , I tried with ps -f , but it does not give me the complete answer , it gives me which shells I hv opened like tht , I want the processes like ... (4 Replies)
Discussion started by: vishsid3
4 Replies

2. UNIX for Dummies Questions & Answers

How to view my IP

I run Ubuntu server 7.04, to learn some *nix. I set up LAMP, DNS and FTP but I don't know how to view my ip. now I tried ifconfig but that didnt tell me what I wanted to know. so by what way can I do this without a gui and a website like ipchicken? (14 Replies)
Discussion started by: blowFish@ubuntu
14 Replies

3. UNIX for Advanced & Expert Users

View process history

Hi, Is there any way to view process history. Suppose I had killed a few procs yesterday and now I want to see what were the procs that were running yesterday? (2 Replies)
Discussion started by: King Nothing
2 Replies

4. Shell Programming and Scripting

script to monitor process running on server and posting a mail if any process is dead

Hello all, I would be happy if any one could help me with a shell script that would determine all the processes running on a Unix server and post a mail if any of the process is not running or aborted. Thanks in advance Regards, pradeep kulkarni. :mad: (13 Replies)
Discussion started by: pradeepmacha
13 Replies

5. Shell Programming and Scripting

Shell Script to Kill Process(number of process) Unix/Solaris

Hi Experts, we do have a shell script for Unix Solaris, which will kill all the process manullay, it used to work in my previous env, but now it is throwing this error.. could some one please help me to resolve it This is how we execute the script (and this is the requirement) ... (2 Replies)
Discussion started by: jonnyvic
2 Replies

6. Solaris

Need to view all DB

Hi Gurus, How to view only a database files on solaris. Please do a reply at the earliest. Thanks | P.Bharathiraja (2 Replies)
Discussion started by: bharathiraja
2 Replies

7. UNIX for Advanced & Expert Users

How to view Ramdisk Initialization Process

Dear all, I read some articles about initrd, but how to view this process in my computer :(? Is there anyway to display to the screen or write to the log file? (3 Replies)
Discussion started by: Hannibal2010
3 Replies

8. UNIX for Dummies Questions & Answers

View User Mode Call Stack of Hung Process

I have a multithreaded usermode program(actually a daemon) which is in hanged state. To debug it I tried attaching the process to gdb, but the gdb hangs. gstack also gets hanged. I peeped into the proc file system and saw the process to be in sleeping state. /proc/sysrq-trigger I guess... (1 Reply)
Discussion started by: rupeshkp728
1 Replies

9. What is on Your Mind?

Moving from Desktop View to Mobile View

See attached video for a demo on how to move back and forth from the desktop view to the mobile view. Currently this only works for the home page, but I will work on some new PHP code in the future to make this work with the page we are currently on. Edit: The issue with making every page ... (2 Replies)
Discussion started by: Neo
2 Replies
ocount(1)						      General Commands Manual							 ocount(1)

NAME
ocount - Event counting tool for Linux SYNOPSIS
ocount [ options ] [ --system-wide | --process-list <pids> | --thread-list <tids> | --cpu-list <cpus> [ command [ args ] ] ] DESCRIPTION
ocount is an OProfile tool that can be used to count native hardware events occurring in either a given application, a set of processes or threads, a subset of active system processors, or the entire system. The data collected during a counting session is displayed to stdout by default or, optionally, to a file. When counting multiple events, the kernel may not be able to count all events simultaneously and, thus, may need to multiplex the counting of the events. If this happens, the "Percent time enabled" column in the ocount output will be less than 100, but counts are scaled up to a 100% estimated value. RUN MODES
One (and only one) of the following run modes must be specified. If you run ocount using a run mode other than command [args] , press Ctrl-c to stop ocount when finished counting (e.g., when the monitored process ends). If you background ocount (i.e., with '&') while using one these run modes, you must stop it in a controlled manner so that the data collection process can be shut down cleanly and final results can be displayed. Use kill -SIGINT <ocount-PID> for this purpose. command [args] The command is the application for which to count events. args are the input arguments required by the application. The command and its arguments must be positioned at the end of the command line, after all ocount options. --process-list / -p pids Use this option to count events for one or more already-running applications, specified via a comma-separated list ( pids ). Event counts will be collected for all children of the passed process(es) as well. --thread-list / -r tids Use this option to count events for one or more already-running threads, specified via a comma-separated list ( tids ). Event counts will not be collected for any children of the passed thread(s). --system-wide / -s This option is for counting events for all processes running on your system. You must have root authority to run ocount in this mode. --cpu-list / -C cpus This option is for counting events on a subset of processors on your system. You must have root authority to run ocount in this mode. This is a comma-separated list, where each element in the list may be either a single processor number or a range of processor numbers; for example: '-C 2,3,4-11,15'. OTHER OPTIONS
--events / -e event1[,event2[,...]] This option is for passing a comma-separated list of event specifications for counting. Each event spec is of the form: name[:unitmask[:kernel[:user]]] Note: Do not include a count value in the event spec, as that parameter is only need when profiling. You can specify unit mask values using either a numerical value (hex values must begin with "0x") or a symbolic name (if the name=<um_name> field is shown in the ophelp output). For some named unit masks, the hex value is not unique; thus, OProfile tools enforce specifying such unit masks value by name. If no unit mask is specified, the default unit mask value for the event is used. Event names for certain processor types include a _GRP<n> suffix. For such cases, the --events option may be specified with or without the _GRP<n> suffix. When no event specification is given, the default event for the running processor type will be used for counting. Use ophelp to list the available events for your processor type. --separate-thread / -t This option can be used in conjunction with either the --process-list or --thread-list option to display event counts on a per- thread (per-process) basis. Without this option, all counts are aggregated. NOTE: If new threads are started by the process(es) being monitored after counting begins, the counts for those threads are aggre- gated with their parent's counts. --separate-cpu / -c This option can be used in conjunction with either the --system-wide or --cpu-list option to display event counts on a per-cpu basis. Without this option, all counts are aggregated. --time-interval / -i num_seconds[:num_intervals] Results collected for each time interval are printed every num_seconds instead of the default of one dump of cumulative event counts at the end of the run. If num_intervals is specified, ocount exits after the specified number of intervals occur. --brief-format / -b Use this option to print results in the following brief format: [optional cpu or thread,]<event_name>,<count>,<percent_time_enabled> [ <int> ,]< string >,< u64 >,< double > If --timer-interval is specified, a separate line formatted as timestamp,<num_seconds_since_epoch> is printed ahead of each dump of event counts. --output-file / -f outfile_name Results are written to outfile_name instead of interactively to the terminal. --verbose / -V Use this option to increase the verbosity of the output. --version / -v Show ocount version. --help / -h Display brief usage message. --usage / -u Display brief usage message. EXAMPLE
$ ocount make VERSION
This man page is current for oprofile-0.9.9. SEE ALSO
operf(1). oprofile 0.9.9 Tue 10 June 2014 ocount(1)
All times are GMT -4. The time now is 02:52 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy