Lines Matching defs:size
98 "-R\t\t Randomize size of memory to copy and search\n"
99 "-s <size>\t Size of memory chunks, in bytes\n"
208 printf("page size %d\n", page_size);
223 fprintf(stderr, "Chunk size %u smaller than record size %u\n",
229 static void touch_mem(char *dest, size_t size)
233 for (i = 0; i < (long)size; i += page_size)
238 static void *alloc_mem(size_t size)
244 p = mmap(NULL, size, (PROT_READ | PROT_WRITE),
249 p = malloc(size);
256 "chunks or size options\n"
257 "Using -n %u chunks and -s %u size\n",
258 size, chunks, chunk_size);
265 static void free_mem(void *p, size_t size)
268 munmap(p, size);
329 static void *linear_search(record_t key, record_t * base, size_t size)
332 record_t *end = base + (size / record_size);
383 * multiple of record size.
402 printf("Search key %zu, copy size %zu\n", key,