pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/40565: games/crafty builds, but doesn't run

The following reply was made to PR pkg/40565; it has been noted by GNATS.

From: David Holland <>
Subject: Re: pkg/40565: games/crafty builds, but doesn't run
Date: Sun, 8 Feb 2009 19:53:16 +0000

 On Fri, Feb 06, 2009 at 12:30:01PM +0000, 
  > $ crafty
  > unable to open book file [./book.bin].
  > book is disabled
  > unable to open book file [./books.bin].
  > ERROR.  shmget() failed, unable to allocate a shared memory segment.
  >         Please verify that your /proc/sys/kernel/shmmax value is
  >         large enough to allow allocating the amount of memory you
  >         are requesting.  "echo 1000000000 > /proc/sys/kernel/shmmax"
  >         will allow a segment up to one billion bytes.
 I vaguely recall from poking at crafty last summer that this error
 message arises not just from the condition it describes, but several
 other possible ones.
 But I suspect that's not the problem. In NetBSD-4 the maximum size for
 shared memory segments is part of the kernel config and compiled in.
 If you haven't taken any steps to change it, the limit is 8M, which is
 almost certainly not enough for crafty. So the first thing to do is
 probably try increasing that limit.
 (It is set with the line "options SHMMAXPGS=NNNN" in the kernel config
 file. I don't remember how much crafty wants; try doubling or tripling
 the default 2048 pages as a start.)
 It would also be nice if the error didn't give Linux-specific
 directions for adjusting the system shared memory limit, but I guess
 we can't have everything.
 David A. Holland

Home | Main Index | Thread Index | Old Index