On 8/6/13 2:36 PM, Bob Liu wrote:
Zcache could be ineffective if the compressed memory pool is full with compressed inactive file pages and most of them will be never used again. So we pick up pages from active file list only, those pages would probably be accessed again. Compress them in memory can reduce the latency significantly compared with rereading from disk. When a file page is shrinked from active file list to inactive file list, PageActive flag is also cleared. So adding an extra WasActive page flag for zcache to know whether the file page was shrinked from the active list. Signed-off-by: Bob Liu <bob.liu@xxxxxxxxxx>
Using a page flag for this seems like an ugly hack to me. Can we rearrange the code so that vmscan notifies zcache *before* the active page flag is cleared...? Pekka -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>