Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 617 Bytes

README.md

File metadata and controls

17 lines (14 loc) · 617 Bytes

Bandwidth Bench

You divide a dataset into b-sized blocks. You access the b-sized blocks randomly. How does your memory/disk bandwidth change depending on b? This tiny project answers that question.

Usage

  • $ make

For measuring memory bandwidth. One cacheline is 64B:

  • $ test mem <blockSizeInCacheLines> <totalSizeInMB>

For measuring disk bandwidth:

  1. Write a temporary file:
  • $ test write 0 <totalSizeInMB>
  1. Drop cached pages in linux:
  • $ echo 3 | sudo tee /proc/sys/vm/drop_caches
  1. Read the temporary file in blocks:
  • $ test disk <blockSizeInCacheLines> <totalSizeInMB>