View topic - How to get read time, read speed, write time, write speed?
How to get read time, read speed, write time, write speed?
4 posts
• Page 1 of 1
How to get read time, read speed, write time, write speed?
Hi all,
I am using QNX6.5.0. Is there any direct routine with which we can get the time taken by the last read command, its read speed, time taken by the last write command, its write speed etc programmatically using C++? I have routines like difftime() for calculating time difference? Is there any other alternatives?
Thanks,
Honey S
I am using QNX6.5.0. Is there any direct routine with which we can get the time taken by the last read command, its read speed, time taken by the last write command, its write speed etc programmatically using C++? I have routines like difftime() for calculating time difference? Is there any other alternatives?
Thanks,
Honey S
- alaipayuthe
- Active Member
- Posts: 13
- Joined: Fri Oct 16, 2009 7:01 am
Re: How to get read time, read speed, write time, write spee
Check out ClockCycles(), it's very very precise. That being said you still have to do the measurement yourself.
- mario
- QNX Master
- Posts: 4132
- Joined: Sun Sep 01, 2002 1:04 am
Re: How to get read time, read speed, write time, write spee
Ok. Thank you Mario. I will check that API.
Regards,
Honey S
Regards,
Honey S
- alaipayuthe
- Active Member
- Posts: 13
- Joined: Fri Oct 16, 2009 7:01 am
Re: How to get read time, read speed, write time, write spee
You might want to be aware that while read times have validity, write times usually do not.
When you do a write in QNX 4 you are just copying the data to the file system cache. The file system
writes the data from the cache to disk asynchronously. You could probably first fill up the cache to get an idea on the actual transfer speed if you are interested in the overall write throughput.
When you do a write in QNX 4 you are just copying the data to the file system cache. The file system
writes the data from the cache to disk asynchronously. You could probably first fill up the cache to get an idea on the actual transfer speed if you are interested in the overall write throughput.
- maschoen
- QNX Master
- Posts: 2715
- Joined: Wed Jun 25, 2003 5:18 pm
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 2 guests