TimesTen和其它的数据库产品一样,对信号量也有其具体的需求,但不同的平台上稍有差异。针对信号量总的消耗,在TimesTen的安装文档中描述如下:

Semaphores

TimesTen consumes 1 SEMMNI per active data store, plus 1 additional SEMMNI per TimesTen instance where Client/Server communication is done through shared memory. For each active data store, TimesTen consumes 100 SEMMSL if the Connections attribute is set to the default value, and one additional SEMMSL for each connection above the default.

也就是说 TimesTen 每个活动的 DataStore 消耗 1 SEMMIN,另外如果该Instance中Client/Server是通过share memory方式通讯的,则每个这种Instance再额外消耗 1 SEMMIN。每个活动的 DataStore 消耗 100 SEMMSL (在Connections是缺省值64的情况下),超出64个以外的Connection,每个消耗 1 SEMMSL.

不同的平台信号量的值设置有些差异,比如在Linux平台上,建议设置为:

kernel.sem = 250 32000 128 100

在Solaris平台上,则为:

set semsys:seminfo_semmni = 20
set semsys:seminfo_semmsl = 512
set semsys:seminfo_semmns = 2000
set semsys:seminfo_semmnu = 2000
 

在HP-UX平台上,只是提到:

On HP-UX systems, to connect to more than 2 data stores simultaneously, you must increase the value of the kernel parameter semmns.

所以一般上也不用怎么修改。

Aix 平台上不用动,缺省值就够了。

具体可以参考installation.pdf 中关于安装之前的要求一章。

留言已经关闭