9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] FreeBSD 4.0 / Plan9 3rd ed.
@ 2000-09-01 22:56 forsyth
  2000-09-01 23:34 ` Alexander Viro
  0 siblings, 1 reply; 15+ messages in thread
From: forsyth @ 2000-09-01 22:56 UTC (permalink / raw)
  To: 9fans

>>thread==process. There is a rfork() equivalent (clone(2)) and model is
>>exactly the same as on Plan 9 (process as a set of components that can be
>>shared between several processes; fork() as a special case of more generic

no it is not equivalent.
would that it were.



^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: [9fans] FreeBSD 4.0 / Plan9 3rd ed.
@ 2000-09-02  7:30 nigel
  0 siblings, 0 replies; 15+ messages in thread
From: nigel @ 2000-09-02  7:30 UTC (permalink / raw)
  To: 9fans

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

I can confirm that it compiles under FreeBSD RELENG_4 (i.e the most
recent stable release of 4.1).


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

From: "Russ Cox" <rsc@plan9.bell-labs.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] FreeBSD 4.0 / Plan9 3rd ed.
Date: Fri, 1 Sep 2000 15:59:46 -0400
Message-ID: <200009012000.QAA26992@cse.psu.edu>

As far as drawterm is concerned, 
the latest update had patches to 
make drawterm work under FreeBSD
using the Posix thread library.

The Linux drawterm will not work
in most other places, even under 
binary emulation, because it depends
on the task segment selector as
a unique thread id.  This is the same
reason that the Inferno Linux binaries
don't work under other OSes with
Linux binary emulation.

Russ

^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: [9fans] FreeBSD 4.0 / Plan9 3rd ed.
@ 2000-09-01 22:04 jmk
  0 siblings, 0 replies; 15+ messages in thread
From: jmk @ 2000-09-01 22:04 UTC (permalink / raw)
  To: 9fans

Alexander Viro <viro@math.psu.edu>:
	>On Fri, 1 Sep 2000, Russ Cox wrote:
	>
	>> The Linux drawterm will not work
	>> in most other places, even under 
	>> binary emulation, because it depends
	>> on the task segment selector as
	>> a unique thread id.  This is the same
	>
	>Sorry? "other places" include 2.4, for one thing. Why using gross
	>architecture-dependent tricks, when PID is there? On Linux
	>thread==process. There is a rfork() equivalent (clone(2)) and model is
	>exactly the same as on Plan 9 (process as a set of components that can be
	>shared between several processes; fork() as a special case of more generic
	>operation that copies a subset of components and uses the old ones for the
	>rest, etc.)
	>
	>Use of TSS happened to work on x86 prior to 2.3.11 or so, but that relied
	>on the details of task_struct allocation. 2.4 has TSS-per-CPU  setup and
	>doesn't bother with changing the register at all - it's cheaper to do
	>everything by hands. Besides, it lifts the limit on number of processes
	>and allows to avoid quite a few TLB flushes.
	>
	>Use getpid() - it's at least more portable than %tss and definitely much
	>saner.
	>
	>> reason that the Inferno Linux binaries
	>> don't work under other OSes with
	>> Linux binary emulation.
	>
	>Ditto.

Phil Winterbottom and I did the original Inferno emulation port to Linux
in, I think, 1996 and that is where a lot of the drawterm code came from.
At that time few of the wonders you describe above were available. Sure, it's
a gross architecture-dependent trick but it was no worse than what we were
porting to at the time.

I'm glad there are now alternatives which could be used to rewrite the code
more portably, should anyone care to do so. Let's leave it at that.

--jim


^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: [9fans] FreeBSD 4.0 / Plan9 3rd ed.
@ 2000-09-01 19:59 Russ Cox
  2000-09-01 20:45 ` Alexander Viro
  0 siblings, 1 reply; 15+ messages in thread
From: Russ Cox @ 2000-09-01 19:59 UTC (permalink / raw)
  To: 9fans

As far as drawterm is concerned, 
the latest update had patches to 
make drawterm work under FreeBSD
using the Posix thread library.

The Linux drawterm will not work
in most other places, even under 
binary emulation, because it depends
on the task segment selector as
a unique thread id.  This is the same
reason that the Inferno Linux binaries
don't work under other OSes with
Linux binary emulation.

Russ


