From: "Yingchao Zhou" <yc_zhou@ncic.ac.cn>
To: "linux-kernel" <linux-kernel@vger.kernel.org>
Subject: [RFC]should swap-file opened with O_DIRECT?
Date: Mon, 10 Oct 2005 21:46:31 +0800 [thread overview]
Message-ID: <20051010135229.D29B5FB048@gatekeeper.ncic.ac.cn> (raw)
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
next reply other threads:[~2005-10-10 13:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-10 13:46 Yingchao Zhou [this message]
2005-10-10 15:06 ` Hugh Dickins
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20051010135229.D29B5FB048@gatekeeper.ncic.ac.cn \
--to=yc_zhou@ncic.ac.cn \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®