提高unixware文件系统性能( 二 )


times an interrupt will be created for the action.The norm though is to use the default RAID configuration
setting for the RAID Stripe Size and the default filesystem
block size for UnixWare 7, which is 1024.Disks - In general, the more disks, the better performance
as more spindles/heads are being used. The faster
the disk revolution, the better. You should also
check the cache provided by the disk from the
disk"s manufacturer.Filesystems - Assign individual filesystems to separate tasks to
reduce activity to the inode tables. In general,
accept the number of inodes recommended by UnixWare
7 when adding the filesystem, even when you are expecting
there to be a large number of small files written there.
In this case, you would normally expect to double the number
of recommended inodes.However, the "diskadd" command will actually give you an
inode value of unlimited.To check these settings, run this command on the filesystem
(slice) in question:mkfs -m /dev/rdsk/cXbXtXdXsXPlease note: During the Initial System Load (ISL), UnixWare2
& UnixWare 7.0.x will provide an Advanced option
during the creation of the filesystems, in the
Customise Filesystems option. By default, these
"vxfs" filesystems will have a 64K inode limit but
this can be changed to "Unlimited" in this
Advanced option.In the case of UnixWare 7, the best compromise for resilience
and performance is to use Raid 1 for the root filesystem on one
Logical Disk.For each filesystem required, have a Logical Drive consisting of
the necessary Raid 0 1 disks required for the size. If the number
of disks is a factor, which is the norm, then have a reduced number
of Logical Drives splitting the filesystems between them.For any server, this value may need to be altered to find the best
optimization, if the server is doing a combination of database and
i/o work.General speed testing, other than installing and testing your
application, would be:dd if=/dev/zero of=//tmp/testfile bs=1024 count=5000000(creates a 5GB file)This will monitor the timings of any differences set; use
"sar -d" to monitor disk activity of each logical disk.Also, before the server goes into production, remove disk(s) from
the RAID configurations to ensure that the RAID controller detects
that a disk has failed and that when it is re-inserted the RAID is
successfully rebuilt.Once in production, you may wish to look at the disk fragmentation
options available with the "fsadm" command, eg.:fsadm -p 1 -e -s -v /
fsadm -p 1 -D -d -s -v /【提高unixware文件系统性能】NOTE: Even if you optimally tune your vxfs filesystem, you might still
encounter performance problem when restoring from tape a large
number of small files. This overhead is only due to the vxfs
design. For instance, while using cpio to restore around 300,000
files with size of 4-14k, it has been reported that a drop in
performance was experienced from a 1-2M transfer rate (tape
specification) to a 500K transfer rate.

推荐阅读