Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bake
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
7
Issues
7
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sds
bake
Commits
bdb779f3
Commit
bdb779f3
authored
Dec 14, 2017
by
Shane Snyder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
misc edits for switching from bake-bulk => bake
parent
48d42533
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
37 additions
and
23 deletions
+37
-23
.gitignore
.gitignore
+3
-3
README.md
README.md
+16
-18
configure.ac
configure.ac
+2
-2
src/bake-client.c
src/bake-client.c
+2
-0
src/bake-copy-from.c
src/bake-copy-from.c
+2
-0
src/bake-copy-to.c
src/bake-copy-to.c
+2
-0
src/bake-latency-bench.c
src/bake-latency-bench.c
+2
-0
src/bake-mkpool.c
src/bake-mkpool.c
+2
-0
src/bake-server-daemon.c
src/bake-server-daemon.c
+2
-0
src/bake-server.c
src/bake-server.c
+2
-0
src/bake-shutdown.c
src/bake-shutdown.c
+2
-0
No files found.
.gitignore
View file @
bdb779f3
...
...
@@ -3,14 +3,14 @@
*.i
*.s
*.swp
bake-
bulk-
config.h
bake-config.h
autom4te.cache/
config.log
config.status
Makefile
Makefile.in
bake-
bulk-
config.h.in
bake-
bulk-
config.h.in~
bake-config.h.in
bake-config.h.in~
configure
cscope.files
aclocal.m4
...
...
README.md
View file @
bdb779f3
#
bake-bulk
#
BAKE
## Dependencies
...
...
@@ -32,22 +32,20 @@ modify the configure step listed above to include the following argument:
## Server daemon execution example (using tmpfs memory as backing store)
*
`truncate -s 500M /dev/shm/foo.dat`
*
`pmempool create obj /dev/shm/foo.dat`
*
`bake-bulk-server sm://1/1 /dev/shm/foo.dat`
*
`bake-mkpool -s 500M /dev/shm/foo.dat`
*
`bake-server-daemon sm://1/1 /dev/shm/foo.dat`
### Explanation
The truncate command creates an empty 500 MiB file in /dev/shm,
which will act as a ramdisk for storage in this case. You can skip this step
if you are using a true NVRAM device file.
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 pmempool command formats the storage device as a pmem target for
libpmemobj.
The bake-server-daemon command starts the server daemon.
The bake-bulk-server command starts the server daemon.
The first argument to bake-bulk-server is the address for Mercury to
The first argument to bake-server-daemon is the address for Mercury to
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
...
...
@@ -59,17 +57,17 @@ 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-
bulk-server
process.
information for the bake-
server-daemon
process.
The second argument to bake-
bulk-server is the path to the libpmem-formatted
storage device
.
The second argument to bake-
server-daemon is the path to the BAKE pool
originally created with bake-mkpool
.
## Benchmark execution example
*
`./b
b
-latency-bench sm:///tmp/cci/sm/carns-x1/1/1 100000 4 8`
*
`./b
ake
-latency-bench sm:///tmp/cci/sm/carns-x1/1/1 100000 4 8`
This example runs a sequence of latency benchmarks. Other
bb-
utilities
installed with
bake-bulk
will perform other rudimentary operations.
This example runs a sequence of latency benchmarks. Other utilities
installed with
BAKE
will perform other rudimentary operations.
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
...
...
configure.ac
View file @
bdb779f3
...
...
@@ -2,7 +2,7 @@
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.63])
AC_INIT([bake
-bulk
], [0.1], [],[],[])
AC_INIT([bake], [0.1], [],[],[])
AC_CONFIG_MACRO_DIR([m4])
LT_INIT
...
...
@@ -16,7 +16,7 @@ AM_INIT_AUTOMAKE([foreign subdir-objects -Wall])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
AC_CONFIG_SRCDIR([README.md])
AC_CONFIG_HEADERS([bake-
bulk-
config.h])
AC_CONFIG_HEADERS([bake-config.h])
# Checks for programs.
AC_PROG_CC
...
...
src/bake-client.c
View file @
bdb779f3
...
...
@@ -4,6 +4,8 @@
* See COPYRIGHT in top-level directory.
*/
#include "bake-config.h"
#include <assert.h>
#include <margo.h>
#include <bake-client.h>
...
...
src/bake-copy-from.c
View file @
bdb779f3
...
...
@@ -4,6 +4,8 @@
* See COPYRIGHT in top-level directory.
*/
#include "bake-config.h"
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
...
...
src/bake-copy-to.c
View file @
bdb779f3
...
...
@@ -4,6 +4,8 @@
* See COPYRIGHT in top-level directory.
*/
#include "bake-config.h"
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
...
...
src/bake-latency-bench.c
View file @
bdb779f3
...
...
@@ -4,6 +4,8 @@
* See COPYRIGHT in top-level directory.
*/
#include "bake-config.h"
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
...
...
src/bake-mkpool.c
View file @
bdb779f3
...
...
@@ -4,6 +4,8 @@
* See COPYRIGHT in top-level directory.
*/
#include "bake-config.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
...
...
src/bake-server-daemon.c
View file @
bdb779f3
...
...
@@ -4,6 +4,8 @@
* See COPYRIGHT in top-level directory.
*/
#include "bake-config.h"
#include <stdio.h>
#include <assert.h>
#include <unistd.h>
...
...
src/bake-server.c
View file @
bdb779f3
...
...
@@ -4,6 +4,8 @@
* See COPYRIGHT in top-level directory.
*/
#include "bake-config.h"
#include <assert.h>
#include <libpmemobj.h>
#include <bake-server.h>
...
...
src/bake-shutdown.c
View file @
bdb779f3
...
...
@@ -4,6 +4,8 @@
* See COPYRIGHT in top-level directory.
*/
#include "bake-config.h"
#include <stdio.h>
#include <assert.h>
#include <unistd.h>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment