Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Using the time built-in command of the shell, try timing the operation of the program in Listing 4-1 (copy.c) on your system. a) Experiment with
Using the time built-in command of the shell, try timing the operation of the program in Listing 4-1 (copy.c) on your system.
a) Experiment with different file and buffer sizes. You can set the buffer size using the DBUF_SIZE=nbytes option when compiling the program.
b) Modify the open() system call to include the O_SYNC flag. How much difference does this make to the speed for various buffer sizes?
c) Try performing these timing tests on a range of file systems (e.g., ext3, XFS, Btrfs, and JFS). Are the results similar? Are the trends the same when going from small to large buffer sizes?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started