发明名称 Management of file cache
摘要 A method and computer program product for managing a file cache with a filesystem cache manager is disclosed. The method may include installing the filesystem cache manager for the file cache by a mount command. The filesystem cache manager may include a specified time interval and a first cache elimination instruction. The method may further include starting a first timer upon the installation of the filesystem cache manager. The method may further include running the first cache elimination instruction when the first timer reaches the specified time interval.
申请公布号 US9460101(B2) 申请公布日期 2016.10.04
申请号 US201314098061 申请日期 2013.12.05
申请人 International Business Machines Corporation 发明人 Accapadi Mathew;Davidson, II Grover C.;Michel Dirk;Olszewski Bret R.
分类号 G06F12/12;G06F17/30;G06F12/08 主分类号 G06F12/12
代理机构 代理人 Tyson Thomas E.;Bowman Nicholas D.
主权项 1. A method of managing a file cache, the method comprising: identifying a primary elimination policy associated with the file cache, the file cache having a number of available cache pages, the primary elimination policy dependent on whether the file cache is full; receiving a first filesystem mount command for a first filesystem, the first filesystem associated with a first set of file pages, the first filesystem mount command associating the first set of file pages with a secondary elimination policy, the first filesystem mount command specifying a time interval for the secondary elimination policy, the secondary elimination policy configured to use a Least Recently Used (LRU) algorithm, in conjunction with historical LRU data, to modify the time interval, the secondary elimination policy different from the primary elimination policy; storing the first set of file pages in the file cache, the first set of file pages including a first file page stored in a first cache page and further including a second file page stored in a second cache page; determining that the time interval has elapsed since the receiving the first filesystem mount command; removing, based on the determining, the first file page from the file cache according to the secondary elimination policy, the removing returning the first cache page to the number of available cache pages, wherein allowing the first file page to remain stored in the file cache does not violate the primary elimination policy; and not removing, based on the determining, the second file page from the file cache according to the secondary elimination policy.
地址 Armonk NY US