Changes in / [d96becd:d269894]
- Files:
-
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/theses/mubeen_zulfiqar_MMath/benchmarks.tex
rd96becd rd269894 133 133 The aim of micro benchmark suite is to create a set of programs that can evaluate a memory allocator based on the performance matrices described in (FIX ME: local cite). These programs can be taken as a standard to benchmark an allocator's basic goals. These programs give details of an allocator's memory overhead and speed under a certain allocation pattern. The speed of the allocator is benchmarked in different ways. Similarly, false sharing happening in an allocator is also measured in multiple ways. These benchmarks evalute the allocator under a certain allocation pattern which is configurable and can be changed using a few knobs to benchmark observe an allocator's performance under a desired allocation pattern. 134 134 135 Micro Benchmark Suite benchmarks an allocator's performance by allocating dynamic objects and, then, measuring specifc matrices. The benchmark suite evaluates an allocator with a certain allocation pattern. Bnechmarks have different knobs that can be used to change allocation pattern and evaluate an allocator under desired conditions. These can be set by giving commandline arguments to the benchmark on execution. 136 137 Following is the list of avalable knobs. 138 139 *** FIX ME: Add knobs items after finalize 135 TO DO before writing furthur: Finalize figures 140 136 141 137 /subsection Memory Benchmark 142 Memory benchmark measures memory overhead of an allocator. It allocates a number of dynamic objects. Then, by reading /self/proc/maps, gets the total memory that the allocator has reuested from the OS. Finally, it calculates the memory head by taking the difference between the memory the allocator has requested from the OS and the memory that program has allocated.143 *** FIX ME: Insert a figure of above benchmark with description144 145 /subsubsection Relevant Knobs146 *** FIX ME: Insert Relevant Knobs147 148 138 /subsection Speed Benchmark 149 Speed benchmark calculates the runtime speed of an allocator's functions (FIX ME: cite allocator routines). It does by measuring the runtime of allocator routines in two different ways.150 151 139 /subsubsection Speed Time 152 The time method does a certain amount of work by calling each routine of the allocator (FIX ME: cite allocator routines) a specific time. It calculates the total time it took to perform this workload. Then, it divides the time it took by the workload and calculates the average time taken by the allocator's routine.153 *** FIX ME: Insert a figure of above benchmark with description154 155 /subsubsubsection Relevant Knobs156 *** FIX ME: Insert Relevant Knobs157 158 140 /subsubsection Speed Workload 159 The worload method uses the opposite approach. It calls the allocator's routines for a specific amount of time and measures how much work was done during that time. Then, similar to the time method, it divides the time by the workload done during that time and calculates the average time taken by the allocator's routine.160 *** FIX ME: Insert a figure of above benchmark with description161 162 /subsubsubsection Relevant Knobs163 *** FIX ME: Insert Relevant Knobs164 141 165 142 /subsection Cache Scratch 166 Cache Scratch benchmark measures program induced allocator preserved passive false sharing (FIX ME CITE) in an allocator. It does so in two ways.167 168 143 /subsubsection Cache Scratch Time 169 Cache Scratch Time allocates dynamic objects. Then, it benchmarks program induced allocator preserved passive false sharing (FIX ME CITE) in an allocator by measuring the time it takes to read/write these objects.170 *** FIX ME: Insert a figure of above benchmark with description171 172 /subsubsubsection Relevant Knobs173 *** FIX ME: Insert Relevant Knobs174 175 144 /subsubsection Cache Scratch Layout 176 Cache Scratch Layout also allocates dynamic objects. Then, it benchmarks program induced allocator preserved passive false sharing (FIX ME CITE) by using heap addresses returned by the allocator. It calculates how many objects were allocated to different threads on the same cache line.177 *** FIX ME: Insert a figure of above benchmark with description178 179 /subsubsubsection Relevant Knobs180 *** FIX ME: Insert Relevant Knobs181 145 182 146 /subsection Cache Thrash 183 Cache Thrash benchmark measures allocator induced passive false sharing (FIX ME CITE) in an allocator. It also does so in two ways.184 185 147 /subsubsection Cache Thrash Time 186 Cache Thrash Time allocates dynamic objects. Then, it benchmarks allocator induced false sharing (FIX ME CITE) in an allocator by measuring the time it takes to read/write these objects.187 *** FIX ME: Insert a figure of above benchmark with description188 189 /subsubsubsection Relevant Knobs190 *** FIX ME: Insert Relevant Knobs191 192 148 /subsubsection Cache Thrash Layout 193 Cache Thrash Layout also allocates dynamic objects. Then, it benchmarks allocator induced false sharing (FIX ME CITE) by using heap addresses returned by the allocator. It calculates how many objects were allocated to different threads on the same cache line.194 *** FIX ME: Insert a figure of above benchmark with description195 196 /subsubsubsection Relevant Knobs197 *** FIX ME: Insert Relevant Knobs198 199 /section Results200 *** FIX ME: add configuration details of memory allocators201 202 /subsection Memory Benchmark203 204 /subsubsection Relevant Knobs205 206 /subsection Speed Benchmark207 208 /subsubsection Speed Time209 210 /subsubsubsection Relevant Knobs211 212 /subsubsection Speed Workload213 214 /subsubsubsection Relevant Knobs215 216 /subsection Cache Scratch217 218 /subsubsection Cache Scratch Time219 220 /subsubsubsection Relevant Knobs221 222 /subsubsection Cache Scratch Layout223 224 /subsubsubsection Relevant Knobs225 226 /subsection Cache Thrash227 228 /subsubsection Cache Thrash Time229 230 /subsubsubsection Relevant Knobs231 232 /subsubsection Cache Thrash Layout233 234 /subsubsubsection Relevant Knobs
Note: See TracChangeset
for help on using the changeset viewer.