Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Redis #13

Open
wants to merge 60 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
94b30cb
redis RESP support
byrnedj Sep 25, 2016
6845e5b
tested resp protocol
byrnedj Sep 26, 2016
8439416
tested with facebook etc
byrnedj Sep 26, 2016
6830e85
updated to work with getset mode (cache style)
byrnedj Oct 26, 2016
052602f
finally working with a file as key value input
byrnedj Nov 5, 2016
1be0169
updated protocol, fixed a nice bug
byrnedj Dec 14, 2016
393b78b
added delete option
byrnedj Apr 25, 2017
e76e69d
updated for trace output
byrnedj Oct 10, 2017
a14df42
updated nil values
Feb 22, 2019
ba0349c
updated samples
byrnedj Feb 22, 2019
3c364f0
fixed merge
byrnedj Feb 22, 2019
0ae51a8
updated
byrnedj Feb 3, 2021
c73b4ed
added unix socket option
byrnedj Feb 15, 2021
6bb7aa2
fixed unix sockets
Feb 15, 2021
807b350
update
Mar 1, 2021
b94c0bc
should finally work
byrnedj Mar 1, 2021
43dade9
mut updates
Mar 9, 2021
12b6838
updates
byrnedj Apr 14, 2021
0014140
debug info
byrnedj Apr 29, 2021
d450b13
update to max val size
byrnedj May 3, 2021
9ca4278
added request q
byrnedj May 5, 2021
6b0303e
updates
byrnedj May 5, 2021
84fb151
set errors
byrnedj May 7, 2021
69c88e7
debug conn
May 7, 2021
d0d52be
Merge branch 'master' of github.com:byrnedj/mutilate
May 7, 2021
6ad42c0
compression support
byrnedj May 11, 2021
318a96d
Merge branch 'master' of github.com:byrnedj/mutilate
byrnedj May 11, 2021
554b31a
fixed memory leak
byrnedj May 13, 2021
a70477a
minor updates
byrnedj Jun 9, 2021
81996f1
updated string and sock handling
Jul 6, 2021
045864b
lots of updates
Jul 14, 2021
52e4947
updates
Jul 15, 2021
fb3eb5b
updates
Jul 15, 2021
9a76d89
update to use evbuffer_add
byrnedj Jul 15, 2021
c7036cd
updates but probs not working
Jul 21, 2021
06a9e7d
working
Aug 4, 2021
faa18eb
stable for exps done on labor day
Sep 6, 2021
d2a279d
halfway to multi connection
Sep 7, 2021
6d67edb
compiles with multi connection
Sep 7, 2021
e25be07
progress our goal
Sep 8, 2021
06e79a3
class logic
byrnedj Sep 8, 2021
56d98c8
before changes to pointer array
Sep 13, 2021
ae497c9
before big update
Sep 16, 2021
717befa
before big flags update
Sep 17, 2021
5d95de8
updates
Oct 6, 2021
b02676c
updated incl
byrnedj Oct 7, 2021
eb4ed61
updates
Dec 14, 2021
fa01502
added in approx
byrnedj Dec 16, 2021
b644235
updates
Mar 11, 2022
aab49aa
updated and fixed
byrnedj Mar 12, 2022
c9b4a2d
updates
Mar 16, 2022
b1091df
updated
byrnedj Mar 16, 2022
89a0153
before concurrent hashmap
byrnedj Mar 18, 2022
0ac74f1
fixed
byrnedj Mar 23, 2022
f6b17ef
batching mode
byrnedj Apr 12, 2022
9e7fa3d
shm
May 25, 2022
ca7fc37
updated shm
May 29, 2022
50cdc24
updates
Jun 2, 2022
e878bbf
updates
Jun 11, 2022
457d183
works
Jun 15, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions AdaptiveSampler.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,26 +73,27 @@ template <class T> class AdaptiveSampler {
}

void print_header() {
printf("#%-6s %6s %8s %8s %8s %8s %8s %8s\n", "type", "size",
"min", "max", "avg", "90th", "95th", "99th");
printf("#%-6s %6s %8s %8s %8s %8s %8s %8s %8s %8s\n", "type", "size",
"min", "max", "avg", "50th", "90th", "95th", "99th", "99.9th");
}

void print_stats(const char *type, const char *size) {
std::vector<double> samples_copy = samples;
size_t l = samples_copy.size();

if (l == 0) {
printf("%-7s %6s %8.1f %8.1f %8.1f %8.1f %8.1f %8.1f\n", type, size,
printf("%-7s %6s %8.1f %8.1f %8.1f %8.1f %8.1f %8.1f %8.1f %8.1f\n", type, size,
0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
return;
}

sort(samples_copy.begin(), samples_copy.end());

printf("%-7s %6s %8.1f %8.1f %8.1f %8.1f %8.1f %8.1f\n", type, size,
printf("%-7s %6s %8.1f %8.1f% 8.1f %8.1f %8.1f %8.1f %8.1f %8.1f\n", type, size,
samples_copy[0], samples_copy[l-1], average(),
samples_copy[(l*50)/100],
samples_copy[(l*90)/100], samples_copy[(l*95)/100],
samples_copy[(l*99)/100]);
samples_copy[(l*99)/100], samples_copy[(l*99.9)/100]);
}
};

Expand Down
10 changes: 9 additions & 1 deletion AgentStats.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,15 @@
class AgentStats {
public:
uint64_t rx_bytes, tx_bytes;
uint64_t gets, sets, get_misses;
uint64_t gets, sets, accesses, get_misses;
uint64_t gets_l1, gets_l2, sets_l1, sets_l2;
uint64_t get_misses_l1, get_misses_l2;
uint64_t set_misses_l1, set_misses_l2;
uint64_t excl_wbs, incl_wbs;
uint64_t copies_to_l1;
uint64_t delete_misses_l2;
uint64_t delete_hits_l2;
uint64_t set_incl_hits_l1, set_excl_hits_l1;
uint64_t skips;

double start, stop;
Expand Down
Loading