9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re:  [9fans] any success with current plan9port on sunos5.8?
@ 2004-06-11 14:18 Richard C Bilson
  0 siblings, 0 replies; 33+ messages in thread
From: Richard C Bilson @ 2004-06-11 14:18 UTC (permalink / raw)
  To: 9fans

> From: C H Forsyth <forsyth@vitanuova.com>
> 
> ---
> > #define	STACK	65536
> ===================================================================
> ---
> > 		mainstacksize = 64*1024;
> 
> 
> what are they doing that uses that much??

Well, like I said, I may be (and probably am) overprovisioning my
stacks.  But I know that you can't go too far below 32k and expect
anything to work.  For one thing, every stack frame needs to reserve
space to spill an entire register window (96 bytes), plus locals, plus
arguments that don't fit in registers.  For another thing, some of the
call stacks in X are ridiculously deep.


^ permalink raw reply	[flat|nested] 33+ messages in thread
* Re: [9fans] any success with current plan9port on sunos5.8?
@ 2004-06-17  2:33 Richard C Bilson
  2004-06-17  7:53 ` Axel Belinfante
  0 siblings, 1 reply; 33+ messages in thread
From: Richard C Bilson @ 2004-06-17  2:33 UTC (permalink / raw)
  To: 9fans

> From: Axel Belinfante <Axel.Belinfante@cs.utwente.nl>
> 
> The point I'm trying to make is:
> in this dirread case, the fact that something is broken
> kind of hits you in the face as soon as you run acme,
> or even plain ls: no files at all. However, there could be
> a zillion things that are broken in a more subtle way.
> Having to find those by stumbling over them I would find painful.

I'm not sure I agree.  The code hasn't been in use long enough to
convince me that it isn't broken in subtle ways, even with _EXTENSIONS_
enabled.  And my experience in trying to write portable code on
UNIX-ish systems has led to a deep distrust of feature-test macros.
But you're the one doing the work (at least, right now), and if you
can make it work then more power to you.


^ permalink raw reply	[flat|nested] 33+ messages in thread
* Re: [9fans] any success with current plan9port on sunos5.8?
@ 2004-06-14 19:37 Richard C Bilson
  0 siblings, 0 replies; 33+ messages in thread
From: Richard C Bilson @ 2004-06-14 19:37 UTC (permalink / raw)
  To: 9fans

> From: Charles Forsyth <forsyth@terzarima.net>
> 
> __EXTENSIONS__ is possibly needed if you use unistd.h and want the i/o calls to be 64 bit.
> that's seems to be the easiest way to get the right combination
> with Solaris 2.6.  see /usr/include/unistd.h for an example of how not to do it.

Well, scanning through the 2.8 (5.8? 8?) version of unistd.h, it seems
like they fixed this.  Perhaps I'm just being optimistic, however.

> specifically, on some systems including that version of Solaris the `feature' macro definitions
> are feature disablers more than feature enablers.

They are certainly productivity disablers.


^ permalink raw reply	[flat|nested] 33+ messages in thread
* Re: [9fans] any success with current plan9port on sunos5.8?
@ 2004-06-14 19:08 Richard C Bilson
  2004-06-14 19:14 ` Charles Forsyth
  2004-06-16  8:48 ` Bengt Kleberg
  0 siblings, 2 replies; 33+ messages in thread
From: Richard C Bilson @ 2004-06-14 19:08 UTC (permalink / raw)
  To: 9fans

Axel finally jogged my memory far enough back that I remembered
hacking around the yield problem; when I did the diff I did it on
"src", forgetting that that misses "include".

Index: u.h
===================================================================
RCS file: /cvs/plan9/include/u.h,v
retrieving revision 1.4
diff -r1.4 u.h
13c13
< #define __EXTENSIONS__ 1 /* SunOS */
---
> // #define __EXTENSIONS__ 1 /* SunOS */
48,50c48,50
< #	undef _NEEDUSHORT
< #	undef _NEEDUINT
< #	undef _NEEDULONG
---
> //#	undef _NEEDUSHORT
> //#	undef _NEEDUINT
> //#	undef _NEEDULONG

I don't know if there's a good reason for requiring __EXTENSIONS__
to be defined, but it didn't break anything that I can see and
it made the yield problem go away.


^ permalink raw reply	[flat|nested] 33+ messages in thread
* Re: [9fans] any success with current plan9port on sunos5.8?
@ 2004-06-14 14:12 Richard C Bilson
  0 siblings, 0 replies; 33+ messages in thread
From: Richard C Bilson @ 2004-06-14 14:12 UTC (permalink / raw)
  To: 9fans

> From: Axel Belinfante <Axel.Belinfante@cs.utwente.nl>
> 
> Hmmm... is there a p9yield in the linked (e.g.acme) executable?
> maybe your libthread yield is also unaffected (not renamed to p9yield)?

Upon further inspection this does indeed seem to be the case.

Aside from my previously-posted change to mainstacksize, I'm using a
virgin libthread.  I can't explain why it works for me and not for
others, but I'm happy to provide whatever assistance I can off-list to
anyone trying to get it working.


^ permalink raw reply	[flat|nested] 33+ messages in thread
* Re: [9fans] any success with current plan9port on sunos5.8?
@ 2004-06-14 13:39 Richard C Bilson
  2004-06-14 13:52 ` Axel Belinfante
  0 siblings, 1 reply; 33+ messages in thread
From: Richard C Bilson @ 2004-06-14 13:39 UTC (permalink / raw)
  To: 9fans

> From: Axel Belinfante <Axel.Belinfante@cs.utwente.nl>
> 
> in the same way, try (typing path from memory)
> 
> 	nm $PLAN9/src/libthread/fdwait.o | grep yield

What's interesting is that, on my working system, I get

[40]	|         0|       0|NOTY |GLOB |0    |UNDEF  |yield

which, presumably, is *not* the way it's supposed to be (i.e.,
I ought to be seeing "p9yield" instead).


^ permalink raw reply	[flat|nested] 33+ messages in thread
* Re:  [9fans] any success with current plan9port on sunos5.8?
@ 2004-06-11 13:51 Richard C Bilson
  2004-06-11 14:02 ` C H Forsyth
                   ` (2 more replies)
  0 siblings, 3 replies; 33+ messages in thread
From: Richard C Bilson @ 2004-06-11 13:51 UTC (permalink / raw)
  To: 9fans

> From: Axel Belinfante <Axel.Belinfante@cs.utwente.nl>
> 
> Just curious: has anyone had any luck with the
> current plan9 ports package on sunos 5.8?
> (I read that Bengt has problems too, and that
>  for Russ it works (fine?) on 5.9, correct?)

Well, I had to comment out some stuff that doesn't work and rename a
few symbols, but in large part it works.  I believe Bengt already
described most of these problems.  I'm typing this in acme right now.

I do notice that among my diffs that at one point I played with the
stack size.  I don't know whether a larger stack is actually necessary,
but I do know that most of the SunOS problems I've had have come down
to one stack or another being too small.

Index: cmd/acme/dat.h
===================================================================
RCS file: /cvs/plan9/src/cmd/acme/dat.h,v
retrieving revision 1.7
diff -r1.7 dat.h
549c549
< #define	STACK	32768
---
> #define	STACK	65536
Index: libthread/main.c
===================================================================
RCS file: /cvs/plan9/src/libthread/main.c,v
retrieving revision 1.9
diff -r1.9 main.c
47c47
< 		mainstacksize = 32*1024;
---
> 		mainstacksize = 64*1024;


^ permalink raw reply	[flat|nested] 33+ messages in thread
* [9fans] any success with current plan9port on sunos5.8?
@ 2004-06-11 12:19 Axel Belinfante
  0 siblings, 0 replies; 33+ messages in thread
From: Axel Belinfante @ 2004-06-11 12:19 UTC (permalink / raw)
  To: 9fans

Just curious: has anyone had any luck with the
current plan9 ports package on sunos 5.8?
(I read that Bengt has problems too, and that
 for Russ it works (fine?) on 5.9, correct?)

I tried to investigate why for me acme hangs,
and right now I have the impression that it
somehow hangs in the connection to the plumber.

In more detail: I'm getting the impression that
maybe the 'connection' between 9pserve and the
plumber that starts it is not working for me.
While I'm digging, maybe someone knows: could
the changes between the current ports version,
and the version of say a month earlier explain
that?

Axel - just continues digging



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

end of thread, other threads:[~2004-06-18 13:02 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-11 14:18 [9fans] any success with current plan9port on sunos5.8? Richard C Bilson
  -- strict thread matches above, loose matches on Subject: below --
2004-06-17  2:33 Richard C Bilson
2004-06-17  7:53 ` Axel Belinfante
2004-06-17 16:11   ` Russ Cox
2004-06-17 21:35     ` Axel Belinfante
2004-06-18  9:06       ` Bengt Kleberg
2004-06-18 10:09         ` Axel Belinfante
2004-06-18  9:05     ` Bengt Kleberg
2004-06-17 17:08   ` Lyndon Nerenberg
2004-06-17 17:36     ` Russ Cox
2004-06-18  9:05       ` Bengt Kleberg
2004-06-18 13:02         ` Axel Belinfante
2004-06-18  9:06   ` Bengt Kleberg
2004-06-18  9:33     ` William Josephson
2004-06-18  9:47     ` Axel Belinfante
2004-06-14 19:37 Richard C Bilson
2004-06-14 19:08 Richard C Bilson
2004-06-14 19:14 ` Charles Forsyth
2004-06-16  8:48 ` Bengt Kleberg
2004-06-16 23:50   ` Axel Belinfante
2004-06-17  9:05     ` Bengt Kleberg
2004-06-14 14:12 Richard C Bilson
2004-06-14 13:39 Richard C Bilson
2004-06-14 13:52 ` Axel Belinfante
2004-06-11 13:51 Richard C Bilson
2004-06-11 14:02 ` C H Forsyth
2004-06-11 13:58   ` William Josephson
2004-06-11 14:18     ` Russ Cox
2004-06-11 15:05 ` Axel Belinfante
2004-06-14 10:05 ` Bengt Kleberg
2004-06-14 11:30   ` Axel Belinfante
2004-06-16  8:48     ` Bengt Kleberg
2004-06-11 12:19 Axel Belinfante

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