Skip to content

Commit

Permalink
my changes
Browse files Browse the repository at this point in the history
  • Loading branch information
baotonglu committed Jul 7, 2022
1 parent 4a76259 commit 9e6b05e
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion include/Common.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ static_assert(kRootPointerStoreOffest % sizeof(uint64_t) == 0, "XX");

// lock on-chip memory
constexpr uint64_t kLockStartAddr = 0;
constexpr uint64_t kLockChipMemSize = 256 * 1024;
constexpr uint64_t kLockChipMemSize = 64 * 1024;

// number of locks
// we do not use 16-bit locks, since 64-bit locks can provide enough concurrency.
Expand Down
2 changes: 1 addition & 1 deletion include/Rdma.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ struct Region {
};

//// Resource.cpp
bool createContext(RdmaContext *context, uint8_t port = 1, int gidIndex = 1,
bool createContext(RdmaContext *context, uint8_t port = 1, int gidIndex = 0,
uint8_t devIndex = 0);
bool destoryContext(RdmaContext *context);

Expand Down
4 changes: 2 additions & 2 deletions memcached.conf
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
10.0.2.114
2378
10.150.240.28
11211
Empty file modified script/hugepage.sh
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion src/Tree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ void Tree::print_verbose() {

int kLeafHdrOffset = STRUCT_OFFSET(LeafPage, hdr);
int kInternalHdrOffset = STRUCT_OFFSET(InternalPage, hdr);
static_assert(kLeafHdrOffset == kInternalHdrOffset, "XXX");
// static_assert(kLeafHdrOffset == kInternalHdrOffset, "XXX");

if (dsm->getMyNodeID() == 0) {
std::cout << "Header size: " << sizeof(Header) << std::endl;
Expand Down
4 changes: 3 additions & 1 deletion src/rdma/Resource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ bool createContext(RdmaContext *context, uint8_t port, int gidIndex,

for (int i = 0; i < devicesNum; ++i) {
// printf("Device %d: %s\n", i, ibv_get_device_name(deviceList[i]));
if (ibv_get_device_name(deviceList[i])[5] == '0') {
if (ibv_get_device_name(deviceList[i])[5] == '1') {
//if (ibv_get_device_name(deviceList[i]) == "mlx5_1") {
printf("Device %d: %s\n", i, ibv_get_device_name(deviceList[i]));
devIndex = i;
break;
}
Expand Down

0 comments on commit 9e6b05e

Please sign in to comment.