mbuf_heap_psize = 65536 memory_affinity = 1
memory_frames = 1003520 memplace_data = 2 memplace_mapped_file = 2 memplace_shm_anonymous = 2 memplace_shm_named = 2 memplace_stack = 2 memplace_text = 2 memplace_unmapped_file = 2 mempools = 1 minfree = 960 minperm = 192120 minperm% = 20 nokilluid = 0 npskill = 16384 npsrpgmax = 131072 npsrpgmin = 98304 npsscrubmax = 131072 npsscrubmin = 98304 npswarn = 65536 num_spec_dataseg = 0 numpsblks = 2097152 page_steal_method = 0 pagecoloring = n/a pinnable_frames = 838649
pta_balance_threshold = n/a relalias_percentage = 0 rpgclean = 0 rpgcontrol = 2 scrub = 0 scrubclean = 0 soft_min_lgpgs_vmpool = 0 spec_dataseg_int = 512 strict_maxclient = 1 strict_maxperm = 0 v_pinshm = 0 vm_modlist_threshold = -1 vmm_fork_policy = 1 vmm_mpsize_support =
查看内核参数的含义 -L [ Tunable ]
Lists the characteristics of one or all tunables, one per line, using the following format:
NAME CUR DEF BOOT MIN MAX UNIT TYPE DEPENDENCIES
-------------------------------------------------------------------------------- memory_frames 128K 128K 4KB pages S
-------------------------------------------------------------------------------- maxfree 1088 1088 130 16 200K 4KB pages D minfree memory_frames
-------------------------------------------------------------------------------- minfree 960 960 122 8 200K 4KB pages D maxfree memory_frames
-------------------------------------------------------------------------------- ... where:
CUR = current value DEF = default value BOOT = reboot value MIN = minimal value MAX = maximum value
UNIT = tunable unit of measure
TYPE = parameter type: D (for Dynamic), S (for Static), R for Reboot), B (for Bosboot), M (for Mount), I (for Incremental), C (for Connect), and d (for Deprecated)
DEPENDENCIES = list of dependent tunable parameters, one per line
# vmo -L minperm%
NAME CUR DEF BOOT MIN MAX UNIT TYPE DEPENDENCIES
minperm% 20 20 20 1 100 % memory D maxperm% maxclient%
# vmo -L maxperm%
NAME CUR DEF BOOT MIN MAX UNIT TYPE DEPENDENCIES
maxperm% 80 80 80 1 100 % memory D minperm% maxclient%
# vmo -L maxclient%
NAME CUR DEF BOOT MIN MAX UNIT TYPE DEPENDENCIES
maxclient% 80 80 80 1 100 % memory D maxperm% minperm%
# vmo -L lru_file_repage
NAME CUR DEF BOOT MIN MAX UNIT TYPE DEPENDENCIES
lru_file_repage 1 1 1 0 1 boolean D
AIX 下磁盘 I/O 性能分析
磁盘 I/O 的概念
I/O 的概念,从字义来理解就是输入输出。操作系统从上层到底层,各个层次之间均存在 I/O。比如,CPU 有 I/O,内存有 I/O, VMM 有 I/O, 底层磁盘上也有 I/O,这是广义上的 I/O. 通常来讲,一个上层的 I/O 可能会产生针对磁盘的多个 I/O,也就是说,上层的 I/O 是稀疏的,下层的 I/O 是密集的。
磁盘的 I/O,顾名思义就是磁盘的输入输出。输入指的是对磁盘写入数据,输出指的是从磁盘读出数据。
回页首
衡量磁盘 I/O 性能的指标
图 1. 物理磁盘的架构以及常见磁盘类型
我们常见的磁盘类型有 ATA、SATA、FC、SCSI、SAS。这几种磁盘中,服务器常用的是 SAS 和 FC 磁盘,一些高端存储也使用 SSD 盘。每一种磁盘的性能是不一样的。
我们在测试工作中,衡量磁盘 I/O 性能主要参考 IOPS 和吞吐量两个参数。下面,将介绍一下这两个参数的含义。
IOPS 与吞吐量的概念
磁盘的 IOPS,也就是在一秒内,磁盘进行多少次 I/O 读写。
磁盘的吞吐量,也就是每秒磁盘 I/O 的流量,即磁盘写入加上读出的数据的大小。
IOPS 与吞吐量的关系
每秒 I/O 吞吐量= IOPS* 平均 I/O SIZE。从公式可以看出: I/O SIZE 越大,IOPS 越高,那么每秒 I/O 的吞吐量就越高。因此,我们会认为 IOPS 和吞吐量的数值越高越好。实际上,对于一个磁盘来讲,这两个参数均有其最大值,而且这两个参数也存在着一定的关系。 下图为各种磁盘的 IOPS 极限值。
表 1. 常见磁盘类型及其 IOPS