-
Notifications
You must be signed in to change notification settings - Fork 41
/
README
105 lines (87 loc) · 3.38 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
To build for release
cd release
make
make check
You get two libraries in release/lib
libsupermalloc.so requires transactional memory (haswell)
libsupermalloc_pthread.so uses pthread locks
I plan to add a runtime check and have only one library and an enviroment variable in the future.
------
You should also build and check with the internal testing code
enabled. It's a different library partly because of link-time
optimization. Also, if you want things easier to compile. There are
two differences, we enable the TESTING flag (which includes a bunch of
code that can be compiled) and we set -O0.
cd debug
make check
-------
To run code coverage
cd coverage
make check
-------
At top level you can do
make clean
make
make check
-------
Installing jemalloc-3.6.0
cd jemalloc-3.6.0
./configure --prefix=/home/bradley/bmalloc/jemalloc
make
make install
-----
Some basic results (4 threads a_count=1000000)
rss time
glibc 388752 11.16 ( 9.1 user)
bmalloc 168372 11.92 (15.74 user))
hoard 313284 8.12 ( .79 user)
[bradley@30-87-232 benchmarks]$ time ./server
currentrss=1760
....................................................................................................................................................................................................................................................Total_size_for_this_thread=31167784
Total_size_for_this_thread=27727126
Total_size_for_this_thread=27341095
Total_size_for_this_thread=30455573
a=978167 d=0, a=992335 d=0, a=992071 d=0, a=1000002 d=0,
thread sum =27727126
thread sum =27341095
thread sum =31167784
thread sum =30455573
before deleting: currentrss=388752KiB
currentrss=388752KiB
maxrss=388752KiB
real 0m11.164s
user 0m9.103s
sys 0m0.753s
[bradley@30-87-232 benchmarks]$ time ./server-bmalloc
currentrss=1760
.....................................................................................................................................................................................................................................................Total_size_for_this_thread=28812487
Total_size_for_this_thread=27312814
Total_size_for_this_thread=34281324
Total_size_for_this_thread=26775209
a=986246 d=0, a=992280 d=0, a=989159 d=0, a=1000002 d=0,
thread sum =34281324
thread sum =26775209
thread sum =27312814
thread sum =28812487
before deleting: currentrss=168372KiB
currentrss=168372KiB
maxrss=168372KiB
real 0m11.920s
user 0m15.747s
sys 0m0.362s
[bradley@30-87-232 benchmarks]$ LD_PRELOAD=/home/bradley/projectlocker/svn/bradleycvs/bmalloc/benchmarks/Hoard/Hoard/src/libhoard.so time ./server
currentrss=1616
...................................................................................................................................................................................................................................................Total_size_for_this_thread=28307684
Total_size_for_this_thread=30499216
Total_size_for_this_thread=27597824
Total_size_for_this_thread=30854142
a=1000002 d=0, a=984035 d=0, a=977496 d=0, a=980520 d=0,
thread sum =28307684
thread sum =30499216
thread sum =27597824
thread sum =30854142
before deleting: currentrss=313284KiB
currentrss=313284KiB
maxrss=313284KiB
8.12user 0.79system 0:10.86elapsed 82%CPU (0avgtext+0avgdata 313588maxresident)k
0inputs+0outputs (0major+77778minor)pagefaults 0swaps