^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: [9fans] FreeBSD 4.0 / Plan9 3rd ed.
@ 2000-08-30 16:46 presotto
  0 siblings, 0 replies; 15+ messages in thread
From: presotto @ 2000-08-30 16:46 UTC (permalink / raw)
  To: 9fans

Dong lin, dong@research.bell-labs.com, ported both IL and 9P to BSD.


^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: [9fans] FreeBSD 4.0 / Plan9 3rd ed.
@ 2000-08-30 10:13 lucio
  2000-08-30 11:06 ` Nigel Roles
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: lucio @ 2000-08-30 10:13 UTC (permalink / raw)
  To: 9fans

> Is anybody working on connecting stuff for these 2 OS's?  Plan9

I was, while in Cape Town.  When I got back to my office in
Johannesburg, I gave Alef priority.  Now that Alef is on ice pending
some feedback, I guess I should go back to the IL/9P port.  I left
some of the ground work behind and inaccessible, but the important
details have come back with me.

> contains a patch for FreeBSD-3.2 which adds IL protocol.  I had a
> first look at the patch.  It seems to be in conflict with the IPv6,
> but mostly the patch can easily fixed, except...  I don't understand
> the stuff not enough to make it go.  But I think, IL support should be
> integrated into official FreeBSD.
> 
I think I have a good handle on it.  The Stevens books will no doubt
help a lot.  My efforts are towards a port to NetBSD (which moves more
slowly than FreeBSD, and is a little divergent) but by the time I'm
finished, I hope to produce results for all the *BSDs.  I leave it to
someone with a stronger stomach to deal with Linux.

> Neither I had success with drawterm.  It seems to depend on
> Linux-style threads not available on my system.  Is it worth (will it
> work?)  to add linuxthreads port to the system?

The POSIX threads are standard across most (all?)  modern Unixes.
They need installing (I have no doubt there's a pthread/MIT-pthread
port for FreeBSD) and didn't quite seem to suffice to get drawterm to
run under NetBSD, but I haven't dug any deeper - those are really
murky waters.

I would dearly like to share ideas with others that want to integrate
Plan 9 into other environments as I do.  There are lots of options,
and too few objectives that would make it easier to choose a
particular path.

++L



^ permalink raw reply	[flat|nested] 15+ messages in thread
* [9fans] FreeBSD 4.0 / Plan9 3rd ed.
@ 2000-08-30  9:12 Wilhelm B. Kloke
  2000-08-30 10:02 ` Nigel Roles
  2000-08-30 16:27 ` William K. Josephson
  0 siblings, 2 replies; 15+ messages in thread
From: Wilhelm B. Kloke @ 2000-08-30  9:12 UTC (permalink / raw)
  To: 9fans

Is anybody working on connecting stuff for these 2 OS's?
Plan9 contains a patch for FreeBSD-3.2 which adds IL protocol. I had a first
look at the patch. It seems to be in conflict with the IPv6,
but mostly the patch can easily fixed, except...
I don't understand the stuff not enough to make it go. But I think,
IL support should be integrated into official FreeBSD.

Neither I had success with drawterm. It seems to depend on Linux-style
threads not available on my system. Is it worth (will it work?) to add
linuxthreads port to the system?
-- 
Dipl.-Math. Wilhelm Bernhard Kloke
Institut fuer Arbeitsphysiologie an der Universitaet Dortmund
Ardeystrasse 67, D-44139 Dortmund, Tel. 0231-1084-257


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

end of thread, other threads:[~2000-09-02  7:30 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-09-01 22:56 [9fans] FreeBSD 4.0 / Plan9 3rd ed forsyth
2000-09-01 23:34 ` Alexander Viro
  -- strict thread matches above, loose matches on Subject: below --
2000-09-02  7:30 nigel
2000-09-01 22:04 jmk
2000-09-01 19:59 Russ Cox
2000-09-01 20:45 ` Alexander Viro
2000-08-30 16:46 presotto
2000-08-30 10:13 lucio
2000-08-30 11:06 ` Nigel Roles
2000-08-30 11:08 ` Nigel Roles
2000-08-30 16:29 ` William K. Josephson
2000-08-30 16:47   ` Lucio De Re
2000-08-30  9:12 Wilhelm B. Kloke
2000-08-30 10:02 ` Nigel Roles
2000-08-30 16:27 ` William K. Josephson

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