View topic - extract disk i/o

extract disk i/o

anything that doesn't fit to other groups.

extract disk i/o

Postby rashidmirza » Sun Sep 19, 2010 11:53 am

hello

i would like to write a piece of code, that will display the DISK i/o usage.
I have come across code that shows memory and CPU load.
There is limited documentation on this.
Any help appreciated.
rashidmirza
Active Member
 
Posts: 55
Joined: Sun Jun 13, 2010 4:32 am

Postby rashidmirza » Tue Sep 21, 2010 12:11 pm

hello, still waiting for a reply, anyone!
rashidmirza
Active Member
 
Posts: 55
Joined: Sun Jun 13, 2010 4:32 am

Postby mario » Tue Sep 21, 2010 6:10 pm

check out the devctl DCMD_FSYS_STATISTICS and the structure fs_stats as found in sys/fs_stats.h>
mario
QNX Master
 
Posts: 4132
Joined: Sun Sep 01, 2002 1:04 am

Postby rashidmirza » Mon Sep 27, 2010 5:16 am

I have checked in procfs.h, but cannot find the definition for DCMD_FSYS_STATISTICS.
Also the front end to the above mentioned devctl, is not working.
Is it because i am using QNX 6.3?
Is there to do in this version of QNX?


mario wrote:check out the devctl DCMD_FSYS_STATISTICS and the structure fs_stats as found in sys/fs_stats.h>
rashidmirza
Active Member
 
Posts: 55
Joined: Sun Jun 13, 2010 4:32 am

Postby rashidmirza » Mon Sep 27, 2010 5:17 am

when i said frontend, i meant the usage of 'fsysinfo'
rashidmirza
Active Member
 
Posts: 55
Joined: Sun Jun 13, 2010 4:32 am

Postby mario » Mon Sep 27, 2010 1:09 pm

Could be. A while ago I wrote my own fsysinfo utility ( there is now one in 6.5.0 ), but I never tried it with 6.3. It's so old.

I would assume that if DCMD_FSYS_STATISTICS is present in the 6.3.0 header file that it is supported.
mario
QNX Master
 
Posts: 4132
Joined: Sun Sep 01, 2002 1:04 am

Postby rashidmirza » Mon Sep 27, 2010 7:01 pm

i have had a look, but i could not find a entry for the DCMD_FSYS_STATISTICS in procfs.h..is there another header file, where i should be looking?
rashidmirza
Active Member
 
Posts: 55
Joined: Sun Jun 13, 2010 4:32 am

Postby mario » Mon Sep 27, 2010 9:17 pm

DCMD_FSYS_STATISTIC is actually defined in dcmd_blk.h. I can see a DCMD_FSYS_STATISTICS_V1 in fs_stats.h but not sure what it's for
mario
QNX Master
 
Posts: 4132
Joined: Sun Sep 01, 2002 1:04 am

Postby rashidmirza » Wed Oct 06, 2010 12:29 pm

mario wrote:DCMD_FSYS_STATISTIC is actually defined in dcmd_blk.h. I can see a DCMD_FSYS_STATISTICS_V1 in fs_stats.h but not sure what it's for


thanks, helpful comments..
rashidmirza
Active Member
 
Posts: 55
Joined: Sun Jun 13, 2010 4:32 am


Return to General Programming

Who is online

Users browsing this forum: Google [Bot] and 4 guests