Amiga.org

Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: obscurepanic on July 18, 2009, 01:09:34 AM

Title: Amiga's kernel
Post by: obscurepanic on July 18, 2009, 01:09:34 AM
In Wikipedia, AmigaOS has an atypical microkernel.

http://en.wikipedia.org/wiki/Amigaos

As I googled it deeper, I bumped into an website and saw a comment:

Quote
AmigaOS is a beast on its own. Yes it was designed like a microkernel, with each device and filesystem having their own thread (task), but it doesn't actually have any enforced boundary between userland and kernel land, nor memory protection, which greatly lowers the latency. It's like a single kernel process running each app as a different thread in the kernel.


http://www.haiku-os.org/community/forum/haiku_kernel_architecture_questions_0

How does the kernel really work in Amiga vis-a-vis its architecture?
Title: Re: Amiga's kernel
Post by: bloodline on July 18, 2009, 06:53:17 AM
Quote from: obscurepanic;516010
In Wikipedia, AmigaOS has an atypical microkernel.

http://en.wikipedia.org/wiki/Amigaos

As I googled it deeper, I bumped into an website and saw a comment:



http://www.haiku-os.org/community/forum/haiku_kernel_architecture_questions_0

How does the kernel really work in Amiga vis-a-vis its architecture?


The quote you have from Wiki/google, just about sums it up. What is your question exactly?
Title: Re: Amiga's kernel
Post by: obscurepanic on July 18, 2009, 11:30:04 PM
Quote from: bloodline;516026
The quote you have from Wiki/google, just about sums it up.


You mean an application on AmigaOS act like a minicomputer on its own?

Quote
What is your question exactly?


How AmigaOS' architecture and kernel really works. I'm not too familiar with Amiga, so I was curious. Even the previous example quote was a wee bit to understand.

Why being atypical? No huge difference between the kernel and userland? What points are very different from a generic UNIX monolithic kernel?

Thank you. :)
Title: Re: Amiga's kernel
Post by: the_leander on July 19, 2009, 04:14:15 AM
Whilst no expert on the subject, you wouldn't go far wrong in looking into things like AmigaOS's lack of memory protection to begin with.

As for kernel comparasons, you might be better off comparing Exec (http://en.wikipedia.org/wiki/Exec_(Amiga)) to L4 (http://en.wikipedia.org/wiki/L4_microkernel) or QNX (http://en.wikipedia.org/wiki/QNX) or Minix (http://en.wikipedia.org/wiki/MINIX_3) or even Hurd (http://en.wikipedia.org/wiki/GNU_Hurd).
Title: Re: Amiga's kernel
Post by: krashan on July 19, 2009, 08:24:06 AM
Quote from: obscurepanic;516071
How AmigaOS' architecture and kernel really works. I'm not too familiar with Amiga, so I was curious. Even the previous example quote was a wee bit to understand.

The thing is rather simple. From unix point of view the whole AmigaOS including all running applications, is a single process. Every application and all asynchronous system services are threads of this process. Then all these share a single address space. That is why there is no separation between so called "kernel" and "userland".

Advantages of this approach are speed and low demand for system resources (CPU time, memory). The main disadvantage is that one badly coded (or intentionally malicious) application can drag down the whole system.

Another difference is very high modularity. The "real" kernel is very small, below 50 kB for 68k machines. Then all higher layer system services including all device drivers, filesystems etc. are external modules. For classic Amigas a few most important service modules have been placed in ROM memory (so called Kickstart), modern ones (+ clones) load all from disk. These modules, called libraries use specific form of runtime linking, different than *.so or *.dll, they use jumptables to defined API vectors, so no symol resolving happens at module load.
Title: Re: Amiga's kernel
Post by: AJCopland on July 19, 2009, 11:38:09 AM
An interesting statement on that WikiPedia entry : "The current holder of the Amiga intellectual properties is Intel."
It's not referenced so no idea of its validity, typical wikipedia entry really.
Title: Re: Amiga's kernel
Post by: bloodline on July 19, 2009, 12:30:11 PM
Quote from: obscurepanic;516071
You mean an application on AmigaOS act like a minicomputer on its own?



How AmigaOS' architecture and kernel really works. I'm not too familiar with Amiga, so I was curious. Even the previous example quote was a wee bit to understand.

Why being atypical? No huge difference between the kernel and userland? What points are very different from a generic UNIX monolithic kernel?

Thank you. :)


