JerryLead / bandwidth-bench

Measure memory and disk bandwidth using the random access size as a paramater.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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>

About

Measure memory and disk bandwidth using the random access size as a paramater.


Languages

Language:C++ 97.8%Language:Makefile 2.2%