home *** CD-ROM | disk | FTP | other *** search
/ ftp.pasteur.org/FAQ/ / ftp-pasteur-org-FAQ.zip / FAQ / chorus-faq < prev    next >
Text File  |  1998-02-19  |  44KB  |  961 lines

  1. Newsgroups: comp.os.chorus,news.answers,comp.answers
  2. Path: senator-bedfellow.mit.edu!bloom-beacon.mit.edu!towncrier.osf.org!boston-news-feed1.bbnplanet.com!cam-news-hub1.bbnplanet.com!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!rill.news.pipex.net!pipex!server1.netnews.ja.net!hgmp.mrc.ac.uk!guardian.dcs.warwick.ac.uk!warwick!bris.ac.uk!bath.ac.uk!dcl-cs!pr
  3. From: pr@comp.lancs.ac.uk (Philippe Robin)
  4. Subject: comp.os.chorus Frequently Asked Questions (FAQ)
  5. Message-ID: <chorus-faq_887032951@comp.lancs.ac.uk>
  6. Followup-To: comp.os.chorus
  7. Summary: This posting contains a list of Frequently Asked Questions 
  8.          (and their answers) about the CHORUS microkernel technology.
  9. Keywords: CHORUS
  10. Sender: usenet@comp.lancs.ac.uk
  11. Supersedes: <chorus-faq_881683626@comp.lancs.ac.uk>
  12. Nntp-Posting-Host: columbine.comp.lancs.ac.uk
  13. Reply-To: pr@comp.lancs.ac.uk
  14. Cc: Christian.Bac@int-evry.fr
  15. Organization: Lancaster University - UK-
  16. Date: Mon, 9 Feb 1998 14:00:00 GMT
  17. Maintainer: <chorus-adm@comp.lancs.ac.uk> "Philippe Robin"
  18. Approved: news-answers-request@mit.edu
  19. Expires: Sun, 24 May 1998 14:02:31 GMT
  20. Lines: 938
  21. Xref: senator-bedfellow.mit.edu comp.os.chorus:700 news.answers:123679 comp.answers:30154
  22.  
  23. Posting-Frequency: quarterly
  24. Archive-name: chorus-faq
  25. Last-modified: 1998/02/09
  26. Revision: 1.32
  27.  
  28. Change of administrator & location:
  29.  
  30. Christian Bac (INT Evry, France) kindly agreed to continue the 
  31. administration of the newsgroup. He will now do regular postings 
  32. and maintaining of the HTML version of the FAQ. The Web version of 
  33. the FAQ will still be available for a while on the Web server at 
  34. Lancaster but should soon move to a new location at INT, Christian 
  35. will keep you informed on that. E-mails to chorus-adm@comp.lancs.ac.uk 
  36. will be redirected appropriately to the group administrators.
  37.  
  38. I hope people will make more use of this newsgroup to discuss issues 
  39. related to CHORUS technology and more general discussions!
  40.  
  41. -Philippe
  42.  
  43. ----------------
  44.  
  45.         Table of Contents
  46.         =================
  47.  
  48. 1. General Information
  49.     1.1. Organization and Availability of this FAQ
  50.     1.2. What's New?
  51.     1.3. What is CHORUS?
  52.     1.4. How to Contact Chorus Systems?
  53.     1.5. Disclaimer & Copyright
  54. 2. Documentation
  55.     2.1. Documentation Available through Anonymous FTP
  56.     2.2. Papers on CHORUS
  57.     2.3. Other references
  58.     2.4. Press references
  59. 3. Chorus Product Offering
  60.     3.1. Overview
  61.     3.2. Offering for Universities
  62. 4. CHORUS Microkernel
  63.     4.1. General
  64.     4.2. Supported Microprocessors
  65.     4.3. Porting on various platforms
  66.     4.4. Scheduling and real-time
  67.     4.5. CHORUS on Transputers
  68.     4.6. Comparison with other OS
  69.     4.7. Perfomances
  70.     4.8. Object Oriented issues
  71. 5. OS Personalities
  72.     5.1. OS personalities available on top of CHORUS
  73.     5.2. CHORUS/MiX V.3.2
  74.     5.3. CHORUS/COOL-ORB
  75.     5.4. CHORUS/ClassiX
  76. 6. Other Software
  77.     --------------
  78.  
  79. 1. General Information
  80.    ===================
  81. 1.1. Organization and Availability of this FAQ
  82.      -----------------------------------------
  83.   This FAQ contains informations related to the CHORUS operating system,
  84. description of the products and contacts. It will be progressively 
  85. updated according to the discussions held in this newsgroup and the 
  86. evolution of the products.
  87.  
  88.   It is posted every quarter in the following newsgroups:<<comp.os.chorus, 
  89. news.answers, comp.answers >>. A Japanese version of the FAQ is also available 
  90. in the <<fj.os.misc>> newsgroup. Copies of the FAQ can also be obtained by 
  91. e-mail by sending a request to "chorus-adm@comp.lancs.ac.uk". Hypertext
  92. version of the FAQ can be found at the following URLs:
  93.  
  94.     http://www.comp.lancs.ac.uk/computing/users/pr/www/chorus/faq.html
  95.     http://www.faqs.org
  96.  
  97.   You can make any comments, suggestions or contributions to this 
  98. FAQ by sending an e-mail to "chorus-adm@comp.lancs.ac.uk" or by 
  99. discussions in the newsgroup.
  100.  
  101. 1.2. What's New?
  102.      -----------
  103.   Christian Bac (INT Evry, France) kindly agreed to continue the 
  104. administration of the newsgroup. He will now do regular postings 
  105. and maintaining of the HTML version of the FAQ. The Web version of 
  106. the FAQ will still be available for a while on the Web server at 
  107. Lancaster but should soon move to a new location at INT, Christian 
  108. will keep you informed on that. E-mails to chorus-adm@comp.lancs.ac.uk 
  109. will be redirected appropriately to the group administrators.
  110.  
  111.   I hope people will make more use of this newsgroup to discuss issues 
  112. related to CHORUS technology and more general discussions!
  113.  
  114. 1.3. What is CHORUS?
  115.      --------------
  116.   CHORUS is a family of open microkernel-based operating system
  117. components to meet advanced distributed computing needs in areas such
  118. as telecommunications, internetworking, embedded systems, realtime,
  119. "mainframe UNIX", supercomputing and high availability. The CHORUS/MiX
  120. multiserver implementations of UNIX allow to dynamically integrate
  121. part or all of standard UNIX functionalities and services in the above
  122. application areas.
  123.  
  124.   CHORUS is designed, developed and marketed by Chorus Systems.
  125.  
  126.  
  127. 1.4. How to Contact Chorus Systems
  128.      -----------------------------
  129.      North America:
  130.     Chorus Systems Inc.
  131.     1999 South Bascom Avenue, Suite 400
  132.     Campbell, CA 95008
  133.     United States
  134.     Phone: +1 (408) 879-4100
  135.     Fax:   +1 (408) 879-4102
  136.     Voice Mail:  +1 (408) 291 8832
  137.     Email: info@chorus.com
  138.  
  139.      Europe:
  140.     Chorus systemes SA
  141.     6 avenue Gustave Eiffel
  142.     F-78182 St Quentin-en-Yvelines Cedex
  143.     France                        
  144.     Phone: +33 (1) 30 64 82 00        
  145.     Fax:   +33 (1) 30 57 00 66        
  146.     Email: info@chorus.fr         
  147.  
  148.      Asia Pacific:
  149.     Chorus Systems KK
  150.     Mitsutake Building Ikejiri, 8F
  151.     3-22-4 Ikejiri, Setagaya Ku
  152.     Tokyo 154
  153.     Japan
  154.     Phone: +81 (3) 5430-1131
  155.     Fax:   +81 (3) 5430-1133
  156.     Email: info-ap@chorus.com
  157.  
  158. 1.4. Disclaimer & Copyright
  159.      ---------------------
  160.   The author provides no warranty regarding the content of this document. 
  161. It is provided "as is" without express or implied waranty.
  162.  
  163.   Permisson to distribute this document, in part or full, via electronic
  164. means (emailed, posted or archived) or printed copy are granted providing
  165. that no charges are involved, reasonable attempt is made to use the most
  166. current version, and all credits notices are retained. For other distributions
  167. including incorporation in commercial products, such as books, magazine 
  168. articles, or CD-ROMs, you must get permission from the author first 
  169. (e-mail: chorus-adm@comp.lancs.ac.uk). 
  170.  
  171. 2. Documentation
  172.    =============
  173. 2.1. Documentation Available through Anonymous FTP
  174.      ---------------------------------------------
  175.   There are several technical reports on CHORUS available via anonymous
  176. FTP from Chorus systemes, France: ftp.chorus.fr [192.33.15.3],
  177. directory pub/chorus-reports (see the file "index" for an overview).
  178. A set of slides on CHORUS is also available in the directory 
  179. "pub/chorus-slides", documents CS-TR-92-64 (PostScript, versions 1-up 
  180. and 2-up). 
  181.  
  182.   Product Data Sheets are available (in ascii or PostScript format) in
  183. the directory "pub/chorus-datasheets".
  184.  
  185.   Those reports are available through the World Wide Web at Chorus 
  186. systemes: "ftp://ftp.chorus.fr/pub" or from the Web server at the 
  187. URL:"http://www.chorus.com".
  188.  
  189. 2.2. Papers on CHORUS
  190.      ----------------
  191. [Bricker, 1991] A. Bricker, M. Gien, M. Guillemont, J. Lipkis, D. Orr and
  192. M. Rozier, "A new look at micro-kernel-based UNIX operating systems:
  193. Lessons in performance and compatibility". Proc. of the EurOpen Spring'91 
  194. Conference, Tromsoe, Norway, 20-24 May 1991.
  195. Chorus Systems Technical Report CS-TR-91-7
  196.  
  197. [Coulson, 1994] Coulson G., and G.S. Blair. "Microkernel Support for 
  198. Continuous Media in Distributed Systems". Computer Networks and ISDN
  199. Systems, Special Issue on Multimedia, 1994; also available as internal
  200. report MPG-93-04, Computing Dept., Lancaster University.
  201.  
  202. [Gaultier, 1994] O. Gautier and Y. Metais. "Mise en Place d'une Plateforme
  203. CHORUS, Conception et Implementation d'un Ordonnanceur a Echeance au Sein 
  204. du Noyau Chorus". Memoire CNAM, Paris, March 1994.
  205.  
  206. CS/TR-94-82.1 "CHORUS Kernel v3 r5 for T425/T805 Connection Manager and
  207.         Aserver Library" (Internal Report)
  208.  
  209. CS/TR-94-81.1 "CHORUS Kernel v3 r5 for T425/T805 Host Server User's
  210.         Manual, Aserver Guide" (Internal Report)
  211.  
  212. 2.3. Other references
  213.      ----------------
  214. [Bradley, 1993] J Bradley Chen and Brian N Bershad
  215. "The Impact of Operating System Structure on Memory System Performance",
  216. ACM SIGOPS Dec. '93
  217.  
  218. [Coulouris, 1994] G. Coulouris, J. Dollimore and T. Kindberg. "Distributed
  219. Systems, Concepts and Design", Addison-Wesley, second edition, 1994.
  220.  
  221. [Douglis et al., 1992] Douglis, F., Kaashoek, M.F., and Tanenbaum,
  222. A.S.: "A Comparison of Two Distributed Systems: Amoeba and Sprite,"
  223. Computing Systems, vol. 4, Fall 1991 (sic).
  224.  
  225. [Dean, 1992] R. Dean and F. Armand. "Data Movement in Kernelized Systems".
  226. Proceedings of the USENIX Workshop on Micro-Kernels and Other Kernel 
  227. Architectures, pp. 243-261, April 1992.
  228.  
  229. [Tanenbaum, 1992]  Andrew S. Tanenbaum: "Modern Operating Systems",
  230. Prentice-Hall, 1992.
  231.  
  232. [Tanenbaum, 1994] Andrew S. Tanenbaum, "Distributed Operating Systems", 
  233. Prentice-Hall, ISBN 0-13-219908-4
  234.  
  235. [Tanenbaum, 1995] Andrew S. Tananbaum, "A Comparison of Three Microkernels",
  236. The Journal of Supercomputing, vol 9, number 1, ISSN 0920-8542, 1995.
  237.  
  238. 2.4. Press references
  239.      ----------------
  240. BYTE, Jan 94 issue:
  241.       - "Small Kernels Hit it Big" (by Peter Varhol, p. 119, 6 pages), and
  242.       - "The Chorus Microkernel" (by Dick Pountain, p. 131, 4 pages)
  243.     (a color reprint of these articles is available upon request
  244.     from Chorus Systems.)
  245.  
  246. BYTE, Feb 95 issue:
  247.       - "Novell's Campaign" (by Jon Udell, p. 43, 11 pages)
  248.     CHORUS is mentioned in this article as being the basis for
  249.     the microkernel underpinning the UnixWare and NetWare personalities.
  250.  
  251. BYTE, Mar 95 issue:
  252.       - "Europe's Chip Challenge" (by Dick Pountain, p. 19, 5 pages)
  253.     CHORUS is mentioned in this article on the CEC's Open Microprocessor
  254.     Initiative (OMI) as the microkernel being used and enhanced within
  255.     various OMI projects.
  256.  
  257. 3. Chorus Product Offering
  258.    =======================
  259. 3.1. Overview
  260.      --------
  261.   CHORUS/Micro is a very small (10K) hard real-time embedded kernel 
  262. typically used in low-cost, dedicated application environments needing 
  263. minimal functionality and a minimum memory footprint, such as line cards, 
  264. portable phones, and hand-held devices. 
  265.  
  266.   CHORUS/ClassiX is host-target cross-development environment for
  267. C++ or C written applications, named C_actors. C_actors can be loaded,
  268. unloaded and debugged dynamically from the host (e.g. SPARCstation/SunOS) 
  269. on the target (e.g. ix86 PC/AT), interconnected via Ethernet. 
  270. C_actor applications can interoperate with UNIX on the host
  271. through TCP/IP sockets and NFS. On the target, there is only the
  272. CHORUS/Nucleus microkernel and the CHORUS/C_actor subsystem but
  273. no CHORUS/MiX UNIX System V subsystem.
  274. CHORUS/ClassiX is available for i386/i486/Pentium (PC/AT), mc68040
  275. (MVME167), mc68360 (QUADS) Micro-SPARC-1/-2 (FORCE CPU-3CE/-5CE,
  276. SPARCclassic, SPARCstation 5, SPARCengine 5) and T425/T805/T9000
  277. (SGS-Thomson INMOS boards).  More informations can be found at the
  278. following URL: http://www.chorus.com/Products/Datasheets/classix.html.
  279.  
  280.   CHORUS/MiX V.4 is a distributed multi-server implementation of 
  281. UNIX SVR4.0 on top of the CHORUS microkernel). E.g. on a 386/486 PC/AT, 
  282. it offers binary compatibility with native SVR4.0v4. MiX V.4 requires a  
  283. Novell/USG SVR4.0 source license. More information on this product can
  284. be found at http://www.chorus.com/Products/Datasheets/mixv4.html.
  285.  
  286.   CHORUS/COOL is a distributed programming environment for object-oriented
  287. applications. CHORUS/COOL supports the dynamic creation of C++ objects,
  288. these objects can be invoked, using C++ mechanism in a system wide
  289. transparent way. Objects can migrate, and remain persistent unless
  290. explicitly deleted.  The programming model used is based on the Object
  291. Management Group's architecture (OMG). 
  292.  
  293.   CHORUS/COOL-ORB is an OMG-CORBA compliant Object Request Broker. It is
  294. available for CHORUS/Fusion, CHORUS/ClassiX, CHORUS/MiX V.4, SCO UNIX,
  295. SunOS 4.1, Solaris, Linux, AIX, Windows95 and WindowsNT. More information 
  296. concerning this product can be found at the following URL: 
  297. http://www.chorus.com/Products/Datasheets/coolorb.html
  298.  
  299.   CHORUS/JaZZ is an implementation of the Java runtime and selected 
  300. components of the JavaOS that have been integrated into CHORUS/ClassiX 
  301. as an operating system personality. CHORUS/JaZZ extends CHORUS/ClassiX
  302. with a Java "Virtual Machine" personality including all standard Java 
  303. containers and classes such as windows, threads, I/O, exceptions and 
  304. network. More information on this product can be found at the following
  305. URL: http://www.chorus.com/Products/Datasheets/jazz.html.
  306.  
  307.   CHORUS/Harmony includes C , C++, and Embedded C++ optimizing compilers, 
  308. tool chains (assemblers, linkers, utility programs) profilers, runtime 
  309. error checkers, simulators and kernel debuggers. All of the Integrated 
  310. Development Environment components share a common GUI and communicate 
  311. with each other for enhanced functionality. 
  312.  
  313. 3.2. Offering for Universities
  314.      -------------------------
  315.   Chorus Systems has special programs for universities. More information 
  316. on offerings, conditions, etc is available via ftp (ftp://ftp.chorus.fr)
  317. in the following ASCII files:
  318.     - pub/README
  319.     - pub/academic/README
  320.     - pub/academic/offerings
  321.  
  322.   If you have questions, you may contact Didier.Irlande@chorus.fr.
  323.  
  324.  
  325. 4. CHORUS Microkernel
  326.    ==================
  327. 4.1. General
  328.      -------
  329.     * What is a microkernel?
  330.     A "microkernel" is an operating system with only the essential services, 
  331.     such as interprocess communication, short-term scheduling, and memory 
  332.     management.  It basically provides the process abstraction and a means 
  333.     for processes to communicate. It is designed to be portable between 
  334.     computer architectures, using high-level languages such as C or C++ and
  335.     reducing the machine-dependant component to a minimal bottom layer.
  336.     The microkernel appears as a layer between the hardware layer and a 
  337.     layer consisting of system components called 'subsystems'.
  338.     Their size can vary from about 10Kb to several hundred kilobytes 
  339.     of executable code and static data.
  340.  
  341.     * Synchronisation primitives offered to CHORUS threads?
  342.     The CHORUS microkernel (v3 r5.x) offers the following synchronisation
  343.     primitives:
  344.     - mutexes
  345.     - (counting) sempahores
  346.     - spin locks (supervisor applications only)
  347.     - mini messages (supervisor applications only)
  348.  
  349.     Other synchronisation primitives such as condition variables and
  350.     reader/writer locks can be built on top of those basic primitives.
  351.  
  352.     * Do CHORUS threads support specific data?
  353.     Yes. The microkernel supports so-called "software registers".
  354.     Each thread has two software registers which are systematically 
  355.     saved/restored by the microkernel upon a thread context switch. 
  356.     The software registers can be read/written through threadStoreR(K) 
  357.     and threadLoad(K) system calls.
  358.     A software register typically contains a pointer to a per-thread
  359.     private data area. Via software registers, one can implement e.g.
  360.     a per-thread value of "errno".
  361.  
  362.     * Distributed synchronization service on top of the CHORUS microkernel?
  363.     This work is part of a PhD thesis undertaken by Stephane Eranian 
  364.     <eranian@chorus.fr> implementing distributed synchronization service on 
  365.     top of the CHORUS microkernel. It implements pure mutex (no mr/sw).
  366.     The synchronization is achieved using a token-based algorithm through
  367.     a server. Its main role is to manage token creation, deletion and sharing 
  368.     among sets of clients. For more information contact S. Eranian.
  369.  
  370.     * Initialization of the context of an actor created with the actorCreate(K)
  371.     system call?
  372.  
  373.     To create an actor in CHORUS using actorCreate(K), the actor address
  374.     space must be empty (i.e. does not include any valid memory region). 
  375.     If you want to "fork" an actor, i.e. the new actor's code and data is
  376.     a copy of the main actor's code and data.
  377.  
  378.     In order perform address space duplication, you can use the rgnDup(K) 
  379.     service, just after having created the actor (and before having created
  380.     new regions: this operation is only valid on an empty address space).
  381.  
  382.     Before invoking rgnDup(K), you must specify for each region how the region
  383.     will be "duplicated": map (sharing), copy or not duplicated at all.
  384.     In order to do this, you have to get the list of your regions
  385.     (rgnStat(K)), and set the inheritance flags using rgnSetInherit(K).
  386.  
  387.     Note: an alternative to the rgnSetInherit/rgnDup scheme is to treat each 
  388.     region individually, using rgnMapFromActor(K) for shared regions,
  389.     and rgnInitFromActor(K) for copied regions.
  390.  
  391.     * Encryption mechanisms in CHORUS IPC?
  392.     CHORUS IPC does not provide any "encryption" mechanisms. Such mechanisms
  393.     can be implemented by applications.
  394.  
  395.     *  Given a set of actors and ports, what would happen if
  396.     one of the actors is stopped (with an actorStop) prior to an ipcSend().
  397.     Would all the other members of the port group receive the message or 
  398.     would the behavior of the kernel be different ?
  399.  
  400.     Depends on the mode set for the group, but if the group is in
  401.     broadcast mode all the members of the group should receive the message,
  402.     including ports belonging to actors in stopped state.
  403.  
  404.     *  Trap connection in supervisor actors using svTrapConnect(K) or 
  405.     scCallConnect(K)?
  406.  
  407.     - svCallConnect(int trapNb, KnCallEntry *table, uint entNb, int flag);
  408.     Connects a trap handler table to a specific trap number where each 
  409.     entry in the table contains a pointer to a function and the number of
  410.     arguments it takes. entNb is the number of entries in the table.
  411.     One thing to note is that svCallConnect()'s trap number is biased by the
  412.     constant TRAP_BASE (cf. cpu.h). That is, if you want to use interrupt 5, 
  413.     you would pass 5 to svCallConnect() and trigger the trap by executing
  414.     the assembly instruction: int $(5 + TRAP_BASE) after first loading 
  415.     %eax with the service you want. On ix86 the assembly file would be 
  416.     something like:
  417.  
  418.     .globl DoSomething
  419.     DoSomething:
  420.     movl $0, %eax    ; index of the call in the table in eax
  421.     int $(TRAP_BASE + trapNb)
  422.     ret
  423.  
  424.     If you have access to CHORUS sources you can look at how the CHORUS 
  425.     libraries are built (i.e. lib/mklib or lib/mkslib).
  426.  
  427.     - svTrapConnect(uint trapNb, KnHdl func) connects a trap handler taking 
  428.     two arguments (thread context and interrupt number) to a the hardware 
  429.     trap trapNb (trapNb is an absolute value in this case). The assembly 
  430.     code to generate the trap would be similar to the code mentioned 
  431.     for svCallConnect for ix86 architectures. On other architectures you can
  432.     either look at how kernel libraries are built if you have access to the
  433.     source code, otherwise look at the processor reference manual or try 
  434.     disassemble a kernel library.
  435.  
  436. 4.2. Supported Microprocessors
  437.      -------------------------
  438.   Various versions of the CHORUS microkernel have been ported to a
  439. variety of microprocessors, either by Chorus Systems or by its 
  440. clients:
  441.  
  442.     - i386/i486/Pentium (various PC/ATs)
  443.     - mc68030/mc68360/mc68040 (MVME147S, QUADS, MVME167S)
  444.     - mc88k
  445.     - SPARC (SPARCstation SLC, SPARCstation Classic, SPARC CPU-3CE)
  446.     - transputer T425/T805/T9000
  447.     - R3000/R4000 (Sony 3410)
  448.     - PA-RISC (HP 9000/834 and 9000/720)
  449.     - YMP (Cray YMP)
  450.  
  451. 4.3. Porting on various platforms
  452.      ----------------------------
  453.     * Chorus on Macintosh?
  454.     The INT (Institut National des Telecommunications, Evry, France) has
  455.     ported the v3 r3 version of the CHORUS microkernel to a Macintosh II CX
  456.     (mc68030-based). CHORUS and MacOS coexist and cooperate on the same
  457.     hardware.
  458.     The paper "Cohabitation and Cooperation of Chorus and MacOS", by
  459.     Christian Bac and Edmond Garnier, was presented at the Usenix Symposium
  460.     on Microkernels and Other Kernel Architectures in Sep 93 in San Diego.
  461.     You can find the paper in the proceedings. It is available from 
  462.     ftp.int-evry.fr:/pub/systeme.
  463.  
  464.     In the same directory you will also find another paper on the same
  465.     subject: "ChorusToolbox : MacOS running on top of Chorus", by Christian
  466.     Bac and Hong Quang Nguyen from INT. This paper was presented at SUUG'94
  467.     in April 94 in Moscow.
  468.  
  469.     * CHORUS on transputers?
  470.     Archipel, Chorus and SGS/Thomson Inmos have ported the CHORUS
  471.     microkernel and the CHORUS/MiX V.3.2 subsystem (SVR3.2 compatible) to
  472.     T425 and T805 transputers. This was done in the context of the Esprit
  473.     project "Harmony" (EC-funded R&D). Initially, a T9000 port was planned to
  474.     be available by now. Due to a delay in the availability of the T9000,
  475.     the CHORUS port (which is underway now), has shifted as well.
  476.       Inmos and Chorus have been working together in order to assure that
  477.     CHORUS/MiX (i.e. UNIX) will run in an optimal manner on the T9000.
  478.  
  479.     * CHORUS on 64-bit architecture?
  480.     CHORUS has been ported to DEC's Alpha, Cray Research's YMP and 
  481.     MIPS' R4000.
  482.  
  483.     * Port of CHORUS on HP-PA?
  484.     On December 1st Jon Inouye <jinouye@cse.ogi.edu> wrote:
  485.  
  486.         Prof. Jonathan Walpole supervised a port of the CHORUS v3.3 
  487.         nucleus to the Hewlett-Packard 9000/834 workstation from late 
  488.         1990 to mid-1991. This was part of a funded research project 
  489.         to evaluate the CHORUS operating system with respect to the 
  490.         Hewlett-Packard PA-RISC architecture. The nucleus did not 
  491.         support any disk/network drivers and performed all console/
  492.         keyboard I/O though IODC (PROM) routines. A CHORUS/MiX V.3.2 
  493.         Process Manager (PM) port was partially completed to the point 
  494.         where UNIX shells and certain system calls were supported ... 
  495.         but not a UNIX file system.
  496.  
  497.         Since then, I have been porting Chorus/MiX V.3.2 (with the v3.4 
  498.         nucleus) to the HP 9000/720. Since I am performing this port in 
  499.         my spare time it is not progressing very fast. The v3.4 nucleus 
  500.         runs along with a serial driver. It lacks other device drivers, 
  501.         FP emulation support (though basic FP operations are supported) 
  502.         and still uses the old HP-UX PDIR structure rather than the more 
  503.         recent HPT. The Ethernet driver is still being debugged as is an 
  504.     ancient version of the MiX V.3.2 PM. The port is being used for 
  505.         virtual memory experiments.
  506.  
  507.         Both ports use a considerable amount (over 40,000 lines combined) 
  508.         of HP-UX source code for the assembly language utilities, boot up, 
  509.         I/O initialization, and device drivers. The 834 port uses a Tut 
  510.         (HP-UX 2.0 modified to run Mach 2.0) base and the 720 port uses 
  511.         a HP-UX 8.0 base. For this reason, we have not been able to release 
  512.         anything because of all the legal implications ... HP, Chorus, USL 
  513.         copyrights.
  514.  
  515.         The evaluation is available as a series of OGI technical reports 
  516.         which can be obtained via anonymous ftp from cse.ogi.edu (129.95.20.2)
  517.         in the directory /pub/tech-reports or via the URL:
  518.         "http://www.cse.ogi.edu/DISC/projects/pa-chorus/pa-chorus.html".
  519.  
  520.     * Are PCI-bus devices supported on ix86?
  521.     PCI devices, like video and IDE, whose I/O mode is compliant with ISA,
  522.     are supported; they are just seen as ISA adapters.
  523.       PCI devices which are not ISA compliant (e.g. the SCSI controller
  524.     and/or the Ethernet controller on some COMPAQs) are not supported;
  525.     supporting them would require modifications in the driver code (and
  526.     possibly also in the CHORUS microkernel code).
  527.  
  528. 4.4. Scheduling and real-time
  529.      ------------------------
  530.     * Scheduling mechanisms and scheduling policies
  531.     The CHORUS microkernel makes a distinction between scheduling mechanism
  532.     and scheduling policies. The core scheduler within the microkernel does
  533.     pure preemptive scheduling (SCHED_FIFO in POSIX RT terms). On top of
  534.     that, different scheduling policies can be implemented in the form of
  535.     scheduling classes; each class communicates with the core scheduler and
  536.     can make its own scheduling decisions within that class based upon
  537.     attributes (priorities, deadlines, etc) and behaviour (time-slicing,
  538.     SCHED_RR, ...).
  539.       Today, 4 scheduling classes are provided: a default class and the 3
  540.     UNIX SVR4 classes (SVR4_TS, SVR4_RT and SVR4_SYS). Work is in progress
  541.     for additional classes (deadline, fair-share, etc) cf the work done 
  542.     by Olivier Gaultier and Olivier Metais at CNAM Paris on the implementation
  543.     of an EDF (Earliest Deadline First) policy in the CHORUS kernel.
  544.  
  545.     * Relative cost of context switch between user and supervisor threads?
  546.     User threads/actors have their own address spaces, and are protected
  547.     from other user address actors.
  548.     Supervisor threads/actors all share the supervisor address space,
  549.     each supervisor actor has its own "slot" in the supervisor address
  550.     space.
  551.  
  552.     For comparison, let's take:
  553.         [U] a context switch between 2 user threads in different user 
  554.             actors,
  555.         [S] a context switch between 2 supervisor threads in different
  556.             supervisor actors
  557.  
  558.     Unlike [U], [S] does not require the saving/restoring of the memory
  559.     context, so [S] is less costly. For the CHORUS/Nucleus v3 r5.2 on 
  560.     a i486/50MHz, the ratio [U]/[S] is 1.57.
  561.  
  562.     * How to measure Interrupt latency?
  563.     The easiest way is to connect an interrupt handler to a hardware timer.
  564.     As soon as the handler is activated, the handler will measure the current
  565.     time and then wake-up a thread, e.g. by doing a V on a semaphore. The
  566.     thread, when returning form its P operation on the same semaphore, will
  567.     also measure the current time. The difference between these 2 time
  568.     measurements is the latency.
  569.  
  570.     If you are using CHORUS/ClassiX or CHORUS/MiX V.4, you should take a
  571.     look at one of the example applications in the tutorial, named ILD
  572.     (Interrupt Latency Demo) which does exactly this work.
  573.  
  574.  
  575. 4.5. CHORUS on Transputers
  576.      ---------------------
  577.     * On transputers, how to communicate from CHORUS to UNIX (SunOS)?
  578.     There is no standard way to do this with CHORUS. This is the kind of 
  579.     things CHORUS/MiX is there for. 
  580.     Specific to transputer, you can use emulated links. On your 
  581.     workstation run a daemon, the "Aserver", which comunicate
  582.     with your b300 box. Together they emulate transputer virtual links 
  583.     over TCP/IP. These links can then be used by transputer and Unix 
  584.     applications to communicate. For details on how to do that, see 
  585.     the sections on the Aserver in the CHORUS documentation (CS/TR-94-82.1
  586.     and CS/TR-94-81.1).
  587.  
  588.     * Use of the INMOS RTL for the C-toolchain to work with sockets?
  589.     [Answer on Dec. 6, 1994 from B. Wipfel <raw@unislc.slc.unisys.com>]:
  590.  
  591.       Guessing that you want to make socket calls from one of your actors,
  592.     and have the B300 handle them in the normal way, the trouble is that
  593.     the transputer implementation of CHORUS uses AServer, not IServer. 
  594.     Since AServer communication is encapsulated in IServer MEGA_PACKETS, 
  595.     the B300 never gets to see any of the socket packets and passes 
  596.     everything to the host. 
  597.  
  598.     A real option is to write a new AServer server to provide your socket 
  599.     service. In this case, all communication will go to the host, and it 
  600.     will make the socket calls on behalf of your actor in the target system. 
  601.     The B300 wouldn't be involved, other than maintaining normal AServer 
  602.     communication with the host. This is kind of a shame, since the B300 
  603.     has the necessary functionality.
  604.  
  605.     A last option might be to use a second root link. Wire up two links 
  606.     from the B300 to your transputer network. Boot the network via one of 
  607.     the links. Configure the second link as a network "EDGE". Have your 
  608.     actor connect to the edge link with one of the AServer routines; 
  609.     something like cmLinkOpen("/dev/raw/00") ? Once the link is open, and 
  610.     you have the channel pointers, it might be possible to attach the 
  611.     socket library channels to these channels. You'll need to do 
  612.     communication via CHORUS' channel I/O routines however. 
  613.  
  614.     * If we have made ourselves a sockgateway process, configured in 
  615.     the .cfs file as:
  616.      ....
  617.     interface(input fromhost, output tohost,
  618.           input formChorus,
  619.           output toChorus);
  620.  
  621.     Where do we connect the input and outputs ?
  622.     [Answer on Nov. 25, 1994 from N. Stephen <stephen@osf.org>]:
  623.  
  624.       I don't know what release you might have, but look up the #device 
  625.     primitive in the build tool users manual. This primitive allows you 
  626.     to attach native transputer processes' channels (which normally 
  627.     control devices) to the CHORUS world, and does all the necessary 
  628.     wiring so that these channels are accessible from the connection 
  629.     manager. There may also be an example of this being done in one 
  630.     of the tutorials, if you have them with your release - the CHORUS 
  631.     Nucleus Tutorial (2), mixing CHORUS and Native transputer code.
  632.  
  633. 4.6. Comparison with other OS
  634.      ------------------------
  635.     * differences between Mach and CHORUS?
  636.     There are a lot of similarities between the concepts of the 
  637.     CHORUS v3 r5 microkernel and the Mach 3.0 microkernel: IPC, threads, 
  638.     memory management. 
  639.  
  640.     See [Dean, 92] (cf. section 2.3) for more elements of comparison 
  641.     between the two kernels.
  642.  
  643.     (For comparison with other kernels see [Tanenbaum, 1994],
  644.     [Tanenbaum, 1995] in section 2.3)
  645.  
  646.  
  647. 4.7. Performances
  648.      ------------
  649.     * Is there any system for performance analysis?
  650.     As far as the CHORUS microkernel applications ("actors") are 
  651.     concerned, the CHORUS/Profiler and the CHORUS benchmarks can be 
  652.     used.
  653.     The CHORUS/Profiler allows one to obtain and display symbolic
  654.     call-graph profile data for actors (similar to UNIX' gprof(1)):
  655.     callers, calllees, absolute and relative time spent in different
  656.     procedures within one actor. Actors are to be compiled with the 
  657.     -p option.  The profiler consists of a supervisor actor (PROF) 
  658.     plus 2 CHORUS/MiX utilities.  Profiling be can enabled/disabled 
  659.     dynamically using the CHORUS/MiX utility profctl(1).  profctl(1) 
  660.     stores the raw profiling data in a UNIX file, which can then be 
  661.     exploited by the report generator profrpg(1) in order to produce 
  662.     a human-readable profile report. See ftp.chorus.fr:/pub/chorus-
  663.     datasheets/Profiler_v3_r4.{ascii,ps.Z}.
  664.     CHORUS benchmarks allow you to get performance figures for 
  665.     individual microkernel system calls. For some system calls, like 
  666.     ipcSend(K), you get performance figures for different cases/parameters 
  667.     (small/medium/big message sizes). These basic figures can also help 
  668.     you to analyse and tune the performance of your microkernel applications.
  669.  
  670.     In the context of the ESPRIT project Ouverture, Alcatel, Siemens and
  671.     Chorus have designed and implemented so-called hooks for monitoring 
  672.     and debugging in the CHORUS microkernel. These hooks are a clean set 
  673.     of new microkernel system calls which allow monitoring and debugging 
  674.     tools (e.g., PATOC, PARTAMOS) to be informed about the occurrence of 
  675.     events they're interested in (context switch, message arrival, thread
  676.     creation, etc). They will be available in a future CHORUS product
  677.     release.
  678.  
  679.     PATOC is a graphical tool (Motif-based) that allows to monitor 
  680.     applications running on CHORUS. It is event based and is able 
  681.     to display its information is various forms (diagrams, bar-charts 
  682.     etc). PATOC is not a product but rather a working prototype. 
  683.  
  684. 4.8. Object Oriented Issues
  685.      ----------------------
  686.     * How is CHORUS Object-Oriented?
  687.     The major part (>90%) of the CHORUS microkernel is written in C++. 
  688.     OO techniques are used in the implementation of the microkernel, but the
  689.     API exported by the microkernel is a traditional procedure call based
  690.     interface (like UNIX).
  691.  
  692. 5. OS Personalities
  693.    ================
  694. 5.1. OS personalities available on top of CHORUS?
  695.      -------------------------------------------
  696.   Chorus Systems has developed the following personalties:
  697.  
  698.     - SVR4.0
  699.     - SVR3.2
  700.     - SCO ODT 3.0
  701.     - BSD4.3
  702.     - object-oriented (CHORUS/COOL)
  703.     - POSIX real-time (POSIX 1003.1b/.1c, former .4/.4a)
  704.  
  705.   Others have developed, or are developing, personalities for SVR4.2 MP,
  706. UNICOS, MacOS, CHILL, ESTEREL, TINA DPE, and a number of (proprietary) 
  707. real-time OSs.
  708.  
  709. 5.2. CHORUS/MiX V.3.2
  710.      ----------------
  711.  
  712.     * What is the link between a u_thread and a kernel thread?
  713.     A u_thread is an abstraction, created by the CHORUS/MiX V.3.2
  714.     subsystem, on top of the microkernel threads (like a UNIX process 
  715.     is created on top of a CHORUS actor).  Each u_thread is mapped 1-1 
  716.     to a microkernel thread. A u_thread has some UNIX-specific attributes, 
  717.     like signal context, which is managed at the CHORUS/MiX subsystem 
  718.     level, as an added value w.r.t. a microkernel thread.
  719.  
  720.     * Which synchronisation primitives are offered to u_threads?
  721.     Sempahores and mutexes.
  722.  
  723.     * Do u_threads support Thread Specific Data?
  724.     Yes, through the threadsafe C library (c_threadPrivate(3CT),
  725.     c_getPrivate(3CT)). These functions are in fact built on top of the
  726.     software registers described for the kernel threads (cf 4.1).
  727.  
  728.     * How are u_threads scheduled?
  729.     By the microkernel, just like any other thread.
  730.     If one want to implement N user level threads on top of 1 kernel 
  731.     thread, he need a user level scheduler in some kind of run-time 
  732.     library (just like an Ada run-time schedules multiple Ada tasks 
  733.     within one Ada program).
  734.  
  735.     * Is there a way to calculate the size of a u_thread stack?
  736.     For dynamic calculation, the best approach is probably to fill 
  737.     the stack you allocate with a specific pattern, and then at 
  738.     run-time (or at thread termination) control which part of the 
  739.     stack still contains the pattern. This allows to calculate 
  740.     which part of the initial stack has (not) been used.
  741.  
  742.     To detect a stack overflow, the classical approach is to surround 
  743.     the stack by some chunks of memory that are mapped read-only.
  744.  
  745.     * Is it better to put the thread stack in the data segment or in 
  746.     the heap area?
  747.     The only advantage of putting it on the heap is that the corresponding
  748.     memory can be allocated (and freed) dynamically, according to the
  749.     application's run-time behaviour and needs. If you allocate it as 
  750.     data, the corresponding memory is always allocated, even if your 
  751.     thread doesn't exist yet/anymore.
  752.  
  753.     * What are the differences between an u_thread and a c_thread?
  754.     The c_threadXxx(3CT) interface is a library, built upon the 
  755.     u_threadXxx(2C) interface, and is inspired by early drafts of 
  756.     the POSIX pthreads interface (POSIX 1003.4a, later renamed to 
  757.     .1c). It offers a higher level interface than u_threadXxx(2C), 
  758.     e.g.:
  759.  
  760.     - when creating a c_thread the library creates the stack 
  761.       for you, while for a u_thread you have to allocate the 
  762.       stack yourself,
  763.     - there is a routine allowing one c_thread to wait for the 
  764.       termination of another c_thread (c_threadJoin),
  765.     - there are routines to allocate and access per c_thread 
  766.       private global data.
  767.  
  768.  
  769. 5.3. CHORUS/COOL-ORB
  770.      ---------------
  771.  
  772.     * How can I write an CORBA::Any to a file and reading it back
  773.     from file without any knowledge about the type?
  774.  
  775.     Reply from <ciceron@chorus.fr> on July 25th:
  776.     The idea is to fill an area of memory with the any value. The
  777.     memory must be filled in the same way COOL builds its
  778.     communication messages. Once the memory image is built, you
  779.     simply have to write it. On the same idea you can read back
  780.     the any. With this scheme, you don't need to cope with the
  781.     type of the any (and you may also not have it). 
  782.  
  783.  
  784.     I've written a small persistent generic distributed database
  785.     on top of CHORUS/COOL ORB. It uses this technique which works
  786.     very well. (This is not CORBA but... it's cool)
  787.  
  788.     Here is how you could write:
  789.  
  790.     CORBA_Any any = ...
  791.     long size = ::marshalSize(any);
  792.  
  793.     COOL_ComBufDesc buffer(size);
  794.     buffer <<= any;
  795.  
  796.     write(fd, buffer.buffer(), size);
  797.  
  798.     Here is how you could read:
  799.  
  800.     struct stat st;
  801.     fstat(fd, &st);
  802.  
  803.     COOL_ComBufDesc buffer(st.st_size);
  804.     read(fd, buffer.buffer(), st.st_size);
  805.  
  806.     CORBA_Any any;
  807.     buffer >>= any;
  808.  
  809.     * Array/sequences manipulation with CHORUS/COOL.
  810.  
  811.     From <ciceron@chorus.chorus.fr> Mon Sep  2, 1996:
  812.     Here is the solution for COOL ORB. With COOL you can take
  813.     the address of the first element of the array and use it as the
  814.     beginning of the buffer holding the sequence. For example:
  815.  
  816.     // IDL:
  817.     typedef sequence<octet> OctetSeq;
  818.  
  819.     // C++
  820.     OctetSeq* seq = ...;    // Passed to the server implementation 
  821.  
  822.     // CORBA [] operator returns a reference to the first element
  823.     CORBA_Octet& o = (*seq)[0];
  824.  
  825.     // Convert to a pointer and you get the begining of the buffer
  826.     CORBA_Octet* p = &o;
  827.  
  828.     You can then optimize the extraction of your data...
  829.  
  830.     * list of platforms supported for CHORUS/COOL?
  831.  
  832.     For an up to date list you can look at the chorus web site at 
  833.     <http://www.chorus.com/> in the COOL section. The list of 
  834.     platforms supported by CHORUS/COOL r3.1 is the following:
  835.  
  836. +----------------------------------------------------------------+
  837. | System                        | Compiler       | Type          |
  838. |----------------------------------------------------------------|
  839. | AIX 2.3                       | gcc 2.7.2 g++  | mono-threaded |
  840. |----------------------------------------------------------------|
  841. | ClassiX r2.3 for i386at       | Dev System r1.1| multi-threaded|
  842. |----------------------------------------------------------------|
  843. | ClassiX r2.3 for MVME167      | Dev System r3.1| multi-threaded|
  844. |----------------------------------------------------------------|
  845. | ClassiX r3.0 for i386at       | Dev System r4.0| multi-threaded|
  846. |----------------------------------------------------------------|
  847. | Fusion r2                     | SCO C++ 3.1.1  | multi-threaded|
  848. |----------------------------------------------------------------|
  849. | Linux 1.2                     | gcc 2.7.2 g++  | mono-threaded |
  850. |----------------------------------------------------------------|
  851. | SCO OpenDesktop 3.0           | SCO C++ 3.1.1  | mono-threaded |
  852. |                               ---------------------------------|
  853. |                               | gcc 2.7.2 g++  | mono-threaded |
  854. |----------------------------------------------------------------|
  855. | SCO OpenServer 5.0            | SCO C++ 3.1.1  | mono-threaded |
  856. |                               ---------------------------------|
  857. |                               | gcc 2.7.2 g++  | mono-threaded |
  858. |----------------------------------------------------------------|
  859. | Solaris 2.5                   | Sparc C++ V4.1 | mono-threaded |
  860. |                               ---------------------------------|
  861. |                               | Sparc C++ V4.1 | multi-threaded|
  862. |                               ---------------------------------|
  863. |                               | gcc 2.7.2 g++  | mono-threaded |
  864. |----------------------------------------------------------------|
  865. | SunOS 4.1.3                   |Sparc C++ V2.0.1| mono-threaded |
  866. |                               ---------------------------------|
  867. |                               | gcc 2.7.2 g++  | mono-threaded |
  868. |                               ---------------------------------|
  869. |                               |Sparc C++ V4.0.1| mono-threaded |
  870. |----------------------------------------------------------------|
  871. |Windows NT, Windows 95         | Visual C++ 4.0 | mono-threaded |
  872. |                               ---------------------------------|
  873. |                               | Visual C++ 4.0 | multi-threaded|
  874. +----------------------------------------------------------------+
  875.  
  876.     * Implementation of COOL_Mutex and COOL_Sem?
  877.  
  878.     Reply from <ciceron@chorus.fr> on April 7, 1997:
  879.     COOL_Mutex/COOL_Sem are based on the underlying operating system
  880.     primitives. That is: mutexGet/mutexRel/semP/semV on CHORUS/OS,
  881.     mutex_lock/mutex_unlock/sema_wait/sema_post on Solaris 2.5, and others
  882.     on Windows etc...
  883.  
  884.     * How to compile the demo examples of CHORUS/COOL-ORB r4.1 for 
  885.     debugging purposes?
  886.  
  887.     You must use: make CXXDEBUGFLAGS="-g -O"
  888.  
  889.     * We are using Orbix 2.2 on NT 4.0, and want to create many CORBA objects
  890.     per process (at least several thousands to tens of thousands).
  891.     From our tests it seems that the time it takes to allocate such objects
  892.     is in linear relation to the number of objects.
  893.     Has anyone tackled this problem successfully ? Do other ORBs have a 
  894.     more efficient solution to this problem ?
  895.  
  896.     <From ciceron@dimba.chorus.fr Fri Aug 29, 1997>:
  897.     In COOL ORB, the registration depends on the OA that you are using.
  898.     The standard OA proposed by COOL uses a hash table for this. This scales
  899.     quite well. You can imagine to provide a new OA that registers in a binary
  900.     tree (balanced tree would be even better).
  901.  
  902.     To support billions of objects, you should have a look at the Variable 
  903.     Sized Object Reference feature that COOL ORB supports. A single servant 
  904.     can be used by many objects: the object reference always refers to the 
  905.     same servant BUT it also contains additional data which is specific to 
  906.     the object. Have a look at the 'simpleTree' demo which illustrates a 
  907.     binary tree and only one servant for referencing all the nodes. Your 
  908.     tree can contain billions of nodes, you will always have a single servant.
  909.  
  910.     In the next release, COOL ORB will propose a new OA that supports compounds
  911.     of servants. This will allow you to register many servants (any type) in 
  912.     a single registration call to the OA.
  913.  
  914.     Note that beside the performance aspect that you are facing, there is a 
  915.     memory problem too. Each time you register a servant, the OA needs to 
  916.     allocate some memory to record it. If you want to support billions of 
  917.     servants, you must consider this. Having a single servant for implementing
  918.     many objects is a first way to reduce the memory usage. Using the 
  919.     compounds OA is another way.
  920.  
  921.  
  922. 5.4. CHORUS/ClassiX
  923.      ---------------
  924.  
  925.     * I am trying to write an experimental network protocol on top of
  926.     CHORUS/Classix and found that I get Segmentation fault...
  927.  
  928.     <From maze@crf.canon.fr Tue Sep 30, 1997>:
  929.     Wrong Imakefile: the ndm library is missing in the libs part of the 
  930.     ClassiXSupProgramTarget macro.
  931.     As the actor is a relocatable supervisor actor, the ndmGetMajMin routine
  932.     is left undefined in the binary, leading to the segmentation fault.
  933.  
  934.     In you Imakefile you should have:
  935.  
  936.     SRCS = hello.c
  937.  
  938.     LIBS = $(MERGEDIR)/lib/ndmlib/ndmlib.s.a ClassiXSupLibs
  939.     ClassiXSupProgramTarget(hello, hello.o, , $(LIBS), ClassiXReloc)
  940.     DependTarget()
  941.  
  942. 6. Other software
  943.    ================
  944.  
  945.     * We are looking for a ISAM file library or a lightweight database 
  946.     (in terms of storage, runtime overhead and price!) running under CHORUS 
  947.     (or under BSD UNIX 4.2 if the source code is available).
  948.       So far, I found two candidate libraries. The first one is the famous
  949.     C-ISAM; However Informix doesn't sell this product anymore (at least not 
  950.     in Germany). The second one is called CQL++ of Machine Independent 
  951.     Software Corporation, Scottsdale, AZ. Has anyone heard of it or even 
  952.     used it in a software project, respectively?
  953.  
  954.     <From scrantr@ix.netcom.com, Wed Aug 27, 1997>:
  955.     Mix Software (Richardson, Texas) also sells for *cheap* an ISAM
  956.     database library using b+tree indexing.  Source is available,
  957.     and the package includes a nice manual describing the library.
  958.  
  959.     See http://www.mixsoftware.com/product/database.htm
  960.  
  961.