home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / minix / 4310 < prev    next >
Encoding:
Text File  |  1992-08-26  |  3.4 KB  |  67 lines

  1. Newsgroups: comp.os.minix
  2. Path: sparky!uunet!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!sun1.ruf.uni-freiburg.de!news.belwue.de!news.uni-tuebingen.de!wega!flebbe
  3. From: flebbe@wega.tat.physik.uni-tuebingen.de (Olaf Flebbe)
  4. Subject: Re: Basic MINIX ST questions (long)
  5. Message-ID: <flebbe.714822649@wega>
  6. Sender: news@softserv.zdv.uni-tuebingen.de (News Operator)
  7. Organization: TAT (Theoretical Astrophysics Tuebingen), U. of Tuebingen, FRG
  8. References: <1992Aug25.171217.4016@cci632.cci.com>
  9. Date: Wed, 26 Aug 1992 09:50:49 GMT
  10. Lines: 55
  11.  
  12. adw@cci632.cci.com (Allen Williams (co-op)) writes:
  13.  
  14.  
  15. > As the book was for the IBM PC, I have some questions about the Atari
  16. >specific version of Minix. These are basic questions but hopefully not
  17. >something people are tired of hearing:
  18.  
  19. >      I know there is no paging of memory for Minix, as there isn't
  20. >    any good hardware support. However, is memory accesses outside
  21. >    the process space restricted? Can I write an user program to
  22. >    diddle with the kernel or file system space? If so, is this
  23. >    just one of those things you're not supposed to do but can
  24. >    do anyway? If I access memory outside my program space, will a
  25. >    core dump be generated?
  26. Yes, you can access memory outside your private user space. But you
  27. are not supposed to do it. A bus error (causing an core dump)  will be
  28. generated simular to TOS if you want to read/write on memory below
  29. some magic address. esp. referencing NULL will do an core dump.
  30.  
  31. >    How are memory holes handled? I'm afraid I'm not clear on this
  32. >    feature. Is memory compacted as the holes become too small or
  33. >    too numerous, or does one have to reboot Minix when no new
  34. >    processes can be created due to none of the holes being big enough?
  35.  
  36. There is no memory garbage colletion. When a new process come into life,
  37. the kernel checks for the first chunk of memory which fits. One has to
  38. kill processes to if there are big holes left.
  39.     
  40. >    On the Atari, how is program expansion handled? For the IBM PC
  41. >    in the minix book, there is a system call called "brk" which will
  42. >    allow the program to grow upward toward the program stack. I think
  43. >    this was due to a limitation of the 286's 64k segmentation. I would
  44. >    think that Atari Minix won't have this limitation. Do I use a
  45. >    malloc() call, and the memory manager will allocate any free memory for
  46. >    my process, and not just the memory between my process and the stack?
  47.  
  48. Each program has a fixed upper limit for its memory. Each executable
  49. has this size written somewhere in the file.
  50. From this fixed amount sbrk (or brk) can get its memory. malloc is a
  51. library function calling brk(). There is a program called chmem which can
  52. increase/decrease the amount of memory which the program can allocate. 
  53.  
  54. [Hardware hacking]
  55. >    Perhaps a small controller could provide some rudimentary memory
  56. >    management, such as keeping track of the pages assigned and making
  57. >    sure that the cpu doesn't stray from the proper areas of memory
  58. >    it's supposed to access. It sounds like a bit of work, and I
  59. >    would like to hear of other people's efforts in this matter.
  60. If you want to design a mmu: Do it. Or change the 68000 to a 68030 and
  61. let the MMU do the work. I don't know whether the TT version of minix
  62. --which still doesn't exists officialy -- do some MMU work on this. Perhaps
  63. Frans Meulenbroeks can tell you something on the MMU.
  64. --
  65.   Olaf Flebbe,  Theoretische Astrophysik Tuebingen
  66.   Internet:     flebbe@tat.physik.uni-tuebingen.de
  67.