Onstat-D
INFORMIX-OnLineVersion7.22.UC1--On-Line--Up00:00:38--423064Kbytes
Dbspaces
addressnumberflagsfchunknchunksflagsownername
ad5c1001111Ninformixrootdbs
ad5dc282121Ninformixdbs7
ad5dc983131Ninformixdbs8
3active,2047maximum
Chunks
addresschk/dbsoffsetpageRdpageWrpathname
ad5c17011501259289/dev/pa11
ad5c63822501111/dev/pa12
ad5c710335030/dev/pa13
3active,2047maximum
监视“pageRd”和“PageWr”列中页读和页写的数目,这样可以检查每个chunk访问的均衡情况。记住一个设备上可能会有多个chunk。
Onstat-F
InformixDynamicServer2000Version9.21.FC1--On-Line--Up18:05:32--s
FgWritesLRUWritesChunkWrites
0602010355973
addressflusherstatedata
c0000000ba33e8280I0=0X0
c0000000ba33f0281I0=0X0
c0000000ba33f8282I0=0X0
c0000000ba3400283I0=0X0
states:ExitIdleChunkLru
监视系统上发生的写操作的种类。前台写(FgWrites)应该受到限制,LRU写和chunk写会因为系统的不同而不同。
OLTP系统应该减少LRU写,但总会存在chunk写,但是LRU写会减少检查点发生的持续时间。在DSS系统中,chunk写应该大大提高,但仍会发生部分LRU写以限制前台写。在检查点时刻,监视页清除器(刷新器),确保它们都在忙于进行chunk写。
onstat-l
InformixDynamicServer2000Version9.21.FC1--On-Line--Up18:07:45--4
046800Kbytes
PhysicalLogging
Bufferbufusedbufsizenumpagesnumwritspages/io
P-245220003647872881266.62
phybeginphysizephyposphyused%used
1021595000003211664800.10
LogicalLogging
Bufferbufusedbufsizenumrecsnumpagesnumwritsrecs/pagespages/io
L-23100011052069515302241221.4213.6
SubsystemnumrecsLogSpaceused
OLDRSAM110520691038267280
addressnumberflagsuniqidbeginsizeused%used
c00000001807d4c04U-B----67243000352500025000100.00
c00000001807d4e05U-B----67253061dd2500025000100.00
c00000001807d5006U-B----672630c3852500025000100.00
c00000001807d5207U-B----672731252d2500025000100.00
c00000001807d5408U-B----67283186d52500025000100.00
c00000001807d5609U-B----672931e87d2500025000100.00
监视物理日志缓冲区的使用情况,观察输出第一行中bufsize和pages/io列,如pages/io除以bufsize大约为75%,则可以判定缓冲区的使用效率较高。如果小于75%,则物理日志缓冲区可能太大。如果该比率大于90%。则物理缓冲区太小。
采取同样的方法,监视逻辑日志缓冲区的使用情况。但如果使用无缓冲区日志,则缓冲区刷新要看事务的大小,而不是缓冲区的使用情况,这一点也可能总是成立。如果大多数事务比逻辑日志缓冲区页小,那么这一比例可能总是不搞,将逻辑缓冲日志保持其默认值。位物理日志文件应该在检查点发生时进行监测,确定该比率是否接近75%。调整良好的物理日志文件在检查点发生时几乎全满,如文件没满,则会浪费磁盘空间。还应该监视逻辑日志文件以确保它们已备份。使用sysmaster数据库,可确定那个逻辑日志文件是空闲的,在sytrans表中查找min(tx_logunip)>0的行,找出包含开放事务的最后哪个逻辑日志文件。
onstat-m
InformixDynamicServer2000Version9.21.FC1--On-Line--Up18:07:45--4
MessageLogFile:/informix/online_cqys.log
15:04:02Checkpointloguniq6739,logpos0x884360
15:09:06FuzzyCheckpointCompleted:durationwas0seconds,12066buffersno.
15:09:06Checkpointloguniq6739,logpos0x1719768
15:14:11FuzzyCheckpointCompleted:durationwas2seconds,3236buffersnot.
15:14:11Checkpointloguniq6739,logpos0x36aa018
15:19:14FuzzyCheckpointCompleted:durationwas0seconds,4645buffersnot.
15:19:14Checkpointloguniq6739,logpos0x39d8454
15:24:17FuzzyCheckpointCompleted:durationwas0seconds,5692buffersnot.
15:24:17Checkpointloguniq6739,logpos0x3bfb06c
15:29:20FuzzyCheckpointCompleted:durationwas0seconds,6731buffersnot.
15:29:20Checkpointloguniq6739,logpos0x3df959c
15:34:23FuzzyCheckpointCompleted:durationwas0seconds,7886buffersnot.
15:34:23Checkpointloguniq6739,logpos0x403f258