Skip to content

Latest commit

 

History

History

example

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Brief introduction of examples:

  • Counter: A integer which can be added to by a given number in each request.
  • Atomic: : A integer which supports exchange and compare_exchange operation.
  • Block: A single block device supports randomly read/write concurrently.

Build steps

example=counter|atomic|block
cd $example && cmake . && make

Run Server

bash run_server.sh
  • Default number of servers in the group is 3, changed by --server_num
  • Servers run on ./runtime/ which is reused, add --clean to cleanup storage

Run Client

bash run_client.sh
  • Default concurrency of client is 1, changed by --thread_num
  • If server_num of run_server.sh has been changed, specify run_client to make it consistent.
  • Add --log_each_request if you want detailed information of each request.