2019-04-04 19:09:13.486 7f9e33b3da40 -1 WARNING: all dangerous and experimental features are enabled.
2019-04-04 19:09:13.490 7f9e33b3da40 -1 WARNING: all dangerous and experimental features are enabled.
2019-04-04 19:09:13.490 7f9e33b3da40 -1 WARNING: all dangerous and experimental features are enabled.
hints = 1
sec Cur ops started finished avg MB/s cur MB/s last lat(s) avg lat(s)
0 0 0 0 0 0 - 0
1 15 25469 25454 99.4172 99.4297 0.000434646 0.000623739
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MDS=0 MGR=1 OSD=3 MON=3 ../src/vstart.sh -n --without-dashboard | |
sleep 5 | |
monmap_fn=/tmp/monmap | |
bin/ceph mon getmap -o $monmap_fn | |
bin/init-ceph stop mon | |
for name in a b c; do | |
if [ "$name" == "a" ]; then | |
rm -rf dev/mon.$name/store.db | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- | |
// vim: ts=8 sw=2 smarttab | |
#include <list> | |
#include <map> | |
#include <type_traits> | |
#include <unordered_map> | |
template <class Key, class Value, bool Ordered> | |
class LRUCache { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/CMakeLists.txt b/CMakeLists.txt | |
index c904497866..d557536c20 100644 | |
--- a/CMakeLists.txt | |
+++ b/CMakeLists.txt | |
@@ -604,13 +604,13 @@ if(WITH_SYSTEM_BOOST) | |
else() | |
set(Boost_USE_STATIC_LIBS ON) | |
endif() | |
- find_package(Boost 1.66 COMPONENTS ${BOOST_COMPONENTS} REQUIRED) | |
+ find_package(Boost 1.67 COMPONENTS ${BOOST_COMPONENTS} REQUIRED) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./rbd create -p rbd -s 1024M --object-size 32M rbd/image-1 | |
./rbd bench-write --io-size 4K --io-total 512M rbd/image-1 | |
./rbd snap create rbd/image-1@0 | |
./rbd snap protect rbd/image-1@0 | |
for i in `seq 1000`; do | |
echo "========= $i ===========" | |
./rbd clone rbd/image-1@0 rbd/image-2 | |
./rbd bench-write --aligned-size 32M --io-size 4K --io-total 32M rbd/image-2 | |
./rbd rm rbd/image-2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/CMakeLists.txt b/CMakeLists.txt | |
index da92ca39bc..4a2679ff0b 100644 | |
--- a/CMakeLists.txt | |
+++ b/CMakeLists.txt | |
@@ -1,4 +1,8 @@ | |
-cmake_minimum_required(VERSION 2.8.12) | |
+cmake_minimum_required(VERSION 3.4) | |
+ | |
+if(POLICY CMP0025) | |
+ cmake_policy(SET CMP0046 NEW) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <boost/variant.hpp> | |
#include <iostream> | |
using namespace boost; | |
using namespace std; | |
struct addr_t { | |
int i = 42; | |
addr_t() = default; | |
~addr_t() noexcept = default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set(CMAKE_SYSTEM_NAME Linux) | |
set(CMAKE_SYSTEM_PROCESSOR arm) | |
set(TOOLCHAIN_PREFIX arm-linux-gnueabihf) | |
# specify the cross compiler | |
set(CMAKE_C_COMPILER /usr/bin/${TOOLCHAIN_PREFIX}-gcc CACHE FILEPATH "CXX cc")) | |
set(CMAKE_CXX_COMPILER /usr/bin/${TOOLCHAIN_PREFIX}-g++ CACHE FILEPATH "CXX cc") | |
set(CMAKE_AR /usr/bin/arm-linux-gnueabihf-ar CACHE FILEPATH "Archiver") | |
# setCMAKE_CXX_LINK_EXECUTABLE ${TOOLCHAIN_PREFIX}-ld) | |
# set(CMAKE_C_LINK_EXECUTABLE ${TOOLCHAIN_PREFIX}-ld) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set(CMAKE_SYSTEM_NAME Linux) | |
set(CMAKE_SYSTEM_PROCESSOR arm) | |
set(TOOLCHAIN_PREFIX arm-linux-gnueabihf) | |
# specify the cross compiler | |
set(CMAKE_C_COMPILER /usr/bin/${TOOLCHAIN_PREFIX}-gcc CACHE FILEPATH "CXX cc")) | |
set(CMAKE_CXX_COMPILER /usr/bin/${TOOLCHAIN_PREFIX}-g++ CACHE FILEPATH "CXX cc") | |
set(CMAKE_AR /usr/bin/arm-linux-gnueabihf-ar CACHE FILEPATH "Archiver") | |
# setCMAKE_CXX_LINK_EXECUTABLE ${TOOLCHAIN_PREFIX}-ld) | |
# set(CMAKE_C_LINK_EXECUTABLE ${TOOLCHAIN_PREFIX}-ld) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import matplotlib.pyplot as plt | |
x,y = np.loadtxt('/tmp/b1000.csv',delimiter=',',usecols=[2,3], unpack=True) | |
hm,xs,ys=np.histogram2d(x, y, bins=50) | |
extent = [xs[0], xs[-1], ys[0], ys[-1]] | |
plt.clf() | |
plt.imshow(hm.T, extent=extent, origin='lower') | |
plt.show() |