9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] xcpu fix for Plan9.c
@ 2005-10-21  4:24 YAMANASHI Takeshi
  2005-10-21  4:31 ` Russ Cox
  0 siblings, 1 reply; 18+ messages in thread
From: YAMANASHI Takeshi @ 2005-10-21  4:24 UTC (permalink / raw)
  To: 9fans

> Takeshi, the fixes are up on /n/sources/9grid/xcpu.tar

Thanks.  It compiles and runs fine now on Plan 9.

BTW, how can I make xcpusrv listening on the network?
I found "xcpusrv -s tcp!*!20001" in xcpu.pdf but
this only creates /srv/tcp!*!20001 on Plan 9.

Does p9p threadpostmountsrv() listen on the network,
if it is given a network address as the service name?
-- 
"on travel, off the network ... and a fossil in my pocket"




^ permalink raw reply	[flat|nested] 18+ messages in thread
* Re: [9fans] xcpu fix for Plan9.c
@ 2005-10-24  1:01 YAMANASHI Takeshi
  0 siblings, 0 replies; 18+ messages in thread
From: YAMANASHI Takeshi @ 2005-10-24  1:01 UTC (permalink / raw)
  To: 9fans

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

My observation was the same.  I usualy get 65536 at first.

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

"xcpu operation" section in xcpu.pdf describes this.

	A session allows a remote user (or program) to start
	a process or process tree for one binary, once.
	:
	We have adopted this simple rule, one xcpu-started process
	per session, to simplify system management:
-- 
"on travel, off the network ... and a fossil in my pocket"




^ permalink raw reply	[flat|nested] 18+ messages in thread
* Re: [9fans] xcpu fix for Plan9.c
@ 2005-10-21  5:55 YAMANASHI Takeshi
  0 siblings, 0 replies; 18+ messages in thread
From: YAMANASHI Takeshi @ 2005-10-21  5:55 UTC (permalink / raw)
  To: 9fans

On Fri Oct 21 13:31:40 JST 2005, Russ Cox wrote:
> > Does p9p threadpostmountsrv() listen on the network,
> > if it is given a network address as the service name?
> 
> Yes, it does, but that's not 100% by design.
 :
> In Plan 9,
> the kernel is expected to do that, so you'd do:
> 
>     xcpusrv -s myservice
>     aux/listen1 -v tcp!*!20001 /bin/exportfs -S /srv/myservice

Thanks.  It resulted in
	aux/listen1 -tv tcp!*!20001 /bin/exportfs -S /srv/myservice
because myservice was mode 600.

After this, I could mount the xcpusrv by
	9fs tcp!hostname!20001 /n/temp
-- 
"on travel, off the network ... and a fossil in my pocket"




^ permalink raw reply	[flat|nested] 18+ messages in thread
* Re: [9fans] xcpu fix for Plan9.c
@ 2005-10-21  2:14 YAMANASHI Takeshi
  2005-10-24 14:40 ` Ronald G Minnich
  0 siblings, 1 reply; 18+ messages in thread
From: YAMANASHI Takeshi @ 2005-10-21  2:14 UTC (permalink / raw)
  To: rminnich, 9fans

> This argv model was in the original xcpu stuff, should we really instead 
> be doing this:
> echo exec date > ctl, i.e. just require the args as part of the exec 
> command? It seems easier to me somehow to do it this way.

This model looks easier to me too.  I'm curious why the original
author didn't do it this way though.
-- 
"on travel, off the network ... and a fossil in my pocket"




^ permalink raw reply	[flat|nested] 18+ messages in thread
* Re: [9fans] xcpu fix for Plan9.c
@ 2005-10-20  2:58 YAMANASHI Takeshi
  2005-10-20 14:33 ` Ronald G Minnich
                   ` (2 more replies)
  0 siblings, 3 replies; 18+ messages in thread
From: YAMANASHI Takeshi @ 2005-10-20  2:58 UTC (permalink / raw)
  To: 9fans

> sorry about the error, I have put a fix (untested, no time this morning) 
> on /n/sources/9grid/Plan9.c

Thanks, but you forgot to put "int kidfds[3]" in, it seems.

=== 
void runit(void *ac) {
	Client *c = ac;
 :
	int kidfds[3];
=== 

With this addition in Plan9.c, I was able to run xcpusrv on Plan 9
while /n/xcpu/0/arch always returns "linux". :)

By the way, tokenize() in runit() will abort if c->argv is nil.
You can do this by issuing "echo exec > ctl" without
"echo something > argv" done beforehand.

Oh, one more thing in xcpu.pdf.

There seems to be a typo in the example for setting up argv on p.12.
	Next, argv:
	  for i in $NODES
	  do
	  echo date > /mnt/xcpu/0/xcpu/$i/exec&
	  done
	  wait

The file date is echoed should be argv, not exec.
-- 
"on travel, off the network ... and a fossil in my pocket"




^ permalink raw reply	[flat|nested] 18+ messages in thread
* [9fans] xcpu fix for Plan9.c
@ 2005-10-19 13:28 Ronald G Minnich
  0 siblings, 0 replies; 18+ messages in thread
From: Ronald G Minnich @ 2005-10-19 13:28 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

sorry about the error, I have put a fix (untested, no time this morning) 
on /n/sources/9grid/Plan9.c

ron


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2005-10-25 20:56 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-21  4:24 [9fans] xcpu fix for Plan9.c YAMANASHI Takeshi
2005-10-21  4:31 ` Russ Cox
  -- 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  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-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
2005-10-25  2:24     ` Kenji Okamoto
2005-10-25  2:29       ` Kenji Okamoto
2005-10-25 20:56       ` Ronald G Minnich
2005-10-19 13:28 Ronald G Minnich

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).