Unix Technical Forum

getting the no. of reads & writes to a disk

This is a discussion on getting the no. of reads & writes to a disk within the HP-UX Operating System forums, part of the Unix Operating Systems category; --> Hello all, How to get the no. of reads & writes to a disk ? Also the No of ...


Go Back   Unix Technical Forum > Unix Operating Systems > HP-UX Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-16-2008, 05:55 PM
Prakash Achuthan
 
Posts: n/a
Default getting the no. of reads & writes to a disk

Hello all,

How to get the no. of reads & writes to a disk ? Also the No of bytes
transfered. Is there is any syscall available on HPUX ?

Thanks,
Prakash
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-16-2008, 05:55 PM
Surinder Kumar
 
Posts: n/a
Default Re: getting the no. of reads & writes to a disk

Can pstat_getdisk() and iostat be of some help to you ?

#include <sys/pstat/disk_pstat_body.h>
struct __pst_diskinfo {
_T_LONG_T psd_dkxfer; /* cumulative number of transfers;
* includes requests with high
* (read/write) and low (ioctl)
priorities
.... */
}

The number of bytes transferred to disk can be found out by using iostat.
column significance
device Device name
bps Kilobytes transferred per second

---
Regards
Surinder Kumar
x 3194

A smooth sea never made a skillful mariner


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-16-2008, 05:55 PM
Prakash Achuthan
 
Posts: n/a
Default Re: getting the no. of reads & writes to a disk

Does that mean there is is no way I can get the no. of reads & writes
separately ?


Surinder Kumar wrote:
> Can pstat_getdisk() and iostat be of some help to you ?
>
> #include <sys/pstat/disk_pstat_body.h>
> struct __pst_diskinfo {
> _T_LONG_T psd_dkxfer; /* cumulative number of transfers;
> * includes requests with high
> * (read/write) and low (ioctl)
> priorities
> .... */
> }
>
> The number of bytes transferred to disk can be found out by using iostat.
> column significance
> device Device name
> bps Kilobytes transferred per second
>
> ---
> Regards
> Surinder Kumar
> x 3194
>
> A smooth sea never made a skillful mariner
>
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 12:18 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com