We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 035d832 commit def283aCopy full SHA for def283a
1 file changed
libCacheSim/cache/eviction/S3FIFO.c
@@ -267,8 +267,8 @@ static cache_obj_t *S3FIFO_insert(cache_t *cache, const request_t *req) {
267
/* insert into small fifo */
268
// NOTE: Inserting an object whose size equals the size of small fifo is
269
// NOT allowed. Doing so would completely fill the small fifo, causing all
270
- // existing objects in small fifo to be evicted. This scenario can occur
271
- // frequently and is undesirable.
+ // objects in small fifo to be evicted. This scenario may occur
+ // when using a tiny cache size.
272
if (req->obj_size >= small_fifo->cache_size) {
273
return NULL;
274
}
0 commit comments