Rybka3Linux

Discussions about the WinBoard protocol. Here you can also report bugs and request new features.

Moderators: hgm, Andres Valverde

Re: Rybka3Linux

Postby StormSergey » 27 Nov 2009, 16:23

Can Set disappointing conclusion that Rybka3Linux on Xboard does not work :) :shock: :?:
StormSergey
 
Posts: 24
Joined: 19 Nov 2009, 16:52

Re: Rybka3Linux

Postby Michel » 27 Nov 2009, 16:28

Can Set disappointing conclusion that Rybka3Linux on Xboard does not work :) :shock: :?:


What do you mean?

I works for me. I explained how to make it work above.
Michel
 
Posts: 513
Joined: 01 Oct 2008, 12:15

Re: Rybka3Linux

Postby StormSergey » 27 Nov 2009, 18:25

Show Screenshots of me still
stalker@ubuntu:~$ xboard -fcp Rybka3Linux -fUCI
xboard: Failed to start first chess program polyglot ./polyglot_1st.ini on localhost: Rybka3Linux: No such file or directory

stalker@ubuntu:~$ xboard -fcp Rybka3Linux -fUCI
xboard: Error writing to first chess program: Broken pipe
xboard: Failed to start first chess program polyglot ./polyglot_1st.ini on localhost: Rybka3Linux: No such file or directory

stalker@ubuntu:~$
StormSergey
 
Posts: 24
Joined: 19 Nov 2009, 16:52

Re: Rybka3Linux

Postby Michel » 27 Nov 2009, 18:41

stalker@ubuntu:~$ xboard -fcp Rybka3Linux -fUCI
xboard: Failed to start first chess program polyglot ./polyglot_1st.ini on localhost: Rybka3Linux: No such file or directory


We already discussed this. This is a path issue. To run Rybka3Linux you need to

(1) specify the full path /usr/games/Rybka3Linux (because apparently /usr/games is not in your path on your system)

(2) Increase the maximum allowed shared memory allocation.

As said above everything is discussed here
http://rybkachess.com/index.php?auswahl=Linux

In particular I repeat the quote from that link which I also already gave above

One last trick

If you want to use more than 32 MB for the Hash tables, open gedit with root rights

sudo gedit

and add the line

kernel.shmmax = 268443648

to the file /etc/sysctl.conf.
Michel
 
Posts: 513
Joined: 01 Oct 2008, 12:15

Re: Rybka3Linux

Postby StormSergey » 27 Nov 2009, 19:32

path is on my system
Code: Select all
root@ubuntu:~# cd /usr/games
root@ubuntu:/usr/games# ./Rybka3Linux
uci
id name Rybka 3
id author Vasik Rajlich, Larry Kaufman
option name UCI_Query type button
option name Hash type spin min 2 max 4096 default 32
option name Max CPUs type spin min 1 max 2048 default 2048
option name NalimovPath type string default <empty>
option name NalimovCache type spin min 1 max 256 default 1
option name NalimovUsage type combo default Rarely var Frequently var Normally var Rarely var Never
option name Preserve Analysis type check default false
option name Clear Hash type button
option name Saved Hash File type string default <empty>
option name Save Hash type button
option name Load Hash type button
option name Persistent Hash Enabled type check default false
option name Persistent Hash File type string default <empty>
option name Persistent Hash Play Depth type spin default 64 min 8 max 64
option name Persistent Hash Write Depth type spin default 10 min 8 max 64
option name Persistent Hash Size type spin default 16 min 8 max 65536
option name Persistent Hash Reset type button
option name Persistent Hash Resize type button
option name Persistent Hash Merge File type string default <empty>

Edited by sudo gedit / etc / sysctl.conf
put line kernel.shmmax = 268443648
But Predn not work as after
xboard -fcp Rybka3Linux -fUCI
xboard -fcp /usr/games/Rybka3Linux -fUCI
Code: Select all
xboard: Error: first chess program (polyglot ./polyglot_1st.ini) exited unexpectedly

If you run a show the console output from start to finish
StormSergey
 
Posts: 24
Joined: 19 Nov 2009, 16:52

Re: Rybka3Linux

Postby Michel » 27 Nov 2009, 19:43

Sorry I now notice the quote did not specify the whole story. After making changes to sysctl.conf you have issue
the following command (assuming this is a recent version of ubuntu).

Code: Select all
sudo invoke-rc.d procps start


