9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] chess?
@ 2014-01-05 10:37 Rudolf Sykora
  2014-01-05 11:27 ` Conor Williams
  0 siblings, 1 reply; 14+ messages in thread
From: Rudolf Sykora @ 2014-01-05 10:37 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Hello,

perhaps it's there but I can't find it...

Is there a chess game on plan9?

Thanks
Ruda



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

* Re: [9fans] chess?
  2014-01-05 10:37 [9fans] chess? Rudolf Sykora
@ 2014-01-05 11:27 ` Conor Williams
  2014-01-05 12:03   ` stevie
  2014-01-05 13:02   ` Rudolf Sykora
  0 siblings, 2 replies; 14+ messages in thread
From: Conor Williams @ 2014-01-05 11:27 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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

term%9fs sources
term% cd /n/sources/contrib
term% du -a . | grep chess



On Sun, Jan 5, 2014 at 10:37 AM, Rudolf Sykora <rudolf.sykora@gmail.com>wrote:

> Hello,
>
> perhaps it's there but I can't find it...
>
> Is there a chess game on plan9?
>
> Thanks
> Ruda
>
>

[-- Attachment #2: Type: text/html, Size: 643 bytes --]

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

* Re: [9fans] chess?
  2014-01-05 11:27 ` Conor Williams
@ 2014-01-05 12:03   ` stevie
  2014-01-05 12:08     ` Conor Williams
  2014-01-05 13:02   ` Rudolf Sykora
  1 sibling, 1 reply; 14+ messages in thread
From: stevie @ 2014-01-05 12:03 UTC (permalink / raw)
  To: 9fans

> term%9fs sources
> term% cd /n/sources/contrib
> term% du -a . | grep chess
>
>
>
> On Sun, Jan 5, 2014 at 10:37 AM, Rudolf Sykora <rudolf.sykora@gmail.com>wrote:
>
>> Hello,
>>
>> perhaps it's there but I can't find it...
>>
>> Is there a chess game on plan9?
>>
>> Thanks
>> Ruda
>>
>>

The canonical way to this is this, I guess:

% 9fs sources
% grep chess /n/sources/lsr




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

* Re: [9fans] chess?
  2014-01-05 12:03   ` stevie
@ 2014-01-05 12:08     ` Conor Williams
  2014-01-05 12:25       ` stevie
  0 siblings, 1 reply; 14+ messages in thread
From: Conor Williams @ 2014-01-05 12:08 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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

if you want to do the search dressed as a priest, by all means, go ahead my
firend...
*noun*

   1. *1*.
   the prescribed official dress of the clergy.
   "Cardinal Bea in full canonicals"





On Sun, Jan 5, 2014 at 12:03 PM, <stevie@kamalatta.dyndns.org> wrote:

> > term%9fs sources
> > term% cd /n/sources/contrib
> > term% du -a . | grep chess
> >
> >
> >
> > On Sun, Jan 5, 2014 at 10:37 AM, Rudolf Sykora <rudolf.sykora@gmail.com
> >wrote:
> >
> >> Hello,
> >>
> >> perhaps it's there but I can't find it...
> >>
> >> Is there a chess game on plan9?
> >>
> >> Thanks
> >> Ruda
> >>
> >>
>
> The canonical way to this is this, I guess:
>
> % 9fs sources
> % grep chess /n/sources/lsr
>
>
>

[-- Attachment #2: Type: text/html, Size: 2262 bytes --]

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

* Re: [9fans] chess?
  2014-01-05 12:08     ` Conor Williams
@ 2014-01-05 12:25       ` stevie
  0 siblings, 0 replies; 14+ messages in thread
From: stevie @ 2014-01-05 12:25 UTC (permalink / raw)
  To: 9fans

> if you want to do the search dressed as a priest, by all means, go ahead my
> firend...
> *noun*
>
>    1. *1*.
>    the prescribed official dress of the clergy.
>    "Cardinal Bea in full canonicals"
>
>
>
>
>
> On Sun, Jan 5, 2014 at 12:03 PM, <stevie@kamalatta.dyndns.org> wrote:
>
>> > term%9fs sources
>> > term% cd /n/sources/contrib
>> > term% du -a . | grep chess
>> >
>> >
>> >
>> > On Sun, Jan 5, 2014 at 10:37 AM, Rudolf Sykora <rudolf.sykora@gmail.com
>> >wrote:
>> >
>> >> Hello,
>> >>
>> >> perhaps it's there but I can't find it...
>> >>
>> >> Is there a chess game on plan9?
>> >>
>> >> Thanks
>> >> Ruda
>> >>
>> >>
>>
>> The canonical way to this is this, I guess:
>>
>> % 9fs sources
>> % grep chess /n/sources/lsr
>>
>>
>>
 top posts are evil, as you can see

stevie




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

* Re: [9fans] chess?
  2014-01-05 11:27 ` Conor Williams
  2014-01-05 12:03   ` stevie
@ 2014-01-05 13:02   ` Rudolf Sykora
  2014-01-05 13:12     ` stevie
  2014-01-05 14:36     ` erik quanstrom
  1 sibling, 2 replies; 14+ messages in thread
From: Rudolf Sykora @ 2014-01-05 13:02 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On 5 January 2014 12:27, Conor Williams <conor.williams@gmail.com> wrote:
> term%9fs sources
> term% cd /n/sources/contrib
> term% du -a . | grep chess

Thanks, this is possibly a way, but, at least in my case, this takes ages...
(Say it can run for >45 mins; maybe much more; I do not know the true
reason why,
but I intuitively suspect the protocol.)
Therefore I asked for a more specific pointer.
Also, generally, there should be a quicker way.

Ruda



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

* Re: [9fans] chess?
  2014-01-05 13:02   ` Rudolf Sykora
@ 2014-01-05 13:12     ` stevie
  2014-01-05 13:39       ` Rudolf Sykora
  2014-01-05 16:16       ` Rudolf Sykora
  2014-01-05 14:36     ` erik quanstrom
  1 sibling, 2 replies; 14+ messages in thread
From: stevie @ 2014-01-05 13:12 UTC (permalink / raw)
  To: 9fans

> On 5 January 2014 12:27, Conor Williams <conor.williams@gmail.com> wrote:
>> term%9fs sources
>> term% cd /n/sources/contrib
>> term% du -a . | grep chess
>
> Thanks, this is possibly a way, but, at least in my case, this takes ages...
> (Say it can run for >45 mins; maybe much more; I do not know the true
> reason why,
> but I intuitively suspect the protocol.)
> Therefore I asked for a more specific pointer.
> Also, generally, there should be a quicker way.
>
> Ruda

It runs much faster if you search in the lsr index file:

% 9fs sources
% cd /n/sources
% time grep chess lsr
./contrib/steve/root/sys/src/cmd/mkmk/9port/gnu/chess 755 1229510622 697
./plan9/sys/src/cmd/gs/examples/chess.ps 664 1137452689 61791
0.58u 0.18s 315.60r 	 grep chess lsr

So here are results I found  ^^^

stevie




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

* Re: [9fans] chess?
  2014-01-05 13:12     ` stevie
@ 2014-01-05 13:39       ` Rudolf Sykora
  2014-01-05 14:33         ` stevie
  2014-01-05 16:16       ` Rudolf Sykora
  1 sibling, 1 reply; 14+ messages in thread
From: Rudolf Sykora @ 2014-01-05 13:39 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On 5 January 2014 14:12,  <stevie@kamalatta.dyndns.org> wrote:
> It runs much faster if you search in the lsr index file:
>
> % 9fs sources
> % cd /n/sources
> % time grep chess lsr
> ./contrib/steve/root/sys/src/cmd/mkmk/9port/gnu/chess 755 1229510622 697
> ./plan9/sys/src/cmd/gs/examples/chess.ps 664 1137452689 61791
> 0.58u 0.18s 315.60r      grep chess lsr
>
> So here are results I found  ^^^
>
> stevie
>

yes. this is much faster, thanks.
the only question left for me is how often
the lsr file gets regenerated...

thanks
ruda



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

* Re: [9fans] chess?
  2014-01-05 13:39       ` Rudolf Sykora
@ 2014-01-05 14:33         ` stevie
  0 siblings, 0 replies; 14+ messages in thread
From: stevie @ 2014-01-05 14:33 UTC (permalink / raw)
  To: 9fans

> On 5 January 2014 14:12,  <stevie@kamalatta.dyndns.org> wrote:
>> It runs much faster if you search in the lsr index file:
>>
>> % 9fs sources
>> % cd /n/sources
>> % time grep chess lsr
>> ./contrib/steve/root/sys/src/cmd/mkmk/9port/gnu/chess 755 1229510622 697
>> ./plan9/sys/src/cmd/gs/examples/chess.ps 664 1137452689 61791
>> 0.58u 0.18s 315.60r      grep chess lsr
>>
>> So here are results I found  ^^^
>>
>> stevie
>>
>
> yes. this is much faster, thanks.
> the only question left for me is how often
> the lsr file gets regenerated...
>
> thanks
> ruda

It was regenerated today. So I guess daily

stevie




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

* Re: [9fans] chess?
  2014-01-05 13:02   ` Rudolf Sykora
  2014-01-05 13:12     ` stevie
@ 2014-01-05 14:36     ` erik quanstrom
  2014-01-05 16:02       ` Rudolf Sykora
  1 sibling, 1 reply; 14+ messages in thread
From: erik quanstrom @ 2014-01-05 14:36 UTC (permalink / raw)
  To: 9fans

> Thanks, this is possibly a way, but, at least in my case, this takes ages...
> (Say it can run for >45 mins; maybe much more; I do not know the true
> reason why,
> but I intuitively suspect the protocol.)
> Therefore I asked for a more specific pointer.
> Also, generally, there should be a quicker way.

it's easy to blame the protocol.  but it's more than that.
0.  the i/o unit is just 8k, this means that directories like
/sys/src/9 take 2 or more round trips.  this is trivial to fix
by upping MAXRPC in devmnt.  i've uppted this to
56k + IOHDRSZ.  this makes a difference even when the
rtt is 50µs.

1.  (or 0a) the kernel won't issue more than one concurrent
rpc for the same request.

2.  find/du are single threaded, so they they take full rtt latency
on each syscall.

there's a small demonstration of 2 at the end of this email.

- erik

---
note that except for the fcp test, rtt dominates.  even 384kbps
is more than enough to keep up.  in fact, except for the fcp
test time_link0 * rtt_link0/rtt_link1 tracks pretty closely with
the actual result.  since link1 is dsl, keeping track of the actual
rtt could have reduced some of this error.

link0:
rtt ~ 32ms uplink/downlink ~ 100mbps/100mbps:

0.29u 0.37s 895.45r 	 rc -c find | grep chess  # status= find 7086421: errors|
0.03u 0.03s 68.77r 	 rc -c cp lsr /tmp && grep chess /tmp/lsr
.0.04u 0.10s 5.40r 	 rc -c fcp lsr /tmp && grep chess /tmp/lsr

link1:
rtt ~ 52ms uplink/downlink ~ .384mbps/1.5mbps
0.00u 0.00s 1468.26r 	 rc -c find | grep chess
0.00u 0.01s 131.03r 	 rc -c cp lsr /tmp && grep chess /tmp/lsr >/dev/null
0.00u 0.00s 33.61r 	 rc -c fcp lsr /tmp && grep chess /tmp/lsr >/dev/null



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

* Re: [9fans] chess?
  2014-01-05 14:36     ` erik quanstrom
@ 2014-01-05 16:02       ` Rudolf Sykora
  0 siblings, 0 replies; 14+ messages in thread
From: Rudolf Sykora @ 2014-01-05 16:02 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On 5 January 2014 15:36, erik quanstrom <quanstro@quanstro.net> wrote:
>> Thanks, this is possibly a way, but, at least in my case, this takes ages...
>> (Say it can run for >45 mins; maybe much more; I do not know the true
>> reason why,
>> but I intuitively suspect the protocol.)
>> Therefore I asked for a more specific pointer.
>> Also, generally, there should be a quicker way.
>
> it's easy to blame the protocol.  but it's more than that.
> 0.  the i/o unit is just 8k, this means that directories like
> /sys/src/9 take 2 or more round trips.  this is trivial to fix
> by upping MAXRPC in devmnt.  i've uppted this to
> 56k + IOHDRSZ.  this makes a difference even when the
> rtt is 50µs.
>
> 1.  (or 0a) the kernel won't issue more than one concurrent
> rpc for the same request.
>
> 2.  find/du are single threaded, so they they take full rtt latency
> on each syscall.
>
> there's a small demonstration of 2 at the end of this email.
>
> - erik
>
> ---
> note that except for the fcp test, rtt dominates.  even 384kbps
> is more than enough to keep up.  in fact, except for the fcp
> test time_link0 * rtt_link0/rtt_link1 tracks pretty closely with
> the actual result.  since link1 is dsl, keeping track of the actual
> rtt could have reduced some of this error.
>
> link0:
> rtt ~ 32ms uplink/downlink ~ 100mbps/100mbps:
>
> 0.29u 0.37s 895.45r      rc -c find | grep chess  # status= find 7086421: errors|
> 0.03u 0.03s 68.77r       rc -c cp lsr /tmp && grep chess /tmp/lsr
> .0.04u 0.10s 5.40r       rc -c fcp lsr /tmp && grep chess /tmp/lsr
>
> link1:
> rtt ~ 52ms uplink/downlink ~ .384mbps/1.5mbps
> 0.00u 0.00s 1468.26r     rc -c find | grep chess
> 0.00u 0.01s 131.03r      rc -c cp lsr /tmp && grep chess /tmp/lsr >/dev/null
> 0.00u 0.00s 33.61r       rc -c fcp lsr /tmp && grep chess /tmp/lsr >/dev/null
>

Thanks for the information!

R



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

* Re: [9fans] chess?
  2014-01-05 13:12     ` stevie
  2014-01-05 13:39       ` Rudolf Sykora
@ 2014-01-05 16:16       ` Rudolf Sykora
  2014-01-05 16:47         ` Kurt H Maier
  1 sibling, 1 reply; 14+ messages in thread
From: Rudolf Sykora @ 2014-01-05 16:16 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On 5 January 2014 14:12,  <stevie@kamalatta.dyndns.org> wrote:
> % 9fs sources
> % cd /n/sources
> % time grep chess lsr
> ./contrib/steve/root/sys/src/cmd/mkmk/9port/gnu/chess 755 1229510622 697
> ./plan9/sys/src/cmd/gs/examples/chess.ps 664 1137452689 61791
> 0.58u 0.18s 315.60r      grep chess lsr
>
> So here are results I found  ^^^

So now I know there is something in Steve's contrib.
However, I do not really know how to proceed.
It seems to me that
contrib/steve/root/sys/src/cmd/mkmk/9port/gnu/chess
is just some script whose use is one big unknown to me.
Its purpose seems to be to create a mkfile and is probably
intended to be run in a directory with gnuchess source
(which is (?) to be downloaded separately).
I have installed the mkmk thing using contrib/gui, downloaded
the gnuchess source, extracted it, copied the chess script
into it, ran it, but it produced quite a few error messages.

Can anybody tell me what they did to get the chess program
running? (Will there be a board as well?)

Thank you.

Ruda

PS.: It's a pity there isn't such a thing like plan9 that would
just work :)



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

* Re: [9fans] chess?
  2014-01-05 16:16       ` Rudolf Sykora
@ 2014-01-05 16:47         ` Kurt H Maier
  0 siblings, 0 replies; 14+ messages in thread
From: Kurt H Maier @ 2014-01-05 16:47 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Quoting Rudolf Sykora <rudolf.sykora@gmail.com>:

> PS.: It's a pity there isn't such a thing like plan9 that would
> just work :)

Plan 9 works fine.  It's gnu crap that is difficult.


9front experimented with providing binary packages for various things
and it was more trouble than it was worth

khm




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

* [9fans] chess?
@ 2013-02-10 20:05 trebol
  0 siblings, 0 replies; 14+ messages in thread
From: trebol @ 2013-02-10 20:05 UTC (permalink / raw)
  To: 9fans

Hello all,

How do you play chess with plan9? I saw a gnuchess version in the games's
man page of the first edition:

doc.cat-v.org/plan_9/1st_edition/manual.pdf

Any board also?

Thanks in advance,
trebol.



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

end of thread, other threads:[~2014-01-05 16:47 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-05 10:37 [9fans] chess? Rudolf Sykora
2014-01-05 11:27 ` Conor Williams
2014-01-05 12:03   ` stevie
2014-01-05 12:08     ` Conor Williams
2014-01-05 12:25       ` stevie
2014-01-05 13:02   ` Rudolf Sykora
2014-01-05 13:12     ` stevie
2014-01-05 13:39       ` Rudolf Sykora
2014-01-05 14:33         ` stevie
2014-01-05 16:16       ` Rudolf Sykora
2014-01-05 16:47         ` Kurt H Maier
2014-01-05 14:36     ` erik quanstrom
2014-01-05 16:02       ` Rudolf Sykora
  -- strict thread matches above, loose matches on Subject: below --
2013-02-10 20:05 trebol

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