Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is LRU better than FIFO?

Why is Least Recently Used better than FIFO in relation to page files?

like image 375
daniel Avatar asked Nov 29 '22 19:11

daniel


1 Answers

If you mean in terms of offloading memory pages to disk - if your process is frequently accessing a page, you really don't want it to be paged to disk, even if it was the very first one you accessed. On the other hand, if you haven't accessed a memory page for several days, it's unlikely that you'll do so in the near future.

If that's not what you mean, please edit your question to give more details.

like image 96
Jon Skeet Avatar answered Dec 10 '22 03:12

Jon Skeet