请输入您要查询的百科知识:

 

词条 GNU Hurd
释义

  1. Name and logo

  2. Development history

  3. Architecture

      Other microkernels    Unix extensions    Architecture of the servers    Core servers    Filesystem servers  

  4. Computer bought the farm

  5. GNU distributions running Hurd

  6. See also

  7. References

  8. External links

{{short description|Operating system kernel designed as a replacement for Unix}}{{Redirect|Hurd}}{{Infobox OS
| name = GNU Hurd
| logo =
| screenshot =
| developer = GNU Project
Thomas Bushnell
Roland McGrath
Marcus Brinkmann
Neal Walfield
Samuel Thibault
| programmed in = Assembly, C
| family = Unix-like
| working state = Current
| source model = Free Software
| released = 1990
| latest release version = 0.9
| latest release date = {{Start date and age|df=yes|2016|12|18}}[1]
| supported platforms = IA-32, i686
| kernel type = {{URL|https://www.gnu.org/software/hurd/faq/multiserver_microkernel.html|Multiserver microkernel}}
| license = GNU GPLv2+[2]
| website = {{URL|https://www.gnu.org/software/hurd/}}
| latest test version =
| latest test date =
}}GNU Hurd is the multiserver microkernel written as part of GNU. It has been under development since 1990 by the GNU Project of the Free Software Foundation, designed as a replacement for the Unix kernel, and released as free software under the GNU General Public License. While the Linux kernel soon proved to be a more viable solution, development of GNU Hurd continued, albeit at a slow pace.[3]

GNU Hurd consists of a set of protocols and server processes (or daemons, in Unix terminology) that run on the GNU Mach microkernel. The Hurd aims to surpass the Unix kernel in functionality, security, and stability, while remaining largely compatible with it. The GNU Project chose the multiserver microkernel[4] for the operating system, due to perceived advantages over the traditional Unix monolithic kernel architecture,[7] a view that had been advocated by some developers in the 1980s.[3]

Name and logo

In December 1991 the primary architect of the Hurd described the name as a mutually recursive acronym:[5]

{{quote|text=It's time [to] explain the meaning of "Hurd". "Hurd" stands for "Hird of Unix-Replacing Daemons". And, then, "Hird" stands for "Hurd of Interfaces Representing Depth". We have here, to my knowledge, the first software to be named by a pair of mutually recursive acronyms.|author=Thomas (then Michael) Bushnell }}

As both hurd and hird are homophones of the English word herd, the full name GNU Hurd is also a play on the words herd of gnus, reflecting how the kernel works.[10] The logo is called the Hurd boxes and it also reflects on architecture. The logo is a graph where nodes represent the Hurd kernel's servers and directed edges are IPC messages.[5]

Development history

Richard Stallman founded the GNU Project in September 1983 with an aim to create a free GNU operating system. Initially the components required for kernel development were written: editors, shell, compiler and all the others. By 1989, the GNU GPL came into being and the only major component missing was the kernel.[6][13]

Development on the Hurd began in 1990 after an abandoned kernel attempt in 1986, based on the research TRIX operating system developed by Professor Steve Ward and his group at MIT's Laboratory for Computer Science (LCS).[14] According to Thomas Bushnell, the initial Hurd architect, their early plan was to adapt the 4.4BSD-Lite kernel and, in hindsight, "It is now perfectly obvious to me that this would have succeeded splendidly and the world would be a very different place today".[15] In 1987 Richard Stallman proposed using the Mach microkernel developed at Carnegie Mellon University. Work on this was delayed for three years due to uncertainty over whether CMU would release the Mach code under a suitable license.[14]

With the release of the Linux kernel in 1991, the primary user of GNU's userland components soon became operating systems based on the Linux kernel (Linux distributions), prompting the coining of the term GNU/Linux.

Development of the Hurd has proceeded slowly. Despite an optimistic announcement by Stallman in 2002 predicting a release of GNU/Hurd later that year,[17] the Hurd is still not considered suitable for production environments. Development in general has not met expectations, and there are still a significant number of bugs and missing features.[18] This has resulted in a poorer product than many (including Stallman) had expected.[19] In 2010, after twenty years under development, Stallman said that he was "not very optimistic about the GNU Hurd. It makes some progress, but to be really superior it would require solving a lot of deep problems", but added that "finishing it is not crucial" for the GNU system because a free kernel already existed (Linux), and completing Hurd would not address the main remaining problem for a free operating system: device support.[20]

The Debian project, among others, have worked on the Hurd project to produce binary distributions of Hurd-based GNU operating systems for IBM PC compatible systems.

After years of stagnation, development picked up again in 2015 and 2016, with four releases during these two years.[7]

On August 20, 2015, amid the Google Summer of Code, it was announced that GNU Guix had been ported to GNU Hurd.[8]

Architecture

Unlike most Unix-like kernels, the Hurd uses a server–client architecture, built on a microkernel that is responsible for providing the most basic kernel services – coordinating access to the hardware: the CPU (through process management and scheduling), RAM (via memory management), and other various input/output devices (via I/O scheduling) for sound, graphics, mass storage, etc. In theory the microkernel design would allow for all device drivers to be built as servers working in user space, but today most drivers of this kind are still contained in the GNU Mach kernel space.[23]

According to Hurd developers, the main advantage of microkernel-based design is the ability to extend the system: developing a new module would not require in depth knowledge of the rest of the kernel, and a bug in one module would not crash the entire system. Hurd provides a concept of translators, a framework of modules used to extend a file system functionality.[9]

From early on, the Hurd was developed to use GNU Mach as the microkernel. This was a technical decision made by Richard Stallman, who thought it would speed up the work by saving a large part of it. He has admitted that he was wrong about that.[25] Other Unix-like systems working on the Mach microkernel include OSF/1, Lites, and MkLinux. macOS and NeXTSTEP use hybrid kernels based on Mach.

Other microkernels

From 2004 onward, various efforts were launched to port the Hurd to more modern microkernels. The L4 microkernel was the original choice in 2004, but progress slowed to a halt. Nevertheless, during 2005, Hurd developer Neal Walfield finished the initial memory management framework for the L4/Hurd port, and Marcus Brinkmann ported essential parts of glibc; namely, getting the process startup code working, allowing programs to run, thus allowing the first user programs (trivial ones such as the hello world program) in C to run.

Since 2005 Brinkmann and Walfield started researching Coyotos as a new kernel for HURD.[26][27] In 2006, Brinkmann met with Jonathan Shapiro (a primary architect of the Coyotos Operating System) to aid in and discuss the use of the Coyotos kernel for GNU/Hurd. In further discussion HURD developers realised that Coyotos (as well as other similar kernels) are not suitable for HURD.[10]

In 2007, Hurd developers Neal Walfield and Marcus Brinkmann gave a critique of the Hurd architecture, known as "the critique",[29] and a proposal for how a future system may be designed, known as "the position paper".[30] In 2008, Neal Walfield began working on the Viengoos microkernel as a modern native kernel for HURD. {{as of|2009}}, development on Viengoos is paused due to Walfield lacking time to work on it.[31]

In the meantime, others have continued working on the Mach variant of Hurd.[32]

Unix extensions

{{Unreferenced section|date=March 2007}}

A number of traditional Unix concepts are replaced or extended in the Hurd.

Under Unix, every running program has an associated user id, which normally corresponds to the user that started the process. This id largely dictates the actions permitted to the program. No outside process can change the user id of a running program. A Hurd process, on the other hand, runs under a set of user ids, which can contain multiple ids, one, or none. A sufficiently privileged process can add and remove ids to another process. For example, there is a password server that will hand out ids in return for a correct login password.

Regarding the file system, a suitable program can be designated as a translator for a single file or a whole directory hierarchy. Every access to the translated file, or files below a hierarchy in the second case, is in fact handled by the program. For example, a file translator may simply redirect read and write operations to another file, like a Unix symbolic link. The effect of Unix mounting is achieved by setting up a filesystem translator (using the "settrans" command). Translators can also be used to provide services to the user. For example, the ftpfs translator allows a user to encapsulate remote FTP sites within a directory. Then, standard tools such as ls, cp, and rm can be used to manipulate files on the remote system. Even more powerful translators are ones such as UnionFS, which allows a user to unify multiple directories into one; thus listing the unified directory reveals the contents of all the directories.

The Hurd requires a multiboot-compliant boot loader, such as GRUB.

Architecture of the servers

According to the Debian documentation, there are 24 servers (18 core servers and 6 file system servers) named as follows:[33]

Core servers

  • auth (authentication server): Receives requests and passwords from programs and gives them an ID, which changes the privileges of the program.
  • crash (crash server): Handles all fatal errors.
  • eieio (translation server): TODO (see Computer bought the farm)
  • exec (execution server): Translates an executable image (currently ELF and a.out are supported) to a runnable image in memory.
  • fifo (FIFO translator): Implements named pipes.
  • new-fifo (new FIFO server): An alternate server for named pipes.
  • firmlink (the firmlink translator): Implements firmlinks ‒ "half-way between a symbolic link and a hard link".[11]
  • fwd (forward server): Forwards requests to other servers, used by fifo and symlink servers.
  • hostmux (host multiplexer server)
  • ifsock (server for sockets interface): Helps with UNIX domain socket addresses.
  • init (init server): Basic system booting and configuration.
  • magic (magic server): Signals that a name lookup must be resolved internally by a process when the result involves the process's state.
  • null (null server): Implements /dev/null and /dev/zero.
  • pfinet (pfinet server): Implements the PF_INET protocol family.
  • pflocal (pflocal server): Implements UNIX domain sockets.
  • proc (process server): Assigns PIDs and manages process-level actions.
  • symlink (symbolic link translator): Implements symbolic links for filesystems that don't support them.
  • term (terminal server): A POSIX terminal.
  • usermux (user multiplexer server): Invokes user-specific translators.

Filesystem servers

ext2fs

The ext2 filesystem translator. It receives disk blocks from the microkernel and gives files and directories to the applications.

isofs

The translator for the ISO 9660 filesystem. Translates blocks of a CD or DVD to files and directories for the applications.

nfs

See Network File System.

ufs

Translator for the BSD filesystem of the same name, UFS.

ftpfs

File transfer protocol filesystem translator.

storeio

The storage translator.

The servers collectively implement the POSIX API, with each server implementing a part of the interface. For instance, the various filesystem servers each implement the filesystem calls. The storage server will work as a wrapping layer, similar to the block layer of Linux. The equivalent of VFS of Linux is achieved by libdiskfs and libpager libraries.

Computer bought the farm

"Computer bought the farm" is the message displayed when an error occurs using some commands. According to the GNU Hurd FAQ:[12]

This is the error message for EIEIO. This error code is used for a variety of "hopeless" error conditions. Most probably you will encounter it when a translator crashes while you were trying to use a file that it serves.

You can thus think of it as an equivalent of the "blue screen of the death" or "Oops"... except that it's just an error! It doesn't take your whole system away with it, only the particular operations that was going on.

GNU distributions running Hurd

Hurd-based GNU distributions include:

  • Arch Hurd
  • Bee GNU/Hurd (discontinued)[13]
  • Debian GNU/Hurd
  • Gentoo GNU Hurd (discontinued)
  • GNU/Hurd Live CD[14] (discontinued){{not in citation|date=September 2017}}
  • Guix System Distribution (under development)
  • NixOS - experiment[15]

See also

{{Portal|Free and open-source software}}
  • GNU Mach
  • GNU Linux-libre – the free version of the Linux kernel
  • Kernel-based Virtual Machine (KVM)
  • Minix 3
  • Multiboot Specification

References

1. ^{{cite web|url=https://www.gnu.org/software/hurd/news/2016-12-18-releases.html |title= 2016-12-18-releases |publisher=GNU Hurd |date= |accessdate=2016-12-18}}
2. ^{{cite web|url=http://git.savannah.gnu.org/cgit/hurd/hurd.git/tree/COPYING|title=COPYING - hurd/hurd.git - Hurd|website=Git.savannah.gnu.org|accessdate=25 February 2019}}
3. ^{{Cite web|url=http://thevarguy.com/open-source-application-software-companies/042015/30-years-hurd-lives-gnu-updates-open-source-|title=30 Years On, HURD Lives: GNU Updates Open Source Unix Kernel|last=Tozzi|first=Christopher|date=2015-04-20|website=Thevarguy.com|language=en|archive-url=|archive-date=|dead-url=|access-date=2017-04-17}}
4. ^{{cite web|url=https://www.gnu.org/software/hurd/faq/multiserver_microkernel.html |title=What is a Multiserver Microkernel? |publisher=Gnu.org |date=2013-04-13 |accessdate=2015-08-11}}
5. ^{{cite web |last=Vervloesem |first=Koen |date=July 7, 2010 |title=The Hurd: GNU's quest for the perfect kernel |publisher=LWN.net |url=https://lwn.net/Articles/395150/ |accessdate=October 5, 2012}}
6. ^{{cite web |last=Hillesley |first=Richard |title=GNU HURD: Altered visions and lost promise | date=June 30, 2010 |url=http://www.h-online.com/open/features/GNU-HURD-Altered-visions-and-lost-promise-1030942.html |accessdate=October 1, 2012}}
7. ^{{Cite news|url=http://sdtimes.com/free-software-foundation-changes-priorities/|title=Free Software Foundation changes priorities - SD Times|date=2017-01-17|work=SD Times|access-date=2017-04-17|language=en-US}}
8. ^{{cite mailing list|url=https://lists.gnu.org/archive/html/guix-devel/2015-08/msg00379.html|title=[GSoC update] Porting Guix to GNU/Hurd|date=August 20, 2015|accessdate=August 20, 2015|first=Manolis|last=Ragkousis|publisher=guix-devel}}
9. ^{{cite book |last=Doeppner |first=Thomas W. |date=20 December 2010 |title=Operating Systems In Depth: Design and Programming |publisher=John Wiley & Sons |isbn=978-0-471-68723-8 |page=160 |url=https://books.google.com/books?id=xX5tfrAQQ8cC |accessdate=29 November 2012 }}
10. ^{{cite web | url = https://www.gnu.org/software/hurd/history/port_to_another_microkernel.html | title = Porting the Hurd to another microkernel | access-date = 2017-05-06 | publisher = Free Software Foundation | website = GNU Hurd }}
11. ^{{cite web |date=1996-10-10 |title=GNU/Hurd - Documentation |publisher=Debian |url=http://www.debian.org/ports/hurd/hurd-doc-server#firmlink |accessdate=2012-07-12}}
12. ^{{cite web | url = https://www.gnu.org/software/hurd/faq/eieio.html | title = EIEIO: 'Computer bought the farm'... Err, what?! | publisher = Debian | access-date = February 2, 2019}}
13. ^{{cite web |url=http://www.gnu.org/software/hurd/hurd/running/distrib.html |title= GNU Hurd/ hurd/ running/ distrib |website=Gnu.org |date=2015-05-03 |access-date=2017-09-21}}
14. ^{{cite web |title=GNU Hurd/ hurd/ running/ live cd |website=Gnu.org |url=https://www.gnu.org/software/hurd/hurd/running/live_cd.html |date=2013-04-09 |accessdate=2017-09-21}}
15. ^{{cite web |date=2012-03-21 |title=Nix-based GNU/Hurd System |website=Gnu.org |url=https://www.gnu.org/software/hurd/hurd/running/nix.html |accessdate=2012-07-12}}
16. ^{{cite web |title=advantages |work=GNU |url=https://www.gnu.org/software/hurd/advantages.html |accessdate=2011-12-07}}
17. ^{{cite web |title=GNU Hurd: Origin of the Name |work=GNU |url=https://www.gnu.org/software/hurd/hurd/what_is_the_gnu_hurd/origin_of_the_name.html |accessdate=2010-03-04}}
18. ^{{cite web |date=2010-01-26 |title=Linux and the GNU Project |work=GNU |url=https://www.gnu.org/gnu/linux-and-gnu.html |accessdate=2010-03-04 }}
19. ^{{cite web |title=The GNU Hurd History, 'How it Started' |work=GNU |url=https://www.gnu.org/software/hurd/history.html |accessdate=2006-08-27}}
20. ^{{cite web |last=Salus |first=Peter |authorlink=Peter H. Salus |title=The Daemon, the GNU and the Penguin |url=http://www.groklaw.net/article.php?story=20050727225542530 |accessdate=2006-08-08}}
21. ^{{cite web |last=Ribeiro |first=John |date=2002-03-11 |title=Free Software Sees GNU Loose of Linux |work=PC World |url=http://www.pcworld.com/article/88464/article.html |accessdate=2012-10-05}}
22. ^{{cite web |title=Status |work=GNU |url=https://www.gnu.org/software/hurd/hurd/status.html |accessdate=2010-03-04}}
23. ^{{cite web |last=Stallman |first=Richard |authorlink=Richard Stallman |date=2006-03-09 |title=The Free Software Movement and the Future of Freedom |location=Zagreb |work=Free Software Foundation |laysummary=http://fsfeurope.org/documents/rms-fs-2006-03-09.en.html |url=http://mjesec.ffzg.hr/~dpavlin/stallman2006/free_software_movement_and_the_future_of_freedom_zagreb_09_march_2006.ogg |format=ogg |quote=This is the way, also, that people thought was the cleanest possible way to design kernels back in 1990. Well, it took many many many years to get this kernel to run at all, and it still doesn't run well, and it looks like there may be fundamental problems with this design, which nobody knew about back in 1990.}}
24. ^{{cite web | url = https://redditblog.com/2010/07/rms-ama.html | title = RMS AMA | first = Richard | last = Stallman | authorlink = Richard Stallman | date = 2010-07-29 | publisher = Reddit | accessdate = 2011-12-07 }}
25. ^{{cite mailing list | url = http://lists.gnu.org/archive/html/bug-hurd/2007-03/msg00089.html | title = Re: Device drivers in Mach? | first = Constantine | last = Kousoulos | mailinglist = bug-hurd | date = 2007-03-21 }}
26. ^{{cite web | url = http://www.linuxtoday.com/infrastructure/2000101200421OPCYRH | title = In Defense of Red Hat | first = Richard | last = Stallman | authorlink = Richard Stallman | work = Linux Today | date = 2000-10-12 | accessdate = 2011-12-07 | quote = I take full responsibility for the technical decision to develop the GNU kernel based on Mach, a decision which seems to have been responsible for the slowness of the development. I thought using Mach would speed the work by saving us a large part of the job, but I was wrong. }}
27. ^{{cite web | url = http://walfield.org/papers/200707-walfield-critique-of-the-GNU-Hurd.pdf | format = PDF | title = A Critique of the GNU Hurd Multi-server Operating System | first1 = Neal H. | last1 = Walfield | first2 = Marcus | last2 = Brinkmann | work = GNU | date = July 2007 | accessdate = 2011-12-07 }}
28. ^{{cite web |last1=Walfield |first1=Neal H. |last2=Brinkmann |first2=Marcus |date=2007-01-04 |title=Improving Usability via Access Decomposition and Policy Refinement |work=GNU |url=http://walfield.org/papers/20070104-walfield-access-decomposition-policy-refinement.pdf |format=PDF |accessdate=2011-12-07}}
29. ^{{cite mailing list | url = http://lists.gnu.org/archive/html/l4-hurd/2005-10/msg00755.html | title = Re: A comment about changing kernels | first = Jonathan S. | last = Shapiro | mailinglist = l4-hurd | date = 2005-10-27 }}
30. ^{{cite mailing list | url = http://lists.gnu.org/archive/html/l4-hurd/2006-07/msg00004.html | title = Re: seL4, L4.sec and coyotos mess | first = Tom | last = Bachmann | mailinglist = l4-hurd | date = 2006-07-07 }}
31. ^{{cite web |title=viengoos |publisher=GNU |url=https://www.gnu.org/software/hurd/microkernel/viengoos.html |accessdate=2010-03-04 }}
32. ^{{cite web |title=What happened to the L4/Coyotos/viengoos micro-kernels? |publisher=GNU |url=https://www.gnu.org/software/hurd/faq/which_microkernel.html |accessdate=2011-01-07 }}
33. ^{{cite web |title=Preliminary GNU/Hurd User Interface Description |work=Debian |date=1996-10-10 |url=http://www.debian.org/ports/hurd/hurd-doc-server |accessdate=2010-03-04}}
[16][17][18][19][20][21][22][23][24][25][26][27][28][29][30][31][32][33]
}}

External links

{{Commons category|GNU Hurd}}{{Wikinews|GNU Hurd operating system: first user program run using L4 microkernel}}
  • {{Official website|https://www.gnu.org/software/hurd/}}
{{GNU}}{{Unix-like}}{{Free Software Foundation}}{{Microkernel}}

6 : Free software operating systems|GNU Project software|Microkernel-based operating systems|Microkernels|Operating system distributions bootable from read-only media|Unix variants

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/12 17:36:00