This will read in the file sysctl.conf and set the appropriate kernel parameters.

I think you can also just reboot.

To see that the setting worked you can do

Code: Select all
cat /proc/sys/kernel/shmmax


This should give the value you specified (268443648) which I assume amounts to 268Mb.
Michel
 
Posts: 513
Joined: 01 Oct 2008, 12:15

Re: Rybka3Linux

Postby H.G.Muller » 27 Nov 2009, 19:46

Well, you change directory to /usr/games, and then run ./Rybka3Linux. That does not prove that /usr/games is in your path. What happen if you do not type ./Rybka3Linux but just Rybka3Linux, and what happens when you type that after changing to another directory (say " cd /")?

[edit] I read back a little further in this thread. If the problem is that the default setting of 64MB hash is too large for Rybka, just start up XBoard with a parameter specifying a smaller amount of default hash:

xboard -fcp /usr/games/Rybka3Linux -fUCI -defaultHashSize 16
User avatar
H.G.Muller
 
Posts: 3453
Joined: 16 Nov 2005, 12:02
Location: Diemen, NL

Re: Rybka3Linux

Postby StormSergey » 27 Nov 2009, 20:18

Respected H.G.Muller at last has earned by means of a command xboard-fcp/usr/games/Rybka3Linux-fUCI-defaultHashSize to 16 huge you thanks! :D I am sorry for my questions I the beginner in xboard, as well as in Linux also извените for my English. At me one more question by means of what in xboard it is possible to start tournament of engines? :?:
Image
StormSergey
 
Posts: 24
Joined: 19 Nov 2009, 16:52

Re: Rybka3Linux

Postby H.G.Muller » 27 Nov 2009, 20:38

XBoard does not have a built-in tournament manager; the most it can do is a match of a number of games between two opponents. To play a tournament, I always use an external tournament manager (PSWBTM). I don't know how well this work under Linux, though; I run all my tournaments under Windows with WinBoard.

With PSWBTM you can build an engine database, and select engines from it to quickly set up a tournament. It then starts up XBoard for each game of the tournament that has to be played.
User avatar
H.G.Muller
 
Posts: 3453
Joined: 16 Nov 2005, 12:02
Location: Diemen, NL

Re: Rybka3Linux

Postby Michel » 27 Nov 2009, 21:10

xboard -fcp /usr/games/Rybka3Linux -fUCI -defaultHashSize 16


Of course that works but it doesn't help if you want to use Rybka with a reasonable amount of hash. There is a simple
permanent solution which makes Rybka run with any hash size you want. I was trying to explain this.
Michel
 
Posts: 513
Joined: 01 Oct 2008, 12:15

Re: Rybka3Linux

Postby StormSergey » 27 Nov 2009, 21:15

To use large volumes of memory recommends that you read the text of the truth in Russian
http://www.gladiators-chess.ru/forum/vi ... read_id=50
StormSergey
 
Posts: 24
Joined: 19 Nov 2009, 16:52

Re: Rybka3Linux

Postby Michel » 27 Nov 2009, 21:21

Sorry don't read Russian :-(

But I assume that text explains that it is possible. Which is good :D
Michel
 
Posts: 513
Joined: 01 Oct 2008, 12:15

Re: Rybka3Linux

Postby StormSergey » 27 Nov 2009, 21:25

Michel wrote:
xboard -fcp /usr/games/Rybka3Linux -fUCI -defaultHashSize 16


Of course that works but it doesn't help if you want to use Rybka with a reasonable amount of hash. There is a simple
permanent solution which makes Rybka run with any hash size you want. I was trying to explain this.

Michel to you too many thanks and my thanks forgive for delay :D I can already start R3L with a size hesh 1024 and on available for me 2 cpu It is necessary to learn still as to hold tournaments in xboard 8-)
StormSergey
 
Posts: 24
Joined: 19 Nov 2009, 16:52

Re: Rybka3Linux

Postby StormSergey » 30 Nov 2009, 13:51

Hello! How it is possible to lead a match between two engines in Xboard? 8-)
StormSergey
 
Posts: 24
Joined: 19 Nov 2009, 16:52

Re: Rybka3Linux

Postby H.G.Muller » 30 Nov 2009, 14:06

xboard -fcp fruit -fUCI -scp fairymax -mg 8

should play a match of 8 games between fruit and fairymax, with alternating colors. (-mg is shorthand for -matchGames.)
User avatar
H.G.Muller
 
