作者in2 (集十只仙女有赏:P)
看板PttCurrent
标题关於 current Ptt所要用的记忆体
时间Fri Jun 7 06:37:07 2002
请记得至 include/config.h (或用 pttbbs.conf override 掉)
将一些 limit改小, 如
MAX_USERS (21 bytes/each in shm)
MAX_ACTIVE (3456 bytes/each in shm)
MAX_BOARD (6420 bytes/each in shm)
您可能须要更动 kernel 对於 shared memory的最大值,
(in LINT , FreeBSD 4.6-RC)
#
# These three options provide support for System V Interface
# Definition-style interprocess communication, in the form of shared
# memory, semaphores, and message queues, respectively.
#
# System V shared memory and tunable parameters
options SYSVSHM # include support for shared memory
options SHMMAXPGS=1025 # max amount of shared memory pages (4k on i386\
)
options SHMALL=1025 # max amount of shared memory (bytes)
options SHMMAX="(SHMMAXPGS*PAGE_SIZE+1)"
# max shared memory segment size (bytes)
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.112.30.143
※ 编辑: in2 来自: 140.112.30.143 (06/07 06:42)