diff options
-rw-r--r-- | community/gsoc/project_ideas/package_manager.mdwn | 20 | ||||
-rw-r--r-- | community/gsoc/project_ideas/unionfs_boot.mdwn | 6 | ||||
-rw-r--r-- | hurd/libfuse.mdwn | 7 | ||||
-rw-r--r-- | microkernel/mach/gnumach/boot_trace.mdwn | 4 | ||||
-rw-r--r-- | microkernel/mach/gnumach/interface/device.mdwn | 16 | ||||
-rw-r--r-- | microkernel/mach/gnumach/interface/device/time.mdwn | 18 | ||||
-rw-r--r-- | open_issues/clock_gettime.mdwn | 7 | ||||
-rw-r--r-- | open_issues/dde.mdwn | 5 | ||||
-rw-r--r-- | open_issues/gdb.mdwn | 2 | ||||
-rw-r--r-- | open_issues/implementing_hurd_on_top_of_another_system.mdwn | 7 | ||||
-rw-r--r-- | open_issues/libpthread_CLOCK_MONOTONIC.mdwn | 5 | ||||
-rw-r--r-- | open_issues/performance/io_system/read-ahead.mdwn | 3 | ||||
-rw-r--r-- | open_issues/time.mdwn | 18 | ||||
-rw-r--r-- | open_issues/vdso.mdwn | 48 | ||||
-rw-r--r-- | sidebar.mdwn | 4 | ||||
-rw-r--r-- | system_call.mdwn | 3 | ||||
-rw-r--r-- | user/musial.mdwn | 2 |
17 files changed, 145 insertions, 30 deletions
diff --git a/community/gsoc/project_ideas/package_manager.mdwn b/community/gsoc/project_ideas/package_manager.mdwn index 23304f6b..d80efe37 100644 --- a/community/gsoc/project_ideas/package_manager.mdwn +++ b/community/gsoc/project_ideas/package_manager.mdwn @@ -1,4 +1,4 @@ -[[!meta copyright="Copyright © 2008, 2009 Free Software Foundation, Inc."]] +[[!meta copyright="Copyright © 2008, 2009, 2013 Free Software Foundation, Inc."]] [[!meta license="""[[!toggle id="license" text="GFDL 1.2+"]][[!toggleable id="license" text="Permission is granted to copy, distribute and/or modify this @@ -36,15 +36,19 @@ sum of packages installed at a certain moment; it doesn't matter how this state came about. There are no global databases of any kind. (Some things might require caching for better performance, but this must happen transparently.) -The core of this approach is formed by [[hurd/translator/stowfs]], which -creates a traditional Unix directory structure from all the files in the -individual package directories. But this only handles the lowest level of -package management. Additional mechanisms are necessary to handle stuff like -dependencies on other packages. +The core of this approach is formed by [[hurd/translator/stowfs]]. +[Guix](http://www.gnu.org/software/guix), GNU's package manager, +installs each package in its own directory. Each user has a +*profile*, which is the union of some of these packages. On +GNU/Linux, this union is implemented as a symlink tree; on GNU/Hurd, +*stowfs* would offer a more elegant solution. Stowfs creates a traditional +Unix directory structure from all the files in the individual package +directories. This handles the lowest level of package +management. -The goal of this task is to create these mechanisms. +The goal of this task is to exploit Hurd features in GNU Guix. -Possible mentors: Ben Asselstine (bing) +Possible mentors: Ludovic Courtès, Ben Asselstine (bing) Exercise: Make some improvement to any of the existing Hurd translators. Especially those in [hurdextras](http://www.nongnu.org/hurdextras/) are often diff --git a/community/gsoc/project_ideas/unionfs_boot.mdwn b/community/gsoc/project_ideas/unionfs_boot.mdwn index d9f1a9e1..13cc6cd1 100644 --- a/community/gsoc/project_ideas/unionfs_boot.mdwn +++ b/community/gsoc/project_ideas/unionfs_boot.mdwn @@ -1,4 +1,4 @@ -[[!meta copyright="Copyright © 2008, 2009 Free Software Foundation, Inc."]] +[[!meta copyright="Copyright © 2008, 2009, 2013 Free Software Foundation, Inc."]] [[!meta license="""[[!toggle id="license" text="GFDL 1.2+"]][[!toggleable id="license" text="Permission is granted to copy, distribute and/or modify this @@ -19,12 +19,12 @@ software packages, GNU/Linux distributions usually come with a package manager, which keeps track of all files upon installation/removal in some kind of central database. -An alternative approach is the one implemented by GNU Stow: each package is +An alternative approach is the one implemented by GNU Stow and GNU Guix: each package is actually installed in a private directory tree. The actual standard directory structure is then created by collecting the individual files from all the packages, and presenting them in the common `/bin`, `/lib`, etc. locations. -While the normal Stow package (for traditional UNIX systems) uses symlinks to +While the normal Stow or Guix package (for traditional UNIX systems) uses symlinks to the actual files, updated on installation/deinstallation events, the Hurd [[hurd/translator]] mechanism allows a much more elegant solution: [[hurd/translator/stowfs]] (which is actually a special mode of diff --git a/hurd/libfuse.mdwn b/hurd/libfuse.mdwn index bc6a9d4a..45ff97ec 100644 --- a/hurd/libfuse.mdwn +++ b/hurd/libfuse.mdwn @@ -15,7 +15,7 @@ initially written by Stefan Siegl. The implementation takes advantage of the [[translators|translator]] facilities of Hurd: this means that applications that implement a FUSE filesystem, when -compiled against libfuse-hurd, become translators to be set with usual `settrans` +compiled against libfuse-hurd, become translators to be set with usual [[settrans]] etc. @@ -23,9 +23,10 @@ etc. * Only part of the API is implemented * lowlevel API not implemented - * Options handling not implemented + * Options handling (`fuse_parse_cmdline` and `fuse_opt_*`) not implemented * CUSE lowlevel not supported (compatibility level 29) -* Supports the compatibility level 25 (while current libfuse 2.9.x provides 26) +* Supports up to the compatibility level 25 (while current libfuse 2.9.x provides 26) +* File I/O is quite slow. # Source diff --git a/microkernel/mach/gnumach/boot_trace.mdwn b/microkernel/mach/gnumach/boot_trace.mdwn index 1badf712..7b729c23 100644 --- a/microkernel/mach/gnumach/boot_trace.mdwn +++ b/microkernel/mach/gnumach/boot_trace.mdwn @@ -1,4 +1,4 @@ -[[!meta copyright="Copyright © 2007, 2008, 2011 Free Software Foundation, +[[!meta copyright="Copyright © 2007, 2008, 2011, 2013 Free Software Foundation, Inc."]] [[!meta license="""[[!toggle id="license" text="GFDL 1.2+"]][[!toggleable @@ -114,7 +114,7 @@ License|/fdl]]."]]"""]] >>>> kern/time\_stamp.c: timestamp\_init ->>>> kern/mach\_clock.c: mapable\_time\_init +>>>> kern/mach\_clock.c: [[mapable\_time\_init|interface/device/time]] >>>> i386/i386at/model\_dep.c: machine\_init diff --git a/microkernel/mach/gnumach/interface/device.mdwn b/microkernel/mach/gnumach/interface/device.mdwn new file mode 100644 index 00000000..c8ab50e9 --- /dev/null +++ b/microkernel/mach/gnumach/interface/device.mdwn @@ -0,0 +1,16 @@ +[[!meta copyright="Copyright © 2013 Free Software Foundation, Inc."]] + +[[!meta license="""[[!toggle id="license" text="GFDL 1.2+"]][[!toggleable +id="license" text="Permission is granted to copy, distribute and/or modify this +document under the terms of the GNU Free Documentation License, Version 1.2 or +any later version published by the Free Software Foundation; with no Invariant +Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license +is included in the section entitled [[GNU Free Documentation +License|/fdl]]."]]"""]] + +[[!meta title="Devices"]] + +/!\ Incomplete. + +[[!map pages="microkernel/mach/gnumach/interface/device/* and !microkernel/mach/gnumach/interface/device/*/*" +show=title]] diff --git a/microkernel/mach/gnumach/interface/device/time.mdwn b/microkernel/mach/gnumach/interface/device/time.mdwn new file mode 100644 index 00000000..d1e9a488 --- /dev/null +++ b/microkernel/mach/gnumach/interface/device/time.mdwn @@ -0,0 +1,18 @@ +[[!meta copyright="Copyright © 2013 Free Software Foundation, Inc."]] + +[[!meta license="""[[!toggle id="license" text="GFDL 1.2+"]][[!toggleable +id="license" text="Permission is granted to copy, distribute and/or modify this +document under the terms of the GNU Free Documentation License, Version 1.2 or +any later version published by the Free Software Foundation; with no Invariant +Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license +is included in the section entitled [[GNU Free Documentation +License|/fdl]]."]]"""]] + +The *mapped-time interface*, that is, a `mmap`able read-only memory page +containing a `struct mapped_time_value`. See the [[reference_manual]]. + +Typically available as `/dev/time`, [[hurd/translator/storeio]]. + +Using that, [[hurd/libshouldbeinlibc]]'s `<maptime.h>` provides `maptime_map` +and `maptime_read`, see the [[hurd/reference_manual]]. Candidate for +replacement with [[open_issues/vDSO]] code? diff --git a/open_issues/clock_gettime.mdwn b/open_issues/clock_gettime.mdwn index 83ad81e8..3caa6c28 100644 --- a/open_issues/clock_gettime.mdwn +++ b/open_issues/clock_gettime.mdwn @@ -14,7 +14,9 @@ License|/fdl]]."]]"""]] Missing `clock_gettime(CLOCK_MONOTONIC)` (e.g. for iceweasel) -It could be a mere matter of extending the mappable clock: add it to +It could be a mere matter of extending the +[[mapped-time_interface|master/microkernel/mach/gnumach/interface/device/time]]: +add it to `mapped_time_value_t` in gnumach, handle it in `gnumach/kern/mach_clock.c`, and make `clock_gettime` use it. @@ -184,3 +186,6 @@ In context of [[select]]. <braunr> do you want to make the changes yourself or should i add a new branch ? <youpi> and we'll make that a 64bit struct when we have a64bit userland + + +# Candidate for [[vDSO]] code? diff --git a/open_issues/dde.mdwn b/open_issues/dde.mdwn index b25e53d7..f0f7cae0 100644 --- a/open_issues/dde.mdwn +++ b/open_issues/dde.mdwn @@ -1,4 +1,4 @@ -[[!meta copyright="Copyright © 2010, 2011, 2012 Free Software Foundation, +[[!meta copyright="Copyright © 2010, 2011, 2012, 2013 Free Software Foundation, Inc."]] [[!meta license="""[[!toggle id="license" text="GFDL 1.2+"]][[!toggleable @@ -393,6 +393,9 @@ After the microkernel devroom at [[community/meetings/FOSDEM_2013]]. we'd have to update 100times per second <youpi> so ZhengDa preferred to make jiffies a macro which calls a function which reads the mapped time + +[[Mapped-time_interface|master/microkernel/mach/gnumach/interface/device/time]]. + <youpi> however, that break any use of the work "jiffies", e.g. structure members & such <youpi> actually it's not only after headers that the #include has to be diff --git a/open_issues/gdb.mdwn b/open_issues/gdb.mdwn index 4782368a..6b9cd135 100644 --- a/open_issues/gdb.mdwn +++ b/open_issues/gdb.mdwn @@ -107,7 +107,7 @@ formats and more emulation vectors. * Why do we specify `-D_GNU_SOURCE`, and GNU/Linux doesn't? - * GNU/Linux: `gdb/symfile-mem.c` for vDSO. + * GNU/Linux: `gdb/symfile-mem.c` for [[vDSO]]. * GNU/Linux: `gdb/i386-nat.c` for hardware breakpoints, etc. -- we should probably use that, too. Related to Samuel's Hurd GDB patch? diff --git a/open_issues/implementing_hurd_on_top_of_another_system.mdwn b/open_issues/implementing_hurd_on_top_of_another_system.mdwn index 220c69cc..cf3db0ab 100644 --- a/open_issues/implementing_hurd_on_top_of_another_system.mdwn +++ b/open_issues/implementing_hurd_on_top_of_another_system.mdwn @@ -1,4 +1,4 @@ -[[!meta copyright="Copyright © 2010, 2011, 2012 Free Software Foundation, +[[!meta copyright="Copyright © 2010, 2011, 2012, 2013 Free Software Foundation, Inc."]] [[!meta license="""[[!toggle id="license" text="GFDL 1.2+"]][[!toggleable @@ -358,8 +358,9 @@ Continue reading about the [[benefits_of_a_native_Hurd_implementation]]. <peo-xaci> what you talked about above "the user space system call code is loaded as a virtual shared library" <braunr> let's call it vdso - <braunr> i have to leave in a few minutes - <braunr> keep going, i'll read later + +[[vDSO]] + <peo-xaci> thanks, I looked it up on Wikipedia and understand immediately :P <peo-xaci> so VDSOs are provided by the kernel, not a regular library file, diff --git a/open_issues/libpthread_CLOCK_MONOTONIC.mdwn b/open_issues/libpthread_CLOCK_MONOTONIC.mdwn index 5a99778b..37ee548b 100644 --- a/open_issues/libpthread_CLOCK_MONOTONIC.mdwn +++ b/open_issues/libpthread_CLOCK_MONOTONIC.mdwn @@ -1,4 +1,4 @@ -[[!meta copyright="Copyright © 2012 Free Software Foundation, Inc."]] +[[!meta copyright="Copyright © 2012, 2013 Free Software Foundation, Inc."]] [[!meta license="""[[!toggle id="license" text="GFDL 1.2+"]][[!toggleable id="license" text="Permission is granted to copy, distribute and/or modify this @@ -25,6 +25,9 @@ License|/fdl]]."]]"""]] <youpi> that's unfortunate, but that's what nptl actually does <pinotree> this way we could add inside hurdtime.c the mapped time stuff too + +[[Mapped-time_interface|master/microkernel/mach/gnumach/interface/device/time]]. + <pinotree> most probably a noobish question, but why does rt link to pthread? <youpi> no idea :) diff --git a/open_issues/performance/io_system/read-ahead.mdwn b/open_issues/performance/io_system/read-ahead.mdwn index d471efca..8a8ba823 100644 --- a/open_issues/performance/io_system/read-ahead.mdwn +++ b/open_issues/performance/io_system/read-ahead.mdwn @@ -1323,6 +1323,9 @@ License|/fdl]]."]]"""]] <antrik> well, in theory, specific kernel drivers can expose their own device_map() -- but IIRC the only one that does (besides mem of course) is maptime -- which is not a real driver either... + +[[Mapped-time_interface|master/microkernel/mach/gnumach/interface/device/time]]. + <braunr> oh btw, i didn't know you had a blog :) <antrik> well, it would be possible to replace the device interface by specific interfaces for the generic pseudo devices... I'm not sure how diff --git a/open_issues/time.mdwn b/open_issues/time.mdwn index ab239aef..becb88b0 100644 --- a/open_issues/time.mdwn +++ b/open_issues/time.mdwn @@ -1,4 +1,5 @@ -[[!meta copyright="Copyright © 2009, 2011 Free Software Foundation, Inc."]] +[[!meta copyright="Copyright © 2009, 2011, 2013 Free Software Foundation, +Inc."]] [[!meta license="""[[!toggle id="license" text="GFDL 1.2+"]][[!toggleable id="license" text="Permission is granted to copy, distribute and/or modify this @@ -51,7 +52,7 @@ GNU time's *elapsed* value is off by some factor. user 0m0.000s sys 0m0.010s -As above; also here all the running time should be attriuted to *user* time. +As above; also here all the running time should be attributed to *user* time. This is probably a [[!taglink open_issue_gnumach]]. @@ -67,3 +68,16 @@ While testing some [[performance/IPC_virtual_copy]] performance issues: <tschwinge> And I can confirm that with dd if=/dev/zero of=/dev/null bs=4k running, a parallel sleep 10 takes about 20 s (on strauss). + +# 2013-03-30/31 + +Investigating time's `configure`, a difference of the output between Linux and +Hurd shows: + + -checking for wait3 that fills in rusage... yes + +checking for wait3 that fills in rusage... no + +This causes a different code path in `resuse.c` to be used; such code path does +not get a define for `HZ`, which is then defined with a fallback value of 60. + +[[!debbug 704283]] has been filed with a fix for this no-wait3 case. diff --git a/open_issues/vdso.mdwn b/open_issues/vdso.mdwn new file mode 100644 index 00000000..2b2d2805 --- /dev/null +++ b/open_issues/vdso.mdwn @@ -0,0 +1,48 @@ +[[!meta copyright="Copyright © 2013 Free Software Foundation, Inc."]] + +[[!meta license="""[[!toggle id="license" text="GFDL 1.2+"]][[!toggleable +id="license" text="Permission is granted to copy, distribute and/or modify this +document under the terms of the GNU Free Documentation License, Version 1.2 or +any later version published by the Free Software Foundation; with no Invariant +Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license +is included in the section entitled [[GNU Free Documentation +License|/fdl]]."]]"""]] + +[[!tag open_issue_glibc open_issue_gnumach open_issue_hurd]] + +Evaluate whether or not usage of vDSOs (virtual dynamically linked shared +objects; [[!wikipedia vDSO]]) can be useful in a GNU Hurd system. + +Explanation and example for the Linux kernel: [Creating a vDSO: the Colonel's +Other +Chicken](http://www.linuxjournal.com/content/creating-vdso-colonels-other-chicken), +Matt Davis, 2012-02-06. The *Resources* given are also worth reading. +Basically, this is useful for exporting data from the kernel (generally, or +given a process context ([[Unix]]), or task/thread context, and so on). + +On a GNU Hurd system, parts of the data that makes up a process context doesn't +actually live inside the kernel, but instead is directly held in glibc. For +example `sysdeps/mach/hurd/getpid.c:__getpid` does a mere `return _hurd_pid`. +For this reason, vDSOs might not be as useful on GNU Hurd as they are with the +Linux kernel. Or, put another way, as GNU Hurd system doesn't have many +[[system_call]]s, also there aren't many that could be replaced. + +Generally only *real* [[system_call]]s should be candidates for implementation +with vDSO code, because otherwise that'd break the ([[RPC]]) system's inherent +[[/virtualization]] capabilities. + +Having vDSO code might be useful for: + + * `mach_*_self`: `mach_host_self`, `mach_task_self`, `mach_thread_self`? + + * [[mapped-time_interface|master/microkernel/mach/gnumach/interface/device/time]] + + Every application can then use that via the regular + `gettimeofday`/`clock_gettime` and similar calls instead of using the + special [[hurd/libshouldbeinlibc]]'s `<maptime.h>` interface. + + Can implement [[`clock_gettime` stuff|clock_gettime]] more easily that way, + for example for nanosecond precision? + + Now, the [[mapped-time_interface]] is virtualizable -- the question is + whether there is a way so that we can make a compromise here? diff --git a/sidebar.mdwn b/sidebar.mdwn index 2055edb7..e8b69a93 100644 --- a/sidebar.mdwn +++ b/sidebar.mdwn @@ -1,5 +1,5 @@ -[[!meta copyright="Copyright © 2007, 2008, 2009, 2010, 2011, 2012 Free Software -Foundation, Inc."]] +[[!meta copyright="Copyright © 2007, 2008, 2009, 2010, 2011, 2012, 2013 Free +Software Foundation, Inc."]] [[!meta license="""[[!toggle id="license" text="GFDL 1.2+"]][[!toggleable id="license" text="Permission is granted to copy, distribute and/or modify this diff --git a/system_call.mdwn b/system_call.mdwn index 197889cb..f180a79b 100644 --- a/system_call.mdwn +++ b/system_call.mdwn @@ -1,4 +1,4 @@ -[[!meta copyright="Copyright © 2010 Free Software Foundation, Inc."]] +[[!meta copyright="Copyright © 2010, 2013 Free Software Foundation, Inc."]] [[!meta license="""[[!toggle id="license" text="GFDL 1.2+"]][[!toggleable id="license" text="Permission is granted to copy, distribute and/or modify this @@ -14,6 +14,7 @@ kinds of functionality from the operating system kernel. A [[microkernel]]-based system typically won't offer a lot of system calls -- apart from one central one, and that is *send message* -- but instead [[RPC]]s will be used instead. +See [[GNU Mach's system calls|microkernel/mach/gnumach/interface/syscall]]. In the [[GNU Hurd|hurd]], a lot of what is traditionlly considered to be a UNIX system call is implemented (primarily by means of [[RPC]]) inside [[glibc]]. diff --git a/user/musial.mdwn b/user/musial.mdwn index a609305c..bcdaea2c 100644 --- a/user/musial.mdwn +++ b/user/musial.mdwn @@ -12,6 +12,4 @@ License|/fdl]]."]]"""]] email: musial@gnu.org -http://t13s.net/.musial/ - Join the FSF! - http://www.fsf.org/register_form?referrer=9143 |