edited by
335 views
0 votes
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?

edited by

Please log in or register to answer this question.

Related questions

321
views
0 answers
0 votes
admin asked Oct 27, 2019
321 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 ... a reasonable way given its type. List only the first disk address, if any.
331
views
0 answers
0 votes
admin asked Oct 27, 2019
331 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 together all file names that point to the file.
241
views
0 answers
0 votes
admin asked Oct 27, 2019
241 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?
237
views
0 answers
0 votes
admin asked Oct 27, 2019
237 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 ... missing in $UNIX.$ How do $UNIX$ backup programs know which files to dump?