Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction to Wireless and Mobile Systems

Authors: Dharma P. Agrawal, Qing An Zeng

4th edition

1305087135, 978-1305087132, 9781305259621, 1305259629, 9781305537910 , 978-130508713

More Books

Students also viewed these Programming questions

Question

Identify the purpose of the enactment of the Sarbanes-Oxley Act.

Answered: 1 week ago