- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: getting process I/O by command
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-25-2005 06:35 PM
12-25-2005 06:35 PM
does anyone know wheter there is a way to receive a process I/O interupts (by I/O per seconds, or by any other way) - like glance open files menu on a process view...
but with command (so it will be suitable for scripting)
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-25-2005 07:24 PM
12-25-2005 07:24 PM
Re: getting process I/O by command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-25-2005 07:45 PM
12-25-2005 07:45 PM
Re: getting process I/O by command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-25-2005 07:46 PM
12-25-2005 07:46 PM
Re: getting process I/O by command
by the way - if you know any perl module or C function library related to this issue i'll be glad to check it too.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-25-2005 08:33 PM
12-25-2005 08:33 PM
Re: getting process I/O by command
You need to have mwa/glance or PV for that.
These additional $ products.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-25-2005 08:44 PM
12-25-2005 08:44 PM
Re: getting process I/O by command
how can I use iostat with that?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-25-2005 08:51 PM
12-25-2005 08:51 PM
Re: getting process I/O by command
Check the following threads, it should be helpful to you.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=700950
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=955044
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-25-2005 09:09 PM
12-25-2005 09:09 PM
Re: getting process I/O by command
Prepare report file as follows. (customize /var/opt/perf/reptall
REPORT "MWA Export !DATE !TIME Logfile: !LOGFILE !COLLECTOR !SYSTEM_ID"
FORMAT ASCII
HEADINGS ON
SEPARATOR="|"
SUMMARY=60
MISSING=0
DATA TYPE PROCESS
BLANK
RECORD_TYPE
DATE
TIME
YEAR
DAY
PROC_PROC_ID
PROC_PROC_NAME
PROC_USER_NAME
PROC_DISK_PHYS_IO_RATE
PROC_DISK_PHYS_IO
there are many metrics available and you can choose what you want.
Then you can do extract command as follows.
extract -xp -v -gapkdztncuyGADZTNUY -r "rep_file_prepared_above" -f out_put_file -b 12/22/2005 00:00am -e 12/23/2005 01:00am
-b and -e are begining and end dates.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-25-2005 09:18 PM
12-25-2005 09:18 PM
Re: getting process I/O by command
It should be up to date - I/O per process per minute....
to be able to compare the I/O rate at the moment and at the moment before...
it's not a report, more like monitoring a process by I/O rate.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-25-2005 09:43 PM
12-25-2005 09:43 PM
Re: getting process I/O by command
u_print_head="Y"
u_headers_printed=u_headers_printed
if u_headers_printed==0 and u_print_head=="Y" then {
u_max_cpu_pct=100*gbl_active_cpu
print "# User CPU Util Cum Disk Thd"
print "#Process Name PID PPID Pri Name ( ",u_max_cpu_pct|4|0,"% max) CPU IO Rate RSS Cnt"
print "#------------ ------ ------ --- -------- ------------ -------- --------- ------- ---"
u_headers_printed = 1
} # endif
#
print "# ",
gbl_statdate,
" ",
gbl_stattime,
" C=",
gbl_cpu_total_util|3|0,
" D=",
gbl_disk_util_peak|3|0,
" M=",
gbl_mem_util|3|0,
" S=",
gbl_swap_space_util|3|0
#
process loop {
# if proc_proc_name == "PROC_NAME" then {
if proc_proc_name == "java" then {
print proc_proc_name|13," ",
proc_proc_id|6," ",
proc_parent_proc_id|6," ",
proc_pri|3," ",
proc_user_name|8," ",
proc_cpu_total_util|4|1,"/",
proc_cpu_total_util_cum|4|1," ",
proc_cpu_total_time_cum|8|1," ",
proc_disk_phys_io_rate|4|1,"/",
proc_disk_phys_io_rate_cum|4|1," ",
proc_mem_res|7|1," ",
proc_thread_count|3|0
} # endif
} # end process loop
change the process name and process metrics as you want.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-25-2005 09:44 PM
12-25-2005 09:44 PM
Solutionu_print_head="Y"
u_headers_printed=u_headers_printed
if u_headers_printed==0 and u_print_head=="Y" then {
u_max_cpu_pct=100*gbl_active_cpu
print "# User CPU Util Cum Disk Thd"
print "#Process Name PID PPID Pri Name ( ",u_max_cpu_pct|4|0,"% max) CPU IO Rate RSS Cnt"
print "#------------ ------ ------ --- -------- ------------ -------- --------- ------- ---"
u_headers_printed = 1
} # endif
#
print "# ",
gbl_statdate,
" ",
gbl_stattime,
" C=",
gbl_cpu_total_util|3|0,
" D=",
gbl_disk_util_peak|3|0,
" M=",
gbl_mem_util|3|0,
" S=",
gbl_swap_space_util|3|0
#
process loop {
# if proc_proc_name == "PROC_NAME" then {
if proc_proc_name == "java" then {
print proc_proc_name|13," ",
proc_proc_id|6," ",
proc_parent_proc_id|6," ",
proc_pri|3," ",
proc_user_name|8," ",
proc_cpu_total_util|4|1,"/",
proc_cpu_total_util_cum|4|1," ",
proc_cpu_total_time_cum|8|1," ",
proc_disk_phys_io_rate|4|1,"/",
proc_disk_phys_io_rate_cum|4|1," ",
proc_mem_res|7|1," ",
proc_thread_count|3|0
} # endif
} # end process loop
change the process name and process metrics as you want.
Execute it as follows.
glance -adviser_only -iteratons 4 -j2 -syntax "file_name"