CS-GY_6233_OperatingSystems
CS-GY 6233 Operating Systems Final Project
Members:
- Ajinkya Sonawane
- Roshni Sen
How to run
To compile all 6 parts and the fast.c file Run : sh build.sh
Part 1
- Program that can read and write a file from disk using the standard C/C++ library’s open, read, write, and close functions.
How to execute : ./run FILE_NAME [-r | -w] BLOCK_SIZE BLOCK_COUNT

Part 2
- Program to find a file size which can be read in “reasonable” time.
How to execute: ./run2 FILE_NAME BLOCK_SIZE

Part 3
- Compare different block sizes and output the performance it achieved in MiB/s.
How to execute: ./run3 FILE_NAME

Part 4
- Compare program with cached and non-cached data
How to execute: ./run4 FILE_NAME BLOCK_SIZE

Part 5
- Compare System calls for Block Size of 1 Byte, which will give number of system calls per second
How to execute: ./run5 FILE_NAME
READ vs LSEEK comparison

Part 6
- Compare program performance with different block sizes and threads
How to execute: ./run6 FILE_NAME
(Partial O/P)

| X-axis: Number of Threads |
Y-axis: Wall Time (seconds) |
Lines : Block Size |
fast.c
- Program to read in the fastest possible way using analysis from previous parts
How to execute : ./fast FILE_NAME
