9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Ronald G Minnich <rminnich@lanl.gov>
To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu>
Subject: Re: [9fans] xcpu fix for Plan9.c
Date: Mon, 24 Oct 2005 08:46:47 -0600	[thread overview]
Message-ID: <435CF3D7.60004@lanl.gov> (raw)
In-Reply-To: <5c8bf6a8e08baeac5171626d7185d563@hera.eonet.ne.jp>

kokamoto@hera.eonet.ne.jp wrote:

> 1) why I got 131072 instead of 0 or 1?
>     Am I on the right way?

you are. I've had to go to this stilly numbering scheme to handle some 
LInux issues. It's a dentry cache thing, I can find the email and 
describe the problem if you wish. As nice as the dentry cache in Linux 
is, it is perilous when you venture outside its 'modus operandi'.

> 2) why the /mnt/cpu/131072/exec file accepts cp command
>     only once?

this is intentional. Consider the open of the clone file as a 'session'. 
In the original xcpu, as written by Vic Zandy, you could do all kinds of 
execs for a single session:
cp /bin/date exec
echo exec > ctl
cp /bin/whoami exec
echo exec > ctl

I initially copied this style for this implementation of xcpu.

There are lots of problems here, and it turned out to be simpler to just 
allow one and only one exec per session. Note that the child you start 
can also exec lots of things:
cp /bin/sh exec
echo exec > ctl

Please look at xsh.c -- it is what I am hoping people will actually use. 
The interface presented by the server is very low level -- by intent -- 
and xsh is something like what I think people will use.

Andrey starts here tomorrow,so we will be getting his help on this too :-)

Thanks so much for trying this out, and for getting your comments out to 
the list.

ron


  reply	other threads:[~2005-10-24 14:46 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-20  2:58 YAMANASHI Takeshi
2005-10-20 14:33 ` Ronald G Minnich
2005-10-20 15:40 ` Ronald G Minnich
2005-10-20 15:56   ` Ronald G Minnich
2005-10-22  3:43 ` kokamoto
2005-10-24 14:46   ` Ronald G Minnich [this message]
2005-10-25  2:24     ` Kenji Okamoto
2005-10-25  2:29       ` Kenji Okamoto
2005-10-25 20:56       ` Ronald G Minnich
  -- strict thread matches above, loose matches on Subject: below --
2005-10-24  1:01 YAMANASHI Takeshi
2005-10-21  5:55 YAMANASHI Takeshi
2005-10-21  4:24 YAMANASHI Takeshi
2005-10-21  4:31 ` Russ Cox
2005-10-21  2:14 YAMANASHI Takeshi
2005-10-24 14:40 ` Ronald G Minnich
2005-10-24 14:57   ` Lucio De Re
2005-10-24 15:06     ` Lucio De Re
2005-10-19 13:28 Ronald G Minnich

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=435CF3D7.60004@lanl.gov \
    --to=rminnich@lanl.gov \
    --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).