Generates a key name among a set of lru_test_sample_size keys, using * an 80-20 distribution. */
| 8113 | /* Generates a key name among a set of lru_test_sample_size keys, using |
| 8114 | * an 80-20 distribution. */ |
| 8115 | void LRUTestGenKey(char *buf, size_t buflen) { |
| 8116 | snprintf(buf, buflen, "lru:%lld", |
| 8117 | powerLawRand(1, config.lru_test_sample_size, 6.2)); |
| 8118 | } |
| 8119 | |
| 8120 | #define LRU_CYCLE_PERIOD 1000 /* 1000 milliseconds. */ |
| 8121 | #define LRU_CYCLE_PIPELINE_SIZE 250 |
no test coverage detected