Zircon Kernel, Core Drivers and Services
fuchsia.googlesource.com
fuchsia.googlesource.com
[1] https://www.phoronix.com/scan.php?page=news_item&px=Fuchsia-...
"Zircon targets modern phones and modern personal computers with fast processors, non-trivial amounts of ram with arbitrary peripherals doing open ended computation."
It's likely that this is what Google wants to replace Linux with on Android phones. The kernel/OS both seem to be designed to scale down to very small devices and all the way up to full GUI desktops.
[1] https://fuchsia.googlesource.com/zircon/+/master/docs/zx_and...
Garnet is the composer for ui. What is topaz?
I mean Fuchsia name is super unintuitive to pronounce.
I'd naturally say "fucks-ya", informed by the German, but /fjuːʃə/ seems to be informed by the French, although Leonhart Fuchs was a German, whom the plant was named after. Fuchs means fox, neither fudge nor few, by the way.
EDIT: sounds like the rename was in the works for a while and the Go port was just holding off until it completed:
> "this change has been a few months in the works..." "...I delayed this email until it was almost done."
[0] https://groups.google.com/forum/#!topic/golang-dev/2xuYHcP0F...
> In particular, the network stack is implemented Go, so for any program to make a TCP connection on Fuchsia, we need the Go port to be working:
It looks like systems programming to me. :)
Wow!
Zircon
Zircon is the operating system's foundation: it mediates hardware access, implements essential software abstractions over shared resources, and provides a platform for low-level software development.
For example, Zircon contains the kernel, device manager, most core and first-party device drivers, and low-level system libraries, such as libc and launchpad. Zircon also defines the Fuchsia IDL (FIDL), which is the protocol spoken between processes in the system, as well as backends for C and C++. The backends for other languages will be added by other layers.
Garnet
Garnet provides device-level system services for software installation, administration, communication with remote systems, and product deployment.
For example, Garnet contains the network, media, and graphics services. Garnet also contains the package management and update system.
Peridot
Peridot presents a cohesive, customizable, multi-device user experience assembled from modules, stories, agents, entities, and other components.
For example, Peridot contains the device, user, and story runners. Peridot also contains the ledger and resolver, as well as the context and suggestion engines.
Topaz
Topaz augments system functionality by implementing interfaces defined by underlying layers. Topaz contains four major categories of software: modules, agents, shells, and runtimes.
For example, modules include the calendar, email, and terminal modules, shells include the base shell and the user shell, agents include the email and chat content providers, and runtimes include the Dart andFlutter runtimes.
For example...different, but the lineage seems there:
https://fuchsia.googlesource.com/zircon/+/master/kernel/kern...
To save others from bit of googling, apparently NewOS eventually became the basis for Haiku kernel, Haiku being FOSS re-implementation of BeOS. Travis also worked on some kernel stuff for BeOS, so that lineage makes some sense. Not sure if I missed anything?
Also see this comment thread: https://news.ycombinator.com/item?id=12271839
(Pdf) https://developer.qualcomm.com/qfile/28821/lm80-p0436-1_litt...
[1] https://github.com/fuchsia-mirror/zircon/blob/master/system/...
The PCI syscalls and a lot of the other DDK scaffolding stuff will be going away in time (and are not accessible to general userspace processes).
I'm hopeful that we'll hit 1.0 with fewer than 100 public syscalls and hopefully not many more than 100 total.
I would presume there are some costs associated with providing hard real time guarantees ... otherwise every OS would be a real-time OS right?
And if there are tradeoffs, why did Google choose a hard realtime kernel to be the basis of its new OS? Since Linux and BSD seem to be fine bases for mobile OS (as evidenced by iOS/Android).
There's a little about some aspects of it here: https://fuchsia.googlesource.com/docs/+/master/book.md
That article has a good overview.
The best place to read about this in the official docs is the page on filesystems [1], and the page on sand boxing [2]:
https://fuchsia.googlesource.com/docs/+/master/filesystems.m...
https://fuchsia.googlesource.com/docs/+/master/sandboxing.md
...files?
> We analyze the I/O behavior of iBench, a new collection of productivity and multimedia application workloads. Our analysis reveals a number of differences between iBench and typical file-system workload studies, including the complex organization of modern files, the lack of pure sequential access, the influence of underlying frameworks on I/O patterns, the widespread use of file synchronization and atomic operations, and the prevalence of threads. Our results have strong ramifications for the design of next generation local and cloud-based storage systems.
> The iBench tasks also illustrate that file systems are now being treated as repositories of highly-structured “databases” managed by the applications themselves. In some cases, data is stored in a literal database (e.g, iPhoto uses SQLite), but in most cases, data is organized in complex directory hierarchies or within a single file (e.g., a .doc file is basically a mini-FAT file system). One option is that the file system could become more application-aware, tuned to understand important structures and to better allocate and access these structures on disk. For example, a smarter file system could improve its allocation and prefetching of “files” within a .doc file: seemingly non-sequential patterns in a complex file are easily deconstructed into accesses to metadata followed by streaming sequential access to data.
Of course I'm not sure if parent was meaning files as a way to structure/store data (having that hierarchical blobstore) or as a way to access data (something you `open`, `read`, `seek` etc), as they are slightly different things.
For a more real world example, take a look how mainframes, especially AS400 (edit: meant System/360 successors), managed data. At least afaik they fundamentally work on a more structured level.
In practice, this might be a little more performant but incurs significant manageability costs. If you're a committed Oracle shop, it's worthwhile. If you just want one or two database servers and you already have preferred storage methods, use those. (Or, more realistically, use PostgreSQL.)
Of course all the rage the last couple years are key/value stores, which in old terminology one might call KCD (key, count, data) or to rearrange it a bit CKD, aka the technology used for persistent disk storage on IBM mainframes.
This is actually one of the things that has gotten a lot easier on the internet the past few years as book scanners have become more common. There now seems to be an effort to preserve old burroghs/whatever manuals online rather than collecting dust in peoples attics.
The filesystem's "you can only persist uninterpreted bytes" policy means software can't maintain any kind of data invariant across runs; everything has to be revalidated if your process ends.
ACLs (e.g. unix permissions) are widely regarded as a mistake.
File locking is broken: https://gavv.github.io/blog/file-locks/
File metadata is easy to accidentally mangle (e.g. atime) and hurts performance (even "relatime" is slower than not causing a write for every read).
The filesystem is used both for users to organize their data files and for sharing of machine-interpreted data between programs (e.g. shared libraries and system configuration). Humans need human-readable names, and machines get confused by humans renaming things (and should probably be addressing by content, rather cryptographically or in terms of type signatures or specifications).
There are no asynchronous syscalls for interacting with the filesystem itself (e.g. `stat()`; for file contents things are onl slightly better).
Probably I'm still forgetting a number of problems, but these come to mind offhand.
Update: https://fuchsia.googlesource.com/docs/+/master/filesystems.m...
"Like other native servers on Fuchsia, the primary mode of interaction with a filesystem server is achieved using the handle primitive rather than system calls. The kernel has no knowledge about files, directories, or filesystems. As a consequence, filesystem clients cannot ask the kernel for “filesystem access” directly."
- Booting up
- Processes
- Message passing
- Page allocation
- API for manipulating ring 0 resources (drivers)
Everything else is implemented in userspace services and interfaced with via message passing.
https://fuchsia.googlesource.com/thinfs/
My guess is that apps will be encouraged to use Fuchsia's object store
On the other hand, change one iota and you have no patent grant from Google of any kind, I believe.
It does this by taking advantage of IPV6 Link Local Addressing and Multicast, allowing the device being booted to advertise its bootability and the host to find it and send a system image to it.
Uh oh. Totally insecure remote boot with discoverability. What could possibly go wrong? If this shows up in some IoT device, trouble.
This whole project is still in a very early stage, but it seems unreasonable to assume GigaBoot20x6 will be the preferred / only bootloader when this is ready for production.
See: https://fuchsia.googlesource.com/zircon/+/master/docs/gettin...