On Jun 26, 2008, at 4:00 PM, Garth Corral wrote: >> :-) >> Oh yeah, that. >> >> That's not a problem with your particular crafty build, but is a >> crafty/os x issue. >> >> Crafty wants an enormous shared memory segment and os x has a >> somewhat >> small shmmax value by default. >> >> Here's what you can do: >> >> As root on the command line, type >> >> sysctl -w kern.sysv.shmmax=1073741824 >> sysctl -w >> > To complete that thought. :-) > > As root, type: > > sysctl -w kern.sysv.shmmax=1073741824 > sysctl -w kern.sysv.shmall=262144 > > That should allow crafty to run but will not persist across the next > reboot. You'll need to edit /etc/sysctl.conf for that. I'll send > out some info about that when I get back to an easier to use mail > client. > Here's the followup I promised.
As I said the above commands will not persist across a reboot. So, on 10.5.x (10.4.x is different) you will need to edit /etc/sysctl.conf. This file probably won't exist on your system so just create it and add the following: kern.sysv.shmmax=1073741824 kern.sysv.shmmin=1 kern.sysv.shmmni=32 kern.sysv.shmseg=8 kern.sysv.shmall= 262144 You must set all 5 of these values or they will not take effect. This is a pretty large allocation so I can't say what will happen if you are memory starved. I think this is mostly used for hash tables so you may be able alternately reduce the size of the hash tables. This isn't really a scid issue but it might be good if it got documented somewhere because as long as crafty ships with scid, it will come up again. As a side note, you can also change some build flags on your platform for a bit more performance (all of this is handled in the scid darwin makefile in my tree that I keep promising to get to Pascal). For instance, on the G5 you can do (from the engines/crafty-21.6 directory): make opt="-DPOWERPC -fast" darwin and that should provide a noticeable performance boost. If you have more than one CPU, add -DCPUS=2 (or 4 or whatever). This is only a maximum so you could add it even if you only have one CPU. Then in the scid add/edit engine dialog, put "smpmt=2" to the Parameters field (no quotes needed). Note that the POWERPC macro is poorly named as it only selects locking on os x and can be used on x86 also. I'm actually not that fond of crafty as there are several free engines that are stronger (not that it matters for my playing ability) and they're UCI so they're easier to configure in scid too. ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Scid-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/scid-users
