From acd0b1f43f08a1f84a07bf55894fced35298b679 Mon Sep 17 00:00:00 2001 From: Arne Babenhauserheide Date: Sun, 6 Nov 2011 16:26:14 +0100 Subject: news: q3: balloc: use a later integration commit. --- contributing/web_pages/news/moth_next.mdwn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contributing/web_pages/news/moth_next.mdwn b/contributing/web_pages/news/moth_next.mdwn index c0467afa..b4c35280 100644 --- a/contributing/web_pages/news/moth_next.mdwn +++ b/contributing/web_pages/news/moth_next.mdwn @@ -90,7 +90,7 @@ And … * Maksym Planeta replaced GNUmach’s old zalloc memory allocator with the new balloc from Richard Braun - ([cleanup commit](http://git.savannah.gnu.org/cgit/hurd/gnumach.git/commit/?id=8e78f3c0674cedc55953bf36d88c664ea80380a2)), + ([integration commit](http://git.savannah.gnu.org/cgit/hurd/gnumach.git/commit/?id=50d073c5ef0feb1676606d0068abf626e8297cd7)), which handles slabs and should waste less memory than zalloc. Also balloc has a cpu cache level, so it should work faster on SMP systems, once we get up do date SMP CPU drivers for GNUmach. -- cgit v1.2.3 From f8dc61388c5c7ea1bc2bf1984d3c85de76c8c837 Mon Sep 17 00:00:00 2001 From: mcsim Date: Sun, 6 Nov 2011 21:10:45 +0100 Subject: --- user/Maksym_Planeta.mdwn | 23 +++++++++++++++++++++-- 1 file 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 + + : 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. + : This is what commonly would be known as a swap partition. + : And this is also the way tmpfs works (as I understand it). + : malloc(10 MiB) can also be mmap(MAP_ANONYMOUS, 10 MIB); that's the same, essentially. + : Now, for ext2fs or any other disk-based file system, this is different: + : 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 -- cgit v1.2.3 From efa018157b7b65efb8b3b4cf212c6d80c2e52fd6 Mon Sep 17 00:00:00 2001 From: Arne Babenhauserheide Date: Sun, 6 Nov 2011 21:29:53 +0100 Subject: news: q3: sceen boxes. --- contributing/web_pages/news/moth_next.mdwn | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/contributing/web_pages/news/moth_next.mdwn b/contributing/web_pages/news/moth_next.mdwn index b4c35280..cd03a366 100644 --- a/contributing/web_pages/news/moth_next.mdwn +++ b/contributing/web_pages/news/moth_next.mdwn @@ -103,6 +103,9 @@ And … [port your favorite missing package](http://www.debian.org/ports/hurd/hurd-devel-debian) to the Hurd. - * buildd, porterbox and public boxes at sceen.net, provided by Richard Braun. + * And Richard Braun contributed a new + [[buildd,_porterbox_and_public_box|public_hurd_boxen]] via + sceen.net, making it easier to test the Hurd without much setup as + well as improving debian packaging. """]] -- cgit v1.2.3 From 0bfe39bd20bbec4d2b61f46d6d6b62a98890b1e7 Mon Sep 17 00:00:00 2001 From: mcsim Date: Sun, 6 Nov 2011 22:05:05 +0100 Subject: --- user/Maksym_Planeta.mdwn | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/user/Maksym_Planeta.mdwn b/user/Maksym_Planeta.mdwn index 3872bc68..477f11ed 100644 --- a/user/Maksym_Planeta.mdwn +++ b/user/Maksym_Planeta.mdwn @@ -35,4 +35,5 @@ License|/fdl]]."]]"""]] To debug tmpfs, using libraries from "$PWD"/lib and trace rpc: -settrans -ca foo /usr/bin/env LD_LIBRARY_PATH="$PWD"/lib utils/rpctrace -I /usr/share/msgids/ tmpfs/tmpfs 1M + settrans -ca foo /usr/bin/env LD_LIBRARY_PATH="$PWD"/lib utils/rpctrace -I /usr/share/msgids/ tmpfs/tmpfs 1M + LD_LIBRARY_PATH="$PWD"/lib gdb tmpfs/tmpfs 698 -- cgit v1.2.3