A) Write a small C program that copies data from a file A to a file B byte-by-byte. For different file sizes 1MB - 128MB (doubling the file size in each step), record the time your program requires to complete the file copy when using read() and write() system calls. Generate a graph that depicts the program performance. Use the Unix time(1) command. B) Repeat this experiment, but instead of copying individual bytes, use larger size portions of the file that are copied in each read() and write() system call. For instance, you may choose to copy the file in chunks of 2, 4, 8, ..., 1024 byte units. Use a 128MB file for each test. Generate a performance graph of transfer size vs execution time and interpret your experimental results. What do you observe? Why do you think the system shows the observed behavior? Note: For these programs, it is imperative that file A and file B are located on the local disk. On Linux, the /tmp directory is located on the local file system. You must submit your program, the graphs of the corresponding experiments, and your analysis. Failure to follow this direction will invalidate your results as your home directory is on a network mounted drive and I/O times are influenced by network load.
A) Write a small C program that copies data from a file A to a file B byte-by-byte. For different file sizes 1MB - 128MB (doubling the file size in each step), record the time your program requires to complete the file copy when using read() and write() system calls. Generate a graph that depicts the program performance. Use the Unix time(1) command. B) Repeat this experiment, but instead of copying individual bytes, use larger size portions of the file that are copied in each read() and write() system call. For instance, you may choose to copy the file in chunks of 2, 4, 8, ..., 1024 byte units. Use a 128MB file for each test. Generate a performance graph of transfer size vs execution time and interpret your experimental results. What do you observe? Why do you think the system shows the observed behavior? Note: For these programs, it is imperative that file A and file B are located on the local disk. On Linux, the /tmp directory is located on the local file system. You must submit your program, the graphs of the corresponding experiments, and your analysis. Failure to follow this direction will invalidate your results as your home directory is on a network mounted drive and I/O times are influenced by network load.
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
please help!!
PLEASE INCLUDE THE graphs of the corresponding experiments AND THE analysis + explanations
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education