News for hackers. Stuff that matters.
Re:Xv6 by eddiezane on Wednesday April 09, 2014 @11:51AM (#7560052)
We are using Xv6 in my OS class this semester and have had some pretty fun and interesting assignments. We started off with learning how system calls and traps work by adding our own system calls to the existing system. The next assignment was to implement a signal system with support for user signal handlers. Our current assignment is to implement a user level thread library followed by kernel level threads in a few weeks. Working with Xv6 has been a real pleasure.
Re:Xv6 by ilozinski on Wednesday April 09, 2014 @03:05PM (#7561556)
I'm in your class!
Re:Xv6 by imurray on Wednesday April 09, 2014 @08:59AM (#7558951)
The discussion from a hundred days ago has some useful information: https://news.ycombinator.com/item?id=6971127
Re:Xv6 by dsymonds on Wednesday April 09, 2014 @07:20AM (#7558664)
Re:Xv6 by aktau on Wednesday April 09, 2014 @05:58AM (#7558481)
I really like this, when I'm done with trying to create a JIT compiler I think I'll move on to building a mini-OS in my spare time. I'm sure this combined with this [1] will be a great course unto itself.

[1] http://samypesse.github.io/How-to-Make-a-Computer-Operating-...

Re:Xv6 by CSDude on Wednesday April 09, 2014 @07:32AM (#7558702)
I would post this too, it is nice concepts, but it seems stopped, at the most important place, process managment. It would be very nice to complete it.
Re:Xv6 by userbinator on Wednesday April 09, 2014 @08:01AM (#7558767)
As crazy as its author may be, I think ParrotOS/SparrowOS/whatever it's named now would also make for some interesting studying for those more interested in embedded systems.
Re:Xv6 by duskwuff on Wednesday April 09, 2014 @08:27PM (#7563485)
All comment on the author aside, that operating system makes a number of highly unusual design decisions that make it a poor candidate for this type of study. In particular, it makes almost no use of the MMU - all memory is identity mapped (physical address = virtual address), and all code runs in ring 0. This makes it impossible to implement a number of really basic OS features, such as virtual memory.
Re:Xv6 by userbinator on Wednesday April 09, 2014 @10:59PM (#7563922)
A lot of embedded systems don't need an MMU nor VM. That's why other OSs like uClinux exist.
Re:Xv6 by bitwize on Wednesday April 09, 2014 @09:50AM (#7559227)
The "I Whipped Spider-Man's Ass" of operating systems :)
Re:Xv6 by acomjean on Wednesday April 09, 2014 @08:10AM (#7558791)
The linux kernel is very complex and its become harder to explore and figure out what is going on. This seems to be the right size.

Is minix still kicking around? I thought that was the teaching Kernel.

For looking at linux, they put all the redhat source online via LXR. Its online, but you should install your own on your own lini install.

http://src3.org/#RHEL6-2.6.32+220.el6/kernel/

Re:Xv6 by pjmlp on Wednesday April 09, 2014 @08:14AM (#7558811)
> Is minix still kicking around? I thought that was the teaching Kernel

Surely yes, since version 3.0 it got some commercial and EU funding and migrated to NetBSD userland.

Minix is enjoying the fact that it isn't 1992 any longer and there are quite a few micro-kernel OS systems to choose from.

Re:Xv6 by CSDude on Wednesday April 09, 2014 @07:50AM (#7558741)
I am a MsC student & teaching assitant of Operating Systems course and we are considering using Xv6 for more realistic assignments. Right now we give assignments like make a simulator of proces scheduler, it would be much better if they make a real process scheduler under this.
Re:Xv6 by aaronetz on Wednesday April 09, 2014 @08:00AM (#7558764)
In my OS course (both as an undergrad and later as a teaching assistant) we used Xinu [1] which seemed to work well.

[1] http://en.wikipedia.org/wiki/Xinu

Re:Xv6 by chubot on Wednesday April 09, 2014 @12:27PM (#7560336)
Does xv6 run any programs like a C compiler or text editor? Shell? Curious if can compile itself. I looked around and couldn't find any info that.
Re:Xv6 by transfire on Wednesday April 09, 2014 @01:30PM (#7560790)
I wonder, when computers eventually become 1,000, or better, a 1,000,000 times faster than they are today. Will all these complex algorithms to squeeze out every last drop of performance still be desirable?
Re:Xv6 by lttlrck on Wednesday April 09, 2014 @03:53PM (#7561898)
It's probably safe to say people have been wondering that for decades.
Re:Xv6 by a8000 on Thursday April 10, 2014 @07:55AM (#7565352)
Remember there are lots of NP hard problems, that soak up any additional computing power you throw at them. A lot of them are very important (placement in EDA for example). Supercomputers today are already 1000000 faster than current desktop computers and still they are no where near where we would want them to be (to simulate the earth athmosphere at sufficient resolution for example, or all the neurons in a human brain)
Re:Xv6 by wbsun on Wednesday April 09, 2014 @01:50PM (#7560929)
I bet at that time there will be new workloads and tasks that demand even more computing power, like today.
Re:Xv6 by rcxdude on Thursday April 10, 2014 @06:21AM (#7565092)
Yes. Even with 1000x computing power, having twice as much as that is still valuable. There are any number of applications which will literally use all the computing power you can throw at them.
Re:Xv6 by frik on Wednesday April 09, 2014 @05:36AM (#7558415)
Instead of exposing students to Windows kernel code[1], it would be better to consider to read the ReactOS source code - an open source clean room re-implementation:

http://www.reactos.org

[1] signing such an NDA will prevent them from contributing to various open source projects, that would be a shame.

Re:Xv6 by 4ad on Wednesday April 09, 2014 @07:18AM (#7558659)
There is no single NDA, all NDAs are different. The NDAs I've managed to negotiate regarding this issue have no such clauses.

That being said, you are right that this is a valid concern and people should be careful.

Re:Xv6 by coldpie on Wednesday April 09, 2014 @08:50AM (#7558919)
Over at the Wine project, we forbid contributions from anyone known to have looked at Windows source code or even done significant "white box" reverse-engineering (decompiling, etc). The intellectual property law landscape is far too frightening to be worth the risk of allowing contributions from "tainted" individuals.
Re:Xv6 by userbinator on Wednesday April 09, 2014 @11:06PM (#7563945)
Statements like these are "legally reassuring" but it's very likely that you can get the same functionality but implemented very differently even if you looked at Windows' code. In the end it's probably another thing like piracy: everyone does it, but few would admit.
Re:Xv6 by scott_karana on Wednesday April 09, 2014 @07:05AM (#7558631)
I had the impression that the Win2000 code he's talking about was the leaked source code.

I didn't know the Microsoft source NDA was so evil though; good warning. :)

Re:Xv6 by _wmd on Wednesday April 09, 2014 @07:42AM (#7558723)
Microsoft have been making their source code available to academia to study for at least a decade.
Re:Xv6 by 4ad on Wednesday April 09, 2014 @09:55AM (#7559248)
Yes, this program started a long time ago.

Unfortunately, I was under the impression that it stopped not so long ago (~1year)?

Re:Xv6 by pjmlp on Wednesday April 09, 2014 @08:15AM (#7558815)
Also read the "Inside Windows" book series, they are full of valuable information.
Re:Xv6 by sixothree on Wednesday April 09, 2014 @01:54PM (#7560964)
Do you know the author or have a link to the book?
Re:Xv6 by pjmlp on Wednesday April 09, 2014 @02:39PM (#7561361)
The original author was Mark E. Russinovich from "Sysinternals fame", nowadays other developers continue the new editions.

http://www.amazon.com/Windows-Internals-Edition-Developer-Re...

http://www.amazon.com/Windows-Internals-Edition-Developer-Re...

Additionally the books for user mode programming from Jeffrey Richter and Charles Petzold tend to be quite good and full of valuable information as well.

Re:Xv6 by sixothree on Friday April 11, 2014 @05:02PM (#7575623)
Thank you.
Re:Xv6 by fulafel on Thursday April 10, 2014 @04:52AM (#7564903)
A NDA'd operating systems course where you had to submit to Microsoft, I'd love to see the headlines...
Re:Xv6 by iso8859-1 on Wednesday April 09, 2014 @06:02AM (#7558489)
Is the ReactOS kernel clean?
Re:Xv6 by frik on Wednesday April 09, 2014 @01:05PM (#7560607)
Read the comment above by coldpie about WineHQ project. The same is true for the ReactOS project.

In 2006, an overenthusiastic contributor caused troubles. The aftermath slash back the project for several months and stressed the relationship with Wine for some time. Since then, every possible effort is made to keep the code clean and disallow tainted developers. (that's why I wrote the comment above, to warn others) You can read a short summary on Wikipedia: http://en.wikipedia.org/wiki/ReactOS#Internal_audit

Re:Xv6 by jeditobe on Wednesday April 09, 2014 @02:44PM (#7561397)
Yes, it is clean 100%
Re:Xv6 by ape4 on Wednesday April 09, 2014 @05:34AM (#7558404)
I am sure its good and all but it doesn't end in "nix"