Posts: 3453
Joined: 16 Nov 2005, 12:02
Location: Diemen, NL

Re: Rybka3Linux

Postby StormSergey » 30 Nov 2009, 14:14

Thanks :D
And if it is two uci the engine for example Toga and Fruit what command to use? 8-)
StormSergey
 
Posts: 24
Joined: 19 Nov 2009, 16:52

Re: Rybka3Linux

Postby H.G.Muller » 30 Nov 2009, 15:06

xboard -fcp toga -fUCI -scp fruit -sUCI -mg 8

The order of the options is actually not very important in XBoard; you might as well have said

xboard -mg 8 -scp fruit -fcp toga -fUCI -sUCI

and it wold do exactly the same. (Of course the value of an option has to immediately follow the option name, but otherwise the order is immaterial, unless you mention the same option twice.)
User avatar
H.G.Muller
 
Posts: 3453
Joined: 16 Nov 2005, 12:02
Location: Diemen, NL

Re: Rybka3Linux

Postby StormSergey » 30 Nov 2009, 15:27

Thanks
Were started by a match between engines Rybka3Linux and Fruit deduces an error :?
Code: Select all
stalker@ubuntu:~$ xboard -fcp fruit -fUCI -scp Rybka3Linux -sUCI -mg 10
xboard: Error writing to second chess program: Broken pipe
xboard: Failed to start second chess program polyglot ./polyglot_2nd.ini on localhost: Rybka3Linux: No such file or directory

xboard: Error writing to second chess program: Broken pipe
xboard: Error writing to second chess program: Broken pipe
xboard: Error writing to second chess program: Broken pipe
xboard: Error writing to second chess program: Broken pipe
xboard: Error writing to second chess program: Broken pipe
*** glibc detected *** xboard: double free or corruption (out): 0x00007fffee7391b0 ***
======= Backtrace: =========
/lib/libc.so.6[0x7f7215f0fdd6]
/lib/libc.so.6(cfree+0x6c)[0x7f7215f1470c]
xboard[0x42ef8b]
xboard[0x426cc6]
xboard[0x4240ee]
xboard[0x41c71b]
xboard[0x44dd8f]
/usr/lib/libXt.so.6[0x7f721592e5a6]
/usr/lib/libXt.so.6(XtAppNextEvent+0xa9)[0x7f721592e6e9]
/usr/lib/libXt.so.6(XtAppMainLoop+0x43)[0x7f7215920bd3]
xboard[0x440bef]
/lib/libc.so.6(__libc_start_main+0xfd)[0x7f7215eb8abd]
xboard[0x404ef9]
======= Memory map: ========
00400000-00531000 r-xp 00000000 07:00 252255                             /usr/local/bin/xboard
00730000-00731000 r--p 00130000 07:00 252255                             /usr/local/bin/xboard
00731000-0079e000 rw-p 00131000 07:00 252255                             /usr/local/bin/xboard
0079e000-0091e000 rw-p 00000000 00:00 0
01456000-0153a000 rw-p 00000000 00:00 0                                  [heap]
7f7210000000-7f7210021000 rw-p 00000000 00:00 0
7f7210021000-7f7214000000 ---p 00000000 00:00 0
7f7214275000-7f721428b000 r-xp 00000000 07:00 970                        /lib/libgcc_s.so.1
7f721428b000-7f721448a000 ---p 00016000 07:00 970                        /lib/li
StormSergey
 
Posts: 24
Joined: 19 Nov 2009, 16:52

Re: Rybka3Linux

Postby H.G.Muller » 30 Nov 2009, 17:14

Oh, I guess /usr/games is still not in your PATH. It ays "no such file or directory", so it could not find it. So you would have to write

xboard -fcp fruit -fUCI -scp /usr/games/Rybka3Linux -sUCI -mg 8
User avatar
H.G.Muller
 
Posts: 3453
Joined: 16 Nov 2005, 12:02
Location: Diemen, NL

Re: Rybka3Linux

Postby StormSergey » 30 Nov 2009, 18:30

Thanks all work! :D At me a question it is possible to start a match of engines with debut base in a format pgn? For example such as this? debut base pgn :?:
StormSergey
 
Posts: 24
Joined: 19 Nov 2009, 16:52

PreviousNext

Return to WinBoard development and bugfixing

Who is online

Users browsing this forum: No registered users and 4 guests