CSE 551 -- Programming Assignment #1 solution set
As we talked about in class, all measurements are lies. My measurement code lies as well, but hopefully the magnitude of the lies is small and the values I report are useful and understandable.
Here's what I think are pretty accurate answers:
- system call latency on bicycle.cs: 0.15 microseconds
- (will vary depending on the system call you measure)
- sequential read bandwidth of /dev/sda (/scratch) on bicycle.cs: 57 MB/s
- (will vary depending on where on the disk you measure -- inner cylinders will be slower than outer cylinders)
- seek time of /dev/sda (/scratch) on bicycle.cs: 3ms for a "small" seek
- (can be as large as ~10ms depending on how big of a seek you do)
Here's the source code to my measurement programs. Note you will need to tweak some file paths as appropriate to run these on your machine or on bicycl.cse (e.g., changing /tmp to /scratch). Also note that the .c programs require you to type in the CPU MHz as an argument. You can cat /proc/cpuinfo to find the answer -- it's 2791.375 MHz on bicycle.cs