Write user level C/C++ code to measure 7 of the following properties:
L1 cache size
L2 cache size
L1 cache access latency
L2 cache access latency
Memory access latency
Average disk seek latency
Disk sector/block size
Streaming read throughput of disk
Context switching granularity (i.e. how often the OS makes decisions regarding context switching) Using performance counters exported by OS or hardware is not allowed. You can only make inferences based on measurements made by running user-level code.
Each property should be implemented as a separate source file. Using the same methodology/approach to measure different properties will result in grading them as a single property.Note: Although the deadline is 27th of Nov. I need to run the code and make the testing on my computer in order to write a report about the results. Write user level C/C++ code to measure 7 of the following properties:
L1 cache size
L2 cache size
L1 cache access latency
L2 cache access latency
Memory access latency
Average disk seek latency
Disk sector/block size
Streaming read throughput of disk
Context switching granularity (i.e. how often the OS makes decisions regarding context switching) Using performance counters exported by OS or hardware is not allowed. You can only make inferences based on measurements made by running user-level code.
Each property should be implemented as a separate source file. Using the same methodology/approach to measure different properties will result in grading them as a single property.Note: Although the deadline is 27th of Nov. I need to run the code and make the testing on my computer in order to write a report about the results.
Attachments: