gnu hurd aka extensibility from the ground
play

GNU/Hurd AKA Extensibility from the Ground Samuel Thibault 2011 - PowerPoint PPT Presentation

GNU/Hurd AKA Extensibility from the Ground Samuel Thibault 2011 August 26th 1 <marcus> Jeroen: you are a Hurd developer. Being insane is part of the public image. 2 It's all about freedom #0 Extensibility for the user Mount one's


  1. GNU/Hurd AKA Extensibility from the Ground Samuel Thibault 2011 August 26th 1

  2. <marcus> Jeroen: you are a Hurd developer. Being insane is part of the public image. 2

  3. It's all about freedom #0 Extensibility for the user ● Mount one's own files ● Access archives content ● Access remote files ● Experiment with filesystems ● Access one's own network ● Access remote networks / VPN ● Access virtual machine network ● Redirect one's sound ● Through network ● Sound effects ● Recording ● ... 3

  4. Outline ● The big hammer ● Traditional monolithic layering ● Gvfs layering ● FUSE layering ● Micro-kernel layering 4

  5. Outline ● The big hammer ● Traditional monolithic layering ● Gvfs layering ● FUSE layering ● Micro-kernel layering ● Hurd possibilities 5

  6. Outline ● The big hammer ● Traditional monolithic layering ● Gvfs layering ● FUSE layering ● Micro-kernel layering ● Hurd possibilities ● So what? 6

  7. Outline ● The big hammer ● Traditional monolithic layering ● Gvfs layering ● FUSE layering ● Micro-kernel layering ● Hurd possibilities ● So what? ● Yet more fun 7

  8. The big hammer Just run KVM/qemu/virtualbox/whatever! ● Quite slower ● and kvm not available to users by default ● Communication between guest and host is a burden Goal: having extensibility simply at the shell prompt 8

  9. Traditional monolithic layering ifconfig sh cp mount root user VFS EXTxFS ISOFS NFS IP Kernel 9

  10. Traditional monolithic layering ● User mounts through “users” option ● Need to ask root – and frowned upon ● Only kernel-provided filesystems ● User network through tap ● Need to ask root ● No firewall tuning support 10

  11. gvfs layering ifconfig sh gedit mount gvfs cp root user VFS EXTxFS ISOFS NFS IP Kernel 11

  12. gvfs layering ● Supports a lot of nice features ● Transparent ftp, webdav, smb, ... ● Only works for gnome applications ● Not even in gnome-terminal shells ● Not easily extensible ● i.e., does not compose well. 12

  13. FUSE layering ifconfig sh fuse cp mount root user VFS FUSE EXTxFS ISOFS NFS IP Kernel 13

  14. FUSE layering, user ifconfig sh fuse cp mount user root VFS FUSE EXTxFS ISOFS NFS IP Kernel 14

  15. FUSE layering ● Provides a lot of nice features, but ● Does not combine well by default cd ~/.avfs/#ftp:ftp.gnu.org/.../coreutils-6.9.tar.bz2# ● ● does not work ● Does not optimize well by default fuseiso9660 ~/.avfs/#ftp:ftp.gnu.org/.../foo.iso ~/mnt ● ● downloads it all! ● Does not provide all root features by default ● How to deal with partitioned disk image? e2fsck what? ● → Users are still second-class citizens 15

  16. Micro-kernel layering ext2fs sh auth cp pfinet proc root user Kernel Tasks, memory, IPC 16

  17. Micro-kernel layering ext2fs sh auth cp pfinet proc root user Kernel Tasks, memory, IPC 17

  18. Micro-kernel layering ● Server crash? Not a problem ● “Computer bought the farm” is just an error, not something-of-the-death ● Easier to debug/tune ● Just run gdb, gprof, … ● Can dare crazy things ● The Hurd console has dynamic font support – See chinese support in pseudo-graphical mode of Debian installer. ● Kernel only handles Tasks, memory, IPC 18

  19. Hurd possibilities ext2fs sh ftpfs auth cp pfinet proc isofs root user Kernel 19

  20. Hurd possibilities $ settrans ~/ftp: /hurd/hostmux /hurd/ftpfs / (just once for good) $ settrans ~/mnt /hurd/iso9660fs ~/ftp://ftp.gnu.org/old-gnu/gnu-f2/hurd-F2-main.iso $ ls ~/mnt README-or-FAIL … ● Only downloads what is needed. ● Can be permanent settrans ~/.signature /hurd/run /usr/games/fortune 20

  21. How does it work? sh ext2fs ftpfs libc cp auth libc pfinet proc isofs root user Kernel 21

  22. Hurd possibilities (cont'ed) part ext2fs sh ftpfs auth ext2fs cp pfinet pfinet proc isofs root user Kernel 22

  23. Hurd possibilities (cont'ed) part ext2fs sh ftpfs auth ext2fs cp pfinet pfinet proc isofs root user Kernel i.e. ISO image inside a disk image on ftp over a VPN 23

  24. Hurd possibilities (cont'ed) ● VPN running as user ● Parted running as user ● Chroot as user ● ... ● No less power than root ● Since root uses the same mechanism anyway! ● Except hardware access, of course – And still, could be interfaced safely thanks to I/O MMU ● More power for everybody (root and non-root) ● Combine translators, invent new ones without kernel programming, ... 24

  25. So, FUSE vs Hurd? ● FUSE is here ● At last! ● Not available by default on Linux installations ● Does not permit everything to users ● Hurd is here too ● At last! ● Provides everything by default – Including ioctls, arbitrary RPCs actually, could have a node which is a file, AND a directory, AND a CD drive,... ● Permits everything to users – Hardware access is controlled 25

  26. Neighbour Hurds user user sh sh cp cp ext2fs ext2fs auth auth pfinet pfinet proc proc root root Kernel 26

  27. Neighbour Hurds user user sh sh cp cp ext2fs ext2fs auth auth pfinet proc proc root root Kernel 27

  28. Sub-Hurd ext2fs ext2fs sh auth auth cp pfinet pfinet proc proc user root user/root Kernel 28

  29. Neighbour/Sub-Hurd Looks like Linux containers ● Except they can be combined in many ways, including recursive ● Since it is simply the standard features in the Hurd ● Since it is safer, because ext2fs, pfinet, etc. are not shared ● And complete ● Since that's how a normal Hurd system is structured already. – Linux containers have a hard time being completely contained, e.g. sound? 29

  30. Current State ● Hardware support ● DDE Linux 2.6 drivers layer for network boards ● IDE, SCSI, PCMCIA, Xorg, ... ● Xen domU ● Software support ● ~68% of Debian archive – XFCE, almost gnome, almost KDE – Firefox (aka iceweasel), gnumeric, … ● Standard Debian Installation CD ● Plan to release in Debian Wheezy ● Arch Hurd LiveCD and GHAMP 30

  31. People at work nowadays ● Emilio Pozuelo Monfort : gnome ● Jeremie Koenig : glibc, openjdk ● Olaf Buddenhagen : community, mentor ● Pino Toscano : KDE ● Samuel Thibault : debian installer, autobuilders ● Thomas Schwinge : GNU gdb, gcc ● And various porters : Gabriele Giacone, Svante Signell, … ● You're welcome! 31

  32. Thanks! ● http://hurd.gnu.org/ ● http://www.debian.org/ports/hurd/ ● http://people.debian.org/~mbanck/debian-hurd.pdf ● The increasing irrelevance of IPC performance for microkernel-based Operating Systems http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.37.9653&rep=rep1&type=pdf 32

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend