Commit 0c867eca authored by Kirill Smelkov's avatar Kirill Smelkov

X io notes: Link to minor pagefault cost

parent f3e73456
......@@ -80,7 +80,9 @@ mmap
The kernel handles both disk I/O and caching (in pagecache).
Cost ~ α (XXX recheck) is spent on first-time access.
XXX the cost of minor pagefault is ~ 5.5·α http://marc.info/?l=linux-kernel&m=149002565506733&w=2
Cost ~ α (FIXME see ^^^) is spent on first-time access.
Future accesses to page, given it is still in page-cache, does not incur α cost.
However I/O errors are reported as SIGBUS on memory access. Thus if for read
......
// TODO copyright / license
// Copyright (C) 2017 Nexedi SA and Contributors.
// Kirill Smelkov <kirr@nexedi.com>
//
// This program is free software: you can Use, Study, Modify and Redistribute
// it under the terms of the GNU General Public License version 2, or (at your
// option) any later version, as published by the Free Software Foundation.
//
// This program is distributed WITHOUT ANY WARRANTY; without even the implied
// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
//
// See COPYING file for full licensing terms.
// XXX move -> xbufio
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment