3.39 KB
Newer Older
Philip Carns's avatar
Philip Carns committed

## Dependencies

5 6 7
* uuid (install uuid-dev package on ubuntu)
* NVML/libpmem (see instructions below)
* margo (see instructions at

You can compile and install the latest git revision of NVML as follows:
Philip Carns's avatar
Philip Carns committed

11 12 13 14 15
* `git clone`
* `cd nvml`
* `make`
* `make install prefix=/home/carns/working/install/`

16 17 18
`make install` will require `pandoc` or you can ignore the error and not build
the documentation.

19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
## Compilation

* `./`
* `mkdir build`
* `cd build`
* `../configure --prefix=/home/carns/working/install`
* `make`

If any dependencies are installed in a nonstandard location, then
modify the configure step listed above to include the following argument:

* `PKG_CONFIG_PATH=/home/carns/working/install/lib/pkgconfig`

## Server daemon execution example (using tmpfs memory as backing store)

35 36
* `bake-mkpool -s 500M /dev/shm/foo.dat`
* `bake-server-daemon sm://1/1 /dev/shm/foo.dat`
37 38 39

### Explanation

40 41 42 43 44
The bake-mkpool command creates a BAKE pool used to store raw data for
a particular BAKE target. This is essentially a wrapper command around
pmemobj utilities for creating an empty pool that additionally store
some BAKE-specific metadata in the created pool. Pools used by the BAKE
server must be created using this command.

The bake-server-daemon command starts the server daemon.  

The first argument to bake-server-daemon is the address for Mercury to
49 50 51 52 53 54 55 56 57 58 59
listen on.  In this case we are using the CCI/SM transport.  For other
transports this would more likely just be an address and port number
(e.g. "tcp://localhost:1234").  CCI/SM endpoints are identified by two
integers.  By default ("sm://"), the first integer is the server's process
id and the second is 0.  The defaults can be overriden on the command
line (e.g. "sm://1/1" fixes the listening address to 1/1).  CCI/SM uses
the integers in the address in conjunction with the server's hostname
to create subdirectories in /tmp/cci/sm for IPC connection information.
CCI/SM will create all necessary subdirectories in /tmp/cci.  For example,
if the command is run on host "carns-x1" with "sm://1/1" then CCI/SM
will create a /tmp/cci/sm/carns-x1/1/1 directory containing connection
information for the bake-server-daemon process.

62 63
The second argument to bake-server-daemon is the path to the BAKE pool
originally created with bake-mkpool.
64 65 66

## Benchmark execution example

* `./bake-latency-bench sm:///tmp/cci/sm/carns-x1/1/1 100000 4 8`

69 70
This example runs a sequence of latency benchmarks.  Other utilities
installed with BAKE will perform other rudimentary operations.
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89

The first argument is the address of the server.  We are using CCI/SM in this
case, which means that the URL is a path to the connection information of the
server in /tmp.  The base (not changeable) portion of the path is
/tmp/cci/HOSTNAME.  The remainder of the path was specified by the server
daemon when it started.

The second argument is the number of benchmark iterations.

The third and fourth arguments specify the range of sizes to use for read and
write operations in the benchmark.

## Misc tips

Memory allocation seems to account for a significant portion of
the latency as of this writing.  The tcmalloc library will lower and
stabilize latency somewhat as a partial short-term solution.  On ubuntu
you can use tcmalloc by running this in the terminal before the server
and client commands:
Philip Carns's avatar
Philip Carns committed
90 91

export LD_PRELOAD=/usr/lib/