lkml.org 
[lkml]   [2005]   [Oct]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[RFC]should swap-file opened with O_DIRECT?

The sys_swapon system call open the swap-file through
filp_open(..., O_RDWR|O_LARGEFILE,...).
In this way, I think that the pageout process of anonymous
pages finally will write them out through (swap-file)->f_ops->write,
and it will result in caches of swapfile. However, swapping only
happens when memory is tight. So why not set O_DIRECT? Is there any
special reason to keep caches of swapfile?
Is the idea right ? Or something misunstood?

Yingchao Zhou
yc_zhou@ncic.ac.cn


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-10-10 15:49    [W:0.048 / U:0.300 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site