home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!mcrware!adam
- From: adam@microware.com (Adam Goldberg)
- Subject: Re: Does Linux use segmentation?
- Message-ID: <1992Nov11.163155.21867@microware.com>
- Sender: news@microware.com
- Nntp-Posting-Host: ren
- Organization: Microware Systems Corp., Des Moines, Iowa
- References: <1992Nov11.011359.27473@cbnewse.cb.att.com> <1dpov0INNqcu@agate.berkeley.edu> <1992Nov11.021246.3563@news.acns.nwu.edu>
- Date: Wed, 11 Nov 1992 16:31:55 GMT
- Lines: 38
-
- hpa@casbah.acns.nwu.edu (H. Peter Anvin N9ITP) writes:
-
- >In article <1dpov0INNqcu@agate.berkeley.edu> of comp.os.linux,
- > curtis@cs.berkeley.edu (Curtis Yarvin) writes:
- >> In article <1992Nov11.011359.27473@cbnewse.cb.att.com> sph1@cbnewse.cb.att.com (stephen.p.hill) writes:
- >> >
- >> >I get the impression that Linux uses combined paging and
- >> >segmentation, in fact that nearly all modern OSs use
- >> >the combination. Is this true?(the part about Linux)
- >>
- >> Like most modern OSs, Linux uses paging and avoids segmentation
- >> (for the most part) like the plague. This is because modern
- >> processors do not have segmentation, and it does not fit well
- >> with modern operating systems design.
- >>
-
- >However, the 386/486 DOES support segmentation. REAL segmentation, not the
- >crock used by the 8086/80286 to get around the 64K limitation, but
- >segmentation used for object isolation. It would be feasible, for example,
- >to have open() assign a segment descriptor and map a whole file into a
- >segment (using paging). Regular pointer constructs would then be used to
- >access the file (on disk) and close() would unmap the file. This idea was
- >incorporated in MULTICS, for example.
-
- Here's the rub, however.
-
- Using segments (as Intel hoped they'd be used) results in an OS which is
- slower and bigger. They add significant complexity which is (realisticaly)
- not needed (or desired). You really only _need_ them on a i{3,4}86 if
- you want to have a 48-bit address space, as opposed to a 32-bit. And
- since 2^32 = 4gigabytes...even being really optimistic about the future
- of desktop computers, 4GB is probably too much to think about exeeding
- in the (relatively) near future.
- --
- Adam G.
- adamg@microware.com, or ...!uunet!mcrware!adamg
- The above is not to be construed in any way as the official or unofficial
- statements of Microware, or any Microware employees.
-