AmigaOS is like a microkernel, in as much as everything is modular, sitting on top of a simple memory/process/interrupt management core... but Amiga OS doesn't suffer the performance penalty of other microkernels because it has no security at all.

A microkernel protects the core from all the other parts of the system, so you can in theory replace/upgrade/restart/break any part of the system without taking down the rest of the system, this is the power of a microkernel...
AmigaOS doesn't and thus is atypical (by missing out on this one key advantage of a microkernel, the trade off being that AmigaOS is faster and more memory efficient than regular microkernel) .
Title: Re: Amiga's kernel
Post by: DiskDoctor on July 19, 2009, 01:13:06 PM
Quote from: bloodline;516106
AmigaOS is like a microkernel, in as much as everything is modular, sitting on top of a simple memory/process/interrupt management core... but Amiga OS doesn't suffer the performance penalty of other microkernels because it has no security at all.

A microkernel protects the core from all the other parts of the system, so you can in theory replace/upgrade/restart/break any part of the system without taking down the rest of the system, this is the power of a microkernel...
AmigaOS doesn't and thus is atypical (by missing out on this one key advantage of a microkernel, the trade off being that AmigaOS is faster and more memory efficient than regular microkernel) .


As a matter of fact I see no harm in denying this feature.  Actually I don't think the harm in question is even comparable in scope to that one while using MSIE on an unprotected and badly secured/managed Windows desktop (which is roughly 80% world's personal computers' installation scheme).  Besides making any application registration layer (I mean certificates) solves the problem thoroughly.  All bad things we can see now is just an outcome of tremendous efforts of porting/writting apps for this very system.

