HP c-Class Performance Tuning manual Preallocatemb

Page 19

NOTE: HP recommends using this option only with a 4 KiB sector size.

Values

Description

 

 

<list of serial

Indicates devices that need memory pre-allocated. A null

numbers>

list disables the pre-allocation of memory.

preallocate_mb

Description

Specifies the number of megabytes of memory to pre-allocate. The sector size is set with the fio-formatcommand-line utility using the -boption. Larger sector sizes result in less memory utilization.

Values

Description

 

 

0 (default)

Use the pre-allocate size calculator algorithm (do not

 

specify the size of pre-allocated memory).

<size, MB>

Disable the pre-allocate size calculator algorithm and

 

pre-allocate the amount of memory specified in MB.

expected_io_size

Description

This module parameter is useful when preallocate_memory is set through the Management Tool or a supplied list of serial numbers and preallocate_mb is left at the default (0).

It overrides the value provided to the pre-allocate size calculator algorithm. The default is built to handle worst-case memory utilization (which is the sector size of the device). For example, if your application writes I/O blocks larger than the sector size (such as when the drive is formatted for 512 byte sectors, but the application does 8 KiB I/O, then setting this parameter to 8192 when memory pre-allocation is enabled will significantly reduce the amount of pre-allocated memory.

Values

Description

 

 

0 (Default)

Don’t pre-allocate memory

<size, MB>

Allocate the specified amount of memory, in megabytes.

General tuning techniques 19

Image 19
Contents HP IO Accelerator Performance Tuning Guide Page Contents Setting Windows driver affinity Introduction About the Performance and Tuning GuideVerifying Linux system performance System performanceWrite bandwidth test System performance Verifying Windows system performance with Iometer Improperly configured benchmark Debugging performance issuesOversubscribed bus Handling PCIe errors PCIe link width improperly negotiated CPU thermal throttling or auto-idling Using CP and other system utilities Slow performance using RAID5 on LinuxBenchmarking through a filesystem To avoid this issue. For more information, see the patch Using direct I/O, unbuffered, or zero copy General tuning techniquesMultiple outstanding IOs $ dd if=/dev/zero of=/dev/fioX bs=10M oflag=direct Pre-conditioning$ echo 4096 /sys/block/fio name/queue/nrrequests Pre-allocating memoryPreallocatemb Increased steady-state write performance with fio-format Tuning techniques for writesStripewidth = dbd * stride Linux filesystem tuningExt2-3-4 tuning Stride = chunk size / filesystem block sizeOptions iomemory-vsl preallocatememory=1072,4997,6710,10345 Using the IO Accelerator as swap spaceCompiling the fio benchmark Fio benchmark$ tar xjvf fio-X.Y.Z.tar.bz2 $ cd fio-X.Y.Z Page Fd = openfilename, Owronly Odirect Programming using direct I/OUsing direct I/O on Linux Fd = openfilename, OwronlyUsing direct I/O on Windows ++ code sample Programming using direct I/O Programming using direct I/O Windows driver affinity Setting Windows driver affinityCreate the SetWorkerAffinity2 tag of type Regdword Acronyms and abbreviations Index Index