News for hackers. Stuff that matters.
Re:The benefits and costs of writing a POSIX kernel in a hig... by DblPlusUngood on Monday October 08, 2018 @06:06PM (#18171742)
Well that was fast! I'm an author of this paper and would be happy to answer questions.
Re:The benefits and costs of writing a POSIX kernel in a hig... by frankmcsherry on Monday October 08, 2018 @09:57PM (#18172794)
I'm not at OSDI or I would have asked there, but:

1. Your skepticism for using Rust cites [26], the PLOS paper from the same people who did [27]. They've essentially recanted, in that their PLOS talk was right after Niko's keynote, and he then talked them through how interior mutability works in Rust. Other than [26], are there other lingering concerns? I could imagine so, but it would be great to take stock.

2. You don't seem to page to disk, and do OOM shootdowns instead. If you did enable disk paging, how comically bad an idea does a tracing GC become? :D Naively, I could imagine RC-GC being less horrible, but perhaps that's my built-in (and absolutely for real) bias.

Re:The benefits and costs of writing a POSIX kernel in a hig... by DblPlusUngood on Tuesday October 09, 2018 @03:03AM (#18173869)
1. I wouldn't say we are skeptical of Rust, I'm sure it could be made to work well and we would love to see such a Rust kernel! I do wonder whether it would be harder to implement highly-concurrent data structures in Rust though, such as the directory cache.

2. GC performance would be basically unaffected by paging, since kernels don't page their own heaps out to disk and thus a kernel heap access would never have to wait for a disk IO. Or maybe you had something else in mind?

Re:The benefits and costs of writing a POSIX kernel in a hig... by frankmcsherry on Tuesday October 09, 2018 @04:18AM (#18174158)
1. Jon sits two desks away, right? ;)

Re 2., I assumed (incorrectly, it seems) that virtual memory mappings can eventually spill to disk. If you grab 1/32 of RAM For the kernel, then you could only virtually map 16x RAM if the page tables have 512 entries. Admittedly, I took my OS class in the previous millennium, so I might be out of date here...

Re:The benefits and costs of writing a POSIX kernel in a hig... by Someone on Monday October 08, 2018 @06:24PM (#18171840)
For the ”C kernel vs go kernel” benchmarks, the paper writes ”The benchmarks allocate no heap memory in steady-state, so Biscuit’s garbage collector is not invoked.”.

Is that a fair way to make this comparison?

Also, ”This results in heap bounds of less than 500kB for all system calls but rename and fork (1MB and 641kB, respectively).”

How does that compare to the C-based kernel?

Finally, how does this system hold up after days of uptime?

Re:The benefits and costs of writing a POSIX kernel in a hig... by DblPlusUngood on Monday October 08, 2018 @07:59PM (#18172318)
Concerning your first question, that experiment is not intended to measure the cost of GC, which can be made small by trading memory. The point of this experiment is to measure the unavoidable costs of the language.
Re:The benefits and costs of writing a POSIX kernel in a hig... by Someone on Tuesday October 09, 2018 @12:17PM (#18177224)
I would think that measures less costs of the language than costs caused by differences in compiler quality/focus.

Or are there go features that make it inherently slower than C for kernel programming, even when ignoring GC?

Re:The benefits and costs of writing a POSIX kernel in a hig... by blt on Monday October 08, 2018 @10:58PM (#18172998)
Non sequitur, but is Cody Cutler (you?) related to Dave Cutler, the designer of VMS and Windows NT? Maybe OS programming runs in the family :)
Re:The benefits and costs of writing a POSIX kernel in a hig... by DblPlusUngood on Tuesday October 09, 2018 @02:50AM (#18173817)
Hah, I am Cody and I'm not related to Dave Cutler (as far as I know!).
Re:The benefits and costs of writing a POSIX kernel in a hig... by Immortalin on Monday October 08, 2018 @06:12PM (#18171772)
Is the code on GitHub?
Re:The benefits and costs of writing a POSIX kernel in a hig... by Kostic on Monday October 08, 2018 @06:16PM (#18171798)
As it can be seen on one of the last slides, it is on GitHub[0].

[0] https://github.com/mit-pdos/biscuit

Re:The benefits and costs of writing a POSIX kernel in a hig... by Immortalin on Monday October 08, 2018 @09:04PM (#18172596)
Any plans to borrow code from gVisor to attain full Linux compatibility?
Re:The benefits and costs of writing a POSIX kernel in a hig... by sitzkrieg on Monday October 08, 2018 @08:26PM (#18172425)
interesting 'x' commit messages ..
Re:The benefits and costs of writing a POSIX kernel in a hig... by skissane on Monday October 08, 2018 @08:51PM (#18172542)
Maybe sometimes the mental effort of writing a commit message just isn't worth it.

At work, I try to be a good boy and write proper commit messages, always.

On personal projects, I often just use "." or something equally meaningless. Sometimes I can't be bothered explaining myself, and on a personal project nobody is going to be burned by it but me.

Re:The benefits and costs of writing a POSIX kernel in a hig... by craftyguy on Monday October 08, 2018 @09:55PM (#18172787)
Well... except in this case they referenced the repo in a paper, so of course folks are going to have a look, fork it, play with it, etc.
Re:The benefits and costs of writing a POSIX kernel in a hig... by jonathonadler on Tuesday October 09, 2018 @01:03AM (#18173454)
A quick scan suggests these commits are comment changes only.
Re:The benefits and costs of writing a POSIX kernel in a hig... by twic on Tuesday October 09, 2018 @08:23AM (#18175295)
The recent ones are. There are a few further back in history which are substantive changes. Any thoughts on what this change did:

https://github.com/mit-pdos/biscuit/commit/b262c40b1baf1fb1a...

?