@@ -133,56 +133,6 @@ static inline cache_t *create_cache(const char *trace_path,
133133 }
134134 cc_params .hashpower = MAX (cc_params .hashpower - 8 , 16 );
135135 cache = BeladySize_init (cc_params , eviction_params );
136- <<<<<<< HEAD
137- == = == ==
138- } else if (strcasecmp (eviction_algo , "fifo-reinsertion" ) == 0 ||
139- strcasecmp (eviction_algo , "clock" ) == 0 ||
140- strcasecmp (eviction_algo , "second-chance" ) == 0 ) {
141- cache = Clock_init (cc_params , eviction_params );
142- } else if (strcasecmp (eviction_algo , "clockpro" ) == 0 ) {
143- cache = ClockPro_init (cc_params , eviction_params );
144- } else if (strcasecmp (eviction_algo , "lirs" ) == 0 ) {
145- cache = LIRS_init (cc_params , eviction_params );
146- } else if (strcasecmp (eviction_algo , "fifomerge" ) == 0 ||
147- strcasecmp (eviction_algo , "fifo-merge" ) == 0 ) {
148- cache = FIFO_Merge_init (cc_params , eviction_params );
149- // } else if (strcasecmp(eviction_algo, "fifo-reinsertion") == 0) {
150- // cache = FIFO_Reinsertion_init(cc_params, eviction_params);
151- } else if (strcasecmp (eviction_algo , "flashProb" ) == 0 ) {
152- // used to measure application level write amp
153- cache = flashProb_init (cc_params , eviction_params );
154- } else if (strcasecmp (eviction_algo , "lru-prob" ) == 0 ) {
155- cache = LRU_Prob_init (cc_params , eviction_params );
156- } else if (strcasecmp (eviction_algo , "s3lru" ) == 0 ) {
157- cache = S3LRU_init (cc_params , eviction_params );
158- } else if (strcasecmp (eviction_algo , "s3fifo" ) == 0 ||
159- strcasecmp (eviction_algo , "s3-fifo" ) == 0 ) {
160- cache = S3FIFO_init (cc_params , eviction_params );
161- } else if (strcasecmp (eviction_algo , "s3fifov0" ) == 0 ||
162- strcasecmp (eviction_algo , "s3-fifov0" ) == 0 ) {
163- cache = S3FIFOv0_init (cc_params , eviction_params );
164- } else if (strcasecmp (eviction_algo , "s3fifod" ) == 0 ) {
165- cache = S3FIFOd_init (cc_params , eviction_params );
166- } else if (strcasecmp (eviction_algo , "qdlp" ) == 0 ) {
167- cache = QDLP_init (cc_params , eviction_params );
168- } else if (strcasecmp (eviction_algo , "CAR" ) == 0 ) {
169- cache = CAR_init (cc_params , eviction_params );
170- } else if (strcasecmp (eviction_algo , "sieve" ) == 0 ) {
171- cache = Sieve_init (cc_params , eviction_params );
172- #ifdef ENABLE_3L_CACHE
173- } else if (strcasecmp (eviction_algo , "3LCache" ) == 0 ) {
174- cache = ThreeLCache_init (cc_params , eviction_params );
175- #endif
176- #ifdef ENABLE_GLCACHE
177- } else if (strcasecmp (eviction_algo , "GLCache" ) == 0 ||
178- strcasecmp (eviction_algo , "gl-cache" ) == 0 ) {
179- cache = GLCache_init (cc_params , eviction_params );
180- #endif
181- #ifdef ENABLE_LRB
182- } else if (strcasecmp (eviction_algo , "lrb" ) == 0 ) {
183- cache = LRB_init (cc_params , eviction_params );
184- #endif
185- >>>>>>> 4b 826 ae (many fixes )
186136 } else {
187137 ERROR ("do not support algorithm %s\n" , eviction_algo );
188138 abort ();
0 commit comments