Author: Roy Brunjes
Date: 13:04:40 08/27/05
Go up one level in this thread
On August 27, 2005 at 14:13:08, Robert Hyatt wrote: >On August 27, 2005 at 11:43:15, Roy Brunjes wrote: > >>I downloaded and compiled Crafty 20.0 on my Fedora Core 4 Pentium 4 system (used >>the default Makefile and just typed "make". >> >>When I run crafty and my .craftyrc file has the following in it: >> >>hash 256M >>hashp 24M >>cache 32M >>show book >>resign 6 >>log on >># tbpath=/home/roy/chess/TBs >># egtb >> >>When I run crafty I see this: >> >>[roy@localhost .crafty]$ ./crafty >>found computer opening book file [./bookc.bin]. >>Segmentation fault >> >>If I delete the .craftyrc file, it works fine. So, I started commenting out >>lines in .craftyrc to see which line might be the problem. It turns out that the >>first line (hash 256M) is the culprit. My system has 2 GB of RAM on it and there >>is roughly 1.7GB free at the moment ... >> >>Any ideas on what might be causing this? I would like to run crafty with more >>RAM used for hashtables than whatever the defaults might be. >> >>Thanks, >> >>Roy > > >Yes. This is my fault. For linux, I use shmget() to allocate dynamic memory, >so that I can share the stuff on a multiple-cpu machine. > >Unfortunately, linux has a very small shmmax (max shared memory segment size) by >default. > >As root, do this: > >echo "1000000000" > /proc/sys/kernel/shmmax > >and you will be set. I had a test for shmget() failing, and it would produce a >message telling you to do the above. But somewhere along the way that message >got lost. I'll fix 20.0 and re-do the source files to avoid failing without any >warning... As usual, Bob is exactly on the money here. Many thanks! I will download the updated V20.0 when it is ready. Thanks! Roy
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.