how to estimate the disk access time?
e.g. the time between read one byte and another byte in the
disk.

Answers were Sorted based on User's Feedback



how to estimate the disk access time? e.g. the time between read one byte and another byte in the ..

Answer / prasad jvv

Disks are block devices. Mean one block of data can be read
at one point of time. So there is no point of time between
read one byte and another byte. If intended to calculate
time to read one byte, first of all we need to calculate
the time required to read one block and devide that by
block size.

Access Time = Command Overhead Time + Seek Time + Settle
Time + Latency

This equation is not universal standard.

Is This Answer Correct ?    6 Yes 2 No

how to estimate the disk access time? e.g. the time between read one byte and another byte in the ..

Answer / daniele

http://www.linuxinsight.com/how_fast_is_your_disk.html


% sudo hdparm -t /dev/hda

/dev/hda:
Timing buffered disk reads: 140 MB in 3.02 seconds = 46.28
MB/sec

Substitute /dev/hda with the name of your raw disk device,
of course (for example, it might be /dev/sda if you're using
libata, or something else).

Is This Answer Correct ?    1 Yes 0 No

how to estimate the disk access time? e.g. the time between read one byte and another byte in the ..

Answer / arbit

I suppose the answer is to be figured out programmatically
not by handwaving. Every stupid in Computer Science knows
what you have answered

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More C Interview Questions

Can we include one C program into another C program if yes how?

7 Answers   Infosys,


Explain how can I right-justify a string?

0 Answers  


can we access one file to one directory?

1 Answers  


Write the syntax and purpose of a switch statement in C.

0 Answers   Adobe,


If null and 0 are equivalent as null pointer constants, which should I use?

0 Answers  






what does exit() do?

3 Answers   Cadence,


Tell me when would you use a pointer to a function?

0 Answers  


How can I delete a file?

0 Answers  


State the difference between x3 and x[3].

0 Answers   Aricent,


Look at the Code: #include<string.h> void main() { char s1[]="abcd"; char s2[10]; char s3[]="efgh"; int i; clrscr(); i=strcmp(strcat(s3,ctrcpy(s2,s1))strcat(s3,"abcd")); printf("%d",i); } What will be the output? A)No output B) A Non Integer C)0 D) Garbage

7 Answers   Accenture,


Write a client and server program in C language using UDP, where client program interact with the Server as given below: i) The client begins by sending a request to send a string of 8 characters or series of 7 numbers, the server sends back a characters or numbers as per the request of the client. ii) In case of series of 7 numbers: The client sends a multiplication of numbers, to the server. iii) In case of a string of 8 characters: The client sends a reverse order of string to the server.. iv) Server will send an acknowledgment to the client after receiving the correct answer

0 Answers   Ignou, Microsoft,


How do I round numbers?

0 Answers  


Categories