I saw both Amiga and Morphos on local fairs yet in February and I was astonished by their performance.  Second time in my life.  First time was when I saw A500 back in those days.  Amiga nowadays is the only part of computer world which doesn't follow the Moore's law.  You can buy underpowered Sam and do whatever AOS is designed for and do it efficiently.  No matter the time or system (or processor if we're talking mobile), you always have to wait for everything.  Such a scalable system as AOS has a bright future I think, but maybe in 5-10 years.  Simple justification - computer OSes (mainly proprietary) appear in practically all digital equipment, get a 15$ mp3player and you'll see the market I mean.  Such systems like WinMobile, Symbian, even Android, WebOS are to fat for them already.  There goes the Amiga - that's how I see it and why I adore it.  But of course I prefer Amiga as a desktop :lol:
Title: Re: Amiga's kernel
Post by: stefcep2 on July 19, 2009, 01:52:13 PM
Quote from: DiskDoctor;516112
No matter the time or system (or processor if we're talking mobile), you always have to wait for everything.



I agree.  Modern computing is one step forward, 2 steps back: your hardware specs get higher and higher but it takes more and more time to do the simple things
Title: Re: Amiga's kernel
Post by: bloodline on July 19, 2009, 02:05:40 PM
Quote from: stefcep2;516116


Quote

Originally Posted by DiskDoctor  
No matter the time or system (or processor if we're talking mobile), you always have to wait for everything.

I agree.  Modern computing is one step forward, 2 steps back: your hardware specs get higher and higher but it takes more and more time to do the simple things


Rubbish, Modern computing is getting better exponentially!
Title: Re: Amiga's kernel
Post by: the_leander on July 19, 2009, 02:37:25 PM
Quote from: bloodline;516118
Rubbish, Modern computing is getting better exponentially!


Shhh, don't tell them that, I mean afterall, running high end OS's on hardware way below the minimum spec is totally a valid comparason. :lol:

Yes stefcep2, that was aimed squarely at you.

Now, if you don't mind I'm going to go back to transcoding and editing some HD video.
Title: Re: Amiga's kernel
Post by: stefcep2 on July 19, 2009, 03:13:40 PM
Quote from: the_leander;516124
Shhh, don't tell them that, I mean afterall, running high end OS's on hardware way below the minimum spec is totally a valid comparason. :lol:

Yes stefcep2, that was aimed squarely at you.

Now, if you don't mind I'm going to go back to transcoding and editing some HD video.



I'll just have to upgrade my c2d 2.6 ghz with 4 gig ram and 512mb nvidia card, I suppose..
Title: Re: Amiga's kernel
Post by: DiskDoctor on July 19, 2009, 03:28:45 PM
Quote from: bloodline;516118
Rubbish, Modern computing is getting better exponentially!


True but as long as you're getting most recent HW spec on each major release.

Besides I saw nothing for years, except for OSX release that is surpassed by Windows until now.

Nothing new.

WinXP for example was a polished version of W2K, with much less dll-driven exceptions.  W2K was the eventually stable (beta) version of Win95, WinNT actually.  Nothing happened until Vista, actually Vista was scr*wing up drivers policy and ripping off OSX UI.  I just got myself WIn7 which I find impossible to distinguish from Vista, jsut like 98 and ME. So from my perspective, more progress happened in Amiga world than in Windows world in the time of 1995-2009.

You say better graphics, cheaper RAM, faster and multi-core processors.  So what?  What for?  To make a new system supported?  Bollocks!  This is not a progress anymore - it is a scale effect lobbed by vendors to stabilize their income from selling HW.

Linux on Kubuntu example - nothing changed between 8 and 9 release, just most stuff is broken now since it's "just" released version.  What change might one expect from Linux anyway?  New gcc?  More Windows resemblance?  More ports, rip offs?  Drivers?  DivX codecs?

Macs allright, many new things have been appearing since 10.0 OS.

But those Windows issues for example - this is FMCG-like actions just to preserve clients from running into Macs, efficient actions though.

OK bloodline if you mean Macs fine, I agree it makes the whole thing undoubdetly better.  But keep in mind it would be 5% population and zero % office population.  These people ought to see hardly any change for last several years, if non-mac users report any progress it means they are properly targeted by MS marketing or misled by Linux mimics.

One more thing - I'm talking Desktop area only, servers - different story.  But Amiga is a desktop system, right?  And mobile for a change, as an ex-Palm owner all I can see now in smart mobiles is reverse-engineering the Palm world apps dated approximately on 2001/02 with everything slowed down by 5 x with 10 x better processor, more RAM, more etc.  So this is going down, not up.

This whole thing is embarrasing.  If like Databases you're talking - fine, the progress is huge.  But excluding servers and desktop macs there is NO actual (by a measure of computer science) progress here.

Sorry I must be blind or completely miseducated etc.  Or at least tasteless, aren't I?
Title: Re: Amiga's kernel
Post by: the_leander on July 19, 2009, 04:51:30 PM
Quote from: stefcep2;516129
I'll just have to upgrade my c2d 2.6 ghz with 4 gig ram and 512mb nvidia card, I suppose..


Was it not you who was complaining of menu jerkiness with a Radeon 9200?

/cba to check the thread in question
Title: Re: Amiga's kernel
Post by: the_leander on July 19, 2009, 05:03:49 PM
Quote from: DiskDoctor;516132
words


Uhuh...

Quote from: DiskDoctor;516132

You say better graphics, cheaper RAM, faster and multi-core processors.  So what?  What for?  To make a new system supported?  Bollocks!  This is not a progress anymore - it is a scale effect lobbed by vendors to stabilize their income from selling HW.


Yup, I could totally do what I do with video on an Amiga era hardware within a human lifetime and at the same quality.... (this is but one example)

Quote from: DiskDoctor;516132

Linux on Kubuntu example - nothing changed between 8 and 9 release, just most stuff is broken now since it's "just" released version.  What change might one expect from Linux anyway?  New gcc?  More Windows resemblance?  More ports, rip offs?  Drivers?  DivX codecs?


No progress you say...

Quote from: DiskDoctor;516132

OK bloodline if you mean Macs fine, I agree it makes the whole thing undoubdetly better.  But keep in mind it would be 5% population and zero % office population.  These people ought to see hardly any change for last several years, if non-mac users report any progress it means they are properly targeted by MS marketing or misled by Linux mimics.


The majority of tasks within an office have not changed - word processing, database entry etc. What has changed is how an office communicates both within a network and to the wider world. These capabilities require more powerful hardware.  

Consider the swathe of capabilities now open to a user of even a bottom end desktop PC. They can do things that 20 years ago would have been strictly the pervue of big studios, both in terms of video editing and special effects.

Also, you might want to consider that Macs now run on PC hardware and have done for a while now.

Quote from: DiskDoctor;516132
But excluding servers and desktop macs there is NO actual (by a measure of computer science) progress here.

Sorry I must be blind or completely miseducated etc.  Or at least tasteless, aren't I?


You really want me to answer that?
Title: Re: Amiga's kernel
Post by: wawrzon on July 19, 2009, 05:18:32 PM
someone, who obviously comes to this forum just to ask some technical questions probably out of pure interest and sees his thread mutating within few replies into war of fractions must really think everybody is gone insane here! hope he'll never return to read this all.
Title: Re: Amiga's kernel
Post by: the_leander on July 19, 2009, 05:52:46 PM
And he got a technical explanation as well as a few hints on where to look for comparable kernel models.

That a few folk want to turn every tech question into a reason why the Amiga is "tEh OnE TrOoO CoMpUtAr!!!11oneoneone" is however unfortunate.

In fact in another thread I specifically pointed to this being a major put off for newbies.

As for this being a war, well all I can say is: Hi, you must be new here!

This is just friendly disagreement.
Title: Re: Amiga's kernel
Post by: obscurepanic on July 19, 2009, 06:10:23 PM
I found an interesting old article about this (with several spelling errors). http://www.cunningham-lee.com/misc/amiga_exec.html

Quote from: wawrzon;516146
someone, who obviously comes to this forum just to ask some technical questions probably out of pure interest and sees his thread mutating within few replies into war of fractions must really think everybody is gone insane here! hope he'll never return to read this all.


Pardon?

Consider I'm from East Asia, I am very bitter towards the quasi-total dominance of Microsoft from servers to desktop. I just couldn't care much about the rantings here as long as I can ease my Microsoft hate a bit.
Title: Re: Amiga's kernel
Post by: the_leander on July 19, 2009, 06:24:15 PM
Quote from: obscurepanic;516149
I found an interesting old article about this (with several spelling errors). http://www.cunningham-lee.com/misc/amiga_exec.html


Ooooo, nice find!

Quote from: obscurepanic;516149

Pardon?

Consider I'm from East Asia, I am very bitter towards the quasi-total dominance of Microsoft from servers to desktop. I just couldn't care much about the rantings here as long as I can ease my Microsoft hate a bit.


Jawsome.

Also, welcome back! :laughing:
Title: Re: Amiga's kernel
Post by: wawrzon on July 19, 2009, 06:55:51 PM
@leander: its only i become tired reading this all rants about amiga being up to date versus good for nothing like it would be of any importance. actually sorry i spoke up.
Title: Re: Amiga's kernel
Post by: the_leander on July 19, 2009, 07:04:23 PM
Quote from: wawrzon;516153
@leander: its only i become tired reading this all rants about amiga being up to date versus good for nothing like it would be of any importance. actually sorry i spoke up.


Didn't say it's good for nothing, nor did I imply it. What I said, and will continue to say is that the Amiga is a machine of it's time. It has no future outside of the retro/hobbyist scene. And finally, that in it's day it allowed a lot of developers take their first baby steps into coding.

My reasons for continuing to reitterate this whenever someone pops up trying to sell the old girl as something she's not capable of is twofold:



Finally, don't be sorry, speak up!
Title: Re: Amiga's kernel
Post by: wawrzon on July 19, 2009, 07:18:18 PM
what matters to me is i can get some actual use of one of these old girls or another while of course dedicating most tasks to current (and not '93) hardware. nothing more nothing less.
Title: Re: Amiga's kernel
Post by: DiskDoctor on July 19, 2009, 07:29:16 PM
Quote from: the_leander;516144
You really want me to answer that?

You completely didn't comprehend my posting and act as a defender of "whatever is around now".  Despite the fact whether such thing as "the present day" require defense per se by anybody living in that peculiar moment, please focus on ICT acronym for a while.

Or IT&T if you prefer.  Well you have to distinguish IT from communication, though it is hard nowadays but it's possible for the purpose of this very analysis.

All I said was that 2009 desktop/office/mobileos/mobileapp IT sucks as the market to me.  As in 2009.  I would expect that to have happened in 2001.  But I stressed on OSes, didn't say a thing 'bout communication.  The internet, networking, mobile, email, SOA - great stuff but this doesn't belong to the topic being disputed.  If you consider computing as ICT - well, mabye I don't get something but computing was calculations to me always.  Calculations, processing, visualizing, designing.  So ICT as a whole, including communication and internet, especially mobile and wireles techs - that's fine pretty much, agree here but that is not in the scope of the discussion.

One thing I have to agree with is that many serious tasks back then, requiring mainframe power, now are available at home.  I mean DTP, CAD n stuff.  That's fine, too.

So to say again - if I was back in 1995 and someone showed me Windows7 and said it would be in 2009, I would say "shouldn't this ship in some five years now"?  But if you say 2009 but add wifi, internet, GSM/HSxPA - now you've done it.  I confess.

But this is not just computing.  HSxPA phone in roaming isn't computing at all.  Not in 2009, not yet.

I hope this sums up my thoughts pretty much.
Title: Re: Amiga's kernel
Post by: the_leander on July 19, 2009, 07:44:28 PM
Quote from: DiskDoctor;516159
You completely didn't comprehend my posting and act as a defender of "whatever is around now".  Despite the fact whether such thing as "the present day" require defense per se by anybody living in that peculiar moment, please focus on ICT acronym for a while.

Or IT&T if you prefer.  Well you have to distinguish IT from communication, though it is hard nowadays but it's possible for the purpose of this very analysis.


Actually with each passing generation of hardware, that line becomes ever more blurred.

Look at any laptop you can buy today, what is a, if not the selling point(beyond the obvious - ram - hd - cpu)? Connectivity.

You have Iphones now that have effective ever present online capability. Netbooks that have the same, and cheep 3G modems that can hook up any notebook to the net in a matter of seconds from the box.

Quote from: DiskDoctor;516159

All I said was that 2009 desktop/office/mobileos/mobileapp IT sucks as the market to me.


Thing is, the basics in the office are pretty much the same as they were ten or fifteen years ago - speadsheets, database and word processor. In truth there hasn't been a whole lot of movement in these markets simply because there isn't the need - the applications are well established, stable and accessable.

Quote from: DiskDoctor;516159

As in 2009.  I would expect that to have happen in 2001.  But I stressed on OSes, didn't say a thing 'bout communication.  The internet, networking, mobile, email, SOA - great stuff but this doesn't belong to the topic being disputed.  


The problem with making this distinction is that for the most part it is a vitally important, if not central part of any companys IT planning. If you don't have the expected (nay, demanded) networking capabilities, you're done for.

Quote from: DiskDoctor;516159

If you consider computing as ICT - well, mabye I don't get something but computing was calculations to me always.  Calculations, processing, visualizing, designing.  So ICT as a whole, including communication and internet, especially mobile and wireles techs - that's fine pretty much, agree here but that is not in the scope of the discussion.


Again, dismissing such a massive part of the picture isn't helpful. Cherry picking doesn't make for useful discussion.

Quote from: DiskDoctor;516159

One thing I have to agree with is that many serious tasks back then, requiring mainframe power, now are available at home.  I mean DTP, CAD n stuff.  That's fine, too.


And it'll only get more able as time goes on.

Quote from: DiskDoctor;516159

So to say again - if I was back in 1995 and someone showed me Windows7 and said it would be in 2009, I would say "shouldn't this ship in some five years now"?  But if you say 2009 but add wifi, internet, GSM/HSxPA - now you've done it.  I confess.


If you're arguing that Windows has stagnated as an OS, then I won't disagree, but. And it's a big but, you do have to take into account all the other goodies.

Quote from: DiskDoctor;516159

But this is not just computing.  HSxPA phone in roaming isn't computing at all.  Not in 2009, not yet.


My EeePC 701 with E220 3G modem disagrees with you. (500Mhz Celeron, 512Mb ram, 6Gb storage)

Quote from: DiskDoctor;516159

I hope this sums up my thoughts pretty much.


Fair enough :)