AIX 5.3 AIO (asynchronous I/O) Tuning

Source: Internet
Author: User

Here is a quick and easy way to tell if you have not allocated enough aioservers on your AIX 5.3 system. First you want to check how your have configured currently:

$ Lsattr-El aio0
AutoConfig available state to be configured at system restart true
Fastpath enable state of fast path true
Kprocprio 39 server priority true
Maxreqs
12288Maximum number of requests
True
Maxservers
120Maximum number of servers per CPU
True
Minservers
80Minimum number of servers
True

 

The 'servers' setting on a 4 CPU system wocould give you a maximum
Count of 480 aioserver kernel threads. If SMT is enabled-which makes
It appear as if each CPU is 2 CPUs-the maximum number of aioserver
Kernel threads wocould be 960 (480*2). You can check to see if SMT is
Enabled as root by usingSmtctl (5)
Command-you can also
Enable or disable it with the same command. If you don't have root
Access, you can also find out by usingLparstat
Command, seen below from a 4way lpar:

 

$ Lparstat
System Configuration: TYPE = dedicated mode = cappedSMT = on
Lcpu = 8
Mem = 16384

The 'minservers' setting is the total number of aioserver Kernel
Threads that will start at boot-this is not a per CPU or per logical
CPU value.

The 'maxreqs 'setting is the maximum numberOutstanding
Or pending requests that the kernel will allow at any one time.

Aioserver kernel threads do not go away once started, until
System reboots. So, you can tell how many your applications have
Requested/required concurrently since boot by using the ps command:

 

$ PS-ek | grep aioserver | grep-V posix_aioserver | WC-l
960

It appears that all 960 aioservers have been started, so sometime
Between when the system booted and this very instant, something needed
All of them-And possibly more
. The '-k' argument toPS
Command lists kernel threads (also known as kprocs) in addition to user-space processes.

Another test is to see how much CPU time each of the aioserver. If
All of the aioserver threads have a very similar amount of CPU time,
And if the amount of CPU time consumed is significant-Chances are you
Need to configure more of them. Depending on how long the OS has been
Running, you may need to add quite a few more.

 

$ PS-ek | grep aioserver | more
118880-1: 31
Aioserver
127062-1: 32
Aioserver
...

You can change the AIO parameters for your system withChdev
Command onAio0
Pseudo-device, or by runningSmitty AIO
On AIX 5.3 systems-You can even use the poorly encrypted entedAioo
Command. An important thing to remember though-is that you can set the values online, with no interruption of service-But
-They will not take affect until the next time the kernel is booted.

 

Some additional documentation is available at the locations below:

 

Http://publib.boulder.ibm.com/infocenter/pseries/v5r3/topic/com.ibm.aix.prftungd/doc/prftungd/async_disk_io_perf_tuning.htm

 

Http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp? Topic =/COM. IBM. Aix. prftungd/doc/prftungd/async_io.htm

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.