9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Charles Forsyth <forsyth@terzarima.net>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] Current status of amd64 port?
Date: Fri, 16 Nov 2007 23:56:38 +0000	[thread overview]
Message-ID: <2ce97e3af2b99d137f6909c256ddaf00@terzarima.net> (raw)
In-Reply-To: <13426df10711161538q2b4fda69q1f37afbcaffecc74@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 536 bytes --]

no, i meant that on a page fault, fault.c just does much the same
read from the file that the system call would do, except it's more complicated to get there.
		ask = s->flen-soff;
		if(ask > BY2PG)
			ask = BY2PG;

		n = devtab[c->type]->read(c, kaddr, ask, daddr);
		if(n != ask)
			faulterror(Eioload, c, 0);

(and that's also true on SunOS, Solaris, and probably Linux, except that on some
it is really very complicated, not just more complicated than read.)
the thing that saves it is the Image cache off to the side.

[-- Attachment #2: Type: message/rfc822, Size: 4203 bytes --]

From: "ron minnich" <rminnich@gmail.com>
To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu>
Subject: Re: [9fans] Current status of amd64 port?
Date: Fri, 16 Nov 2007 15:38:17 -0800
Message-ID: <13426df10711161538q2b4fda69q1f37afbcaffecc74@mail.gmail.com>

On Nov 16, 2007 3:40 PM, Charles Forsyth <forsyth@terzarima.net> wrote:
> > that's a good question.  i suppose you could argue not since
> > a plan 9 kernel could get by without demand paging, it's just
> > one of the kernel's dirty little secrets.
>
> it isn't really mmap'd as such: it does a read from a file into memory
> so (as is usually the case on systems with mmap) it's quicker just to do
> the read yourself, rather than suffer the page fault too.

Well, I don't know Charles. When I was watching the page faults in the
ports I did, the first page fault was for address 0x1020, first
address in executable. I had assumed this was a demand paging case,
now you are going to force me to go look :-)

ron

  reply	other threads:[~2007-11-16 23:56 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-15 22:51 Anthony Sorace
2007-11-15 22:56 ` Uriel
2007-11-16  6:14   ` ron minnich
2007-11-15 23:14 ` Tharaneedharan Vilwanathan
2007-11-15 23:39   ` erik quanstrom
2007-11-16  0:10     ` Tharaneedharan Vilwanathan
2007-11-16  0:18     ` Anthony Sorace
2007-11-16  7:57     ` Robert William Fuller
2007-11-16 10:05       ` erik quanstrom
2007-11-16 10:20         ` Charles Forsyth
2007-11-16 22:38         ` ron minnich
2007-11-16 22:46           ` Tharaneedharan Vilwanathan
2007-11-16 23:20             ` erik quanstrom
2007-11-16 23:19           ` erik quanstrom
2007-11-16 23:40             ` Charles Forsyth
2007-11-16 23:38               ` ron minnich
2007-11-16 23:56                 ` Charles Forsyth [this message]
2007-11-16 23:54                   ` erik quanstrom
2007-11-17  0:14                     ` ron minnich
2007-11-17  0:23                       ` Charles Forsyth
2007-11-17  0:30                         ` ron minnich
2007-11-17  0:33                           ` erik quanstrom
2007-11-17  1:08                           ` Charles Forsyth
2007-11-17  6:38                             ` Geoffrey Avila
2007-11-16 14:41     ` David Leimbach
2007-11-16 14:46       ` erik quanstrom
2007-11-16 15:33         ` Wilhelm B. Kloke
2007-11-16 15:33         ` David Leimbach
2007-11-16 15:35           ` David Leimbach
2007-11-16 15:53           ` Charles Forsyth
2007-11-16 16:21             ` David Leimbach
2007-11-16  0:11 Joshua Wood
2007-11-16 14:43 ` David Leimbach
     [not found] <20071116170014.595B2108A1@mail.cse.psu.edu>
2007-11-16 23:10 ` Joshua Wood

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2ce97e3af2b99d137f6909c256ddaf00@terzarima.net \
    --to=forsyth@terzarima.net \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).