edited by
572 views
0 0 votes

Implement a program to measure the impact of application-level buffer sizes on read time. This involves writing to and reading from a large file (say, $2$ GB). Vary the application buffer size (say, from $64$ bytes to $4$ KB). Use timing measurement routines (such as gettimeofday and getitimer on UNIX) to measure the time taken for different buffer sizes. Analyze the results and report your findings: does buffer size make a difference to the overall write time and per-write time?

Please log in or register to answer this question.

Position:
Show:

Related questions

0 0 votes
0 0 answers
489
489 views
admin asked Oct 27, 2019
489 views
Write a new version of the UNIX ls program. This version takes as an argument one or more directory names and for each directory lists all the files in that directory, on...
0 0 votes
0 0 answers
537
537 views
admin asked Oct 27, 2019
537 views
Write a program that scans all directories in a $UNIX$ file system and finds and locates all i-nodes with a hard link count of two or more. For each such file, it lists t...
0 0 votes
0 0 answers
389
389 views
admin asked Oct 27, 2019
389 views
It has been suggested that the first part of each UNIX file be kept in the same disk block as its i-node. What good would this do?
0 0 votes
0 0 answers
443
443 views
admin asked Oct 27, 2019
443 views
We discussed making incremental dumps in some detail in the text. In Windows it is easy to tell when to dump a file because every file has an archive bit. This bit is mis...