diff options
author | Arne Babenhauserheide <arne_bab@web.de> | 2011-11-06 21:28:11 +0100 |
---|---|---|
committer | Arne Babenhauserheide <arne_bab@web.de> | 2011-11-06 21:28:11 +0100 |
commit | 6d78e2dac60dfed6dc0658505943303ee9069270 (patch) | |
tree | 319ab07cf33c3790a46dd974fcbef40dacc47ef5 /user/Maksym_Planeta.mdwn | |
parent | acd0b1f43f08a1f84a07bf55894fced35298b679 (diff) | |
parent | f8dc61388c5c7ea1bc2bf1984d3c85de76c8c837 (diff) |
Merge branch 'master' of flubber:~hurd-web/hurd-web
Diffstat (limited to 'user/Maksym_Planeta.mdwn')
-rw-r--r-- | user/Maksym_Planeta.mdwn | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/user/Maksym_Planeta.mdwn b/user/Maksym_Planeta.mdwn index 64dc6e19..3872bc68 100644 --- a/user/Maksym_Planeta.mdwn +++ b/user/Maksym_Planeta.mdwn @@ -9,8 +9,27 @@ is included in the section entitled [[GNU Free Documentation License|/fdl]]."]]"""]] [[!toc]] -Notes on tmpfs -============== +#Notes on tmpfs + +## mach-defpager + + <tschwinge>: 1. On every system there is a ``default pager'' (mach-defpager). That one is responsible + for all ``anonymous memory''. For example, when you do malloc(10 MiB), and then there is memory pressure, + this 10 MiB memory region is backed by the default pager, whose job then is it to provide the backing store for this. + <tschwinge>: This is what commonly would be known as a swap partition. + <tschwinge>: And this is also the way tmpfs works (as I understand it). + <tschwinge>: malloc(10 MiB) can also be mmap(MAP_ANONYMOUS, 10 MIB); that's the same, essentially. + <tschwinge>: Now, for ext2fs or any other disk-based file system, this is different: + <tschwinge>: The ext2fs translator implements its own backing store, namely it accesses the disk for storing + changed file content, or to read in data from disk if a new file is opened. + +## Steps + +1. Find out what causes crashes in tmpfs with defpager + +2. Write own pager + + 6.11.11 Reading/writing for files that fit in vm_page_size works #Debugging |