CIO/DIO and JFS2 read ahead


 
Thread Tools Search this Thread
Operating Systems AIX CIO/DIO and JFS2 read ahead
# 1  
Old 11-12-2008
CIO/DIO and JFS2 read ahead

Hi Guys,

I wonder if after enabling CIO/DIO at the filesystem level and assuming that CIO/DIO will bypass the JFS2 read ahead available when not using CIO/DIO my questionis what parameters I can play with to tune/improve the CIO in order to obtain similar performance for sequential reads ( backups or big scans). I believe that while using file system caching/buffering read ahead plays a huge performance role. So any advise on how/what parameters I should consider modify in order to improve the CIO/DIO performance for large sequential reads.

Thanks in Advance.

Harby.
# 2  
Old 11-12-2008
AFAIK there is no such thing with DIO/CIO to improve throughput of large sequential reads like jfs/jfs2 do with their read-ahead option. I.e. DIO/CIO even may deteriorate performance of applications that read data most of the time.
# 3  
Old 11-13-2008
Maybe have a look in this and find something useful on the topic:

http://www.ibm.com/servers/aix/white...b_perf_aix.pdf
# 4  
Old 11-14-2008
Thanks but I have read that document already. Sometimes is better hear from someone else's experiences. I thought I would be worthwhile asking.
# 5  
Old 11-14-2008
Furthermore to this topic so basically for a Warehouse Database server with databases bigger than 500 Gigs and where a lot of large sequential reads are necessary CIO won't add any benefit to it in terms of performance?.
# 6  
Old 11-14-2008
As Shockneck said, CIO/DIO is said to be better for random reads/write afaik.

You could check with vmstat -v if there are still any blocked buffers counting up and tune them with the appropriate ioo parameters.
Also you can check about aio, if there is any usage of it or something close to it's limits with "iostat -A" and also the shift+a option in nmon, to see how many aioservers are being used currently.

Edit:
Ah I see we had a foregoing discussion already here
https://www.unix.com/unix-advanced-ex...evice-cio.html

Are you sure you need cio? You hadn't shown the "vmstat -v" back then still.

There is also the possibility to change attributes for FC adapter (like lg_term_dma, max_xfer_size and num_cmd_elems) and disks (like queue_depth or max_coalesce) with chdev and reading them out with lsattr. But before doing that, I would start to sort things out with AIO if appropriate and vmstat -v/iostat.

Last edited by zaxxon; 11-14-2008 at 08:23 AM.. Reason: Added something, and something more
# 7  
Old 11-14-2008
Quote:
Originally Posted by zaxxon
Also you can check about aio, if there is any usage of it or something close to it's limits with "iostat -A" and also the shift+a option in nmon, to see how many aioservers are being used currently.
pstat -a | grep [[-c]] aio

does the same - display/count the used asynchronous I/O servers. Note, though, that you have to deduct 1 from the result (the server process). Also note the correclation with the number of CPUs: The number you enter on the "chdev"-command line with the "maxservers" attribute is the number of servers per CPU. On an 8-way system the command

chdev -l aio0 -P -a maxservers=10

will cause (a maximum of) 81 aio servers (1 server process and 80 worker processes) to come into life.

I hope this helps.

bakunin
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Two days ahead

Hi, I have a code that will show one day ahead, how to make it show two days ahead p-dev1-db-tst:/$ day=$(TZ=IST-24 date +%d) p-dev1-db-tst:/$ echo $day 17 p-dev1-db-tst:/$ Regards, Adam (5 Replies)
Discussion started by: answer
5 Replies

2. AIX

AIX JFS2 content

Hello! I have a LPAR with 51GB RAM topas shows 21% of memory for client pages (~11Gb) svmon -G show 2906772 client pages in use (~11Gb) but then i try to investigate per process client memory usage svmon -P -O filtertype=client and summarize inuse column, i get only 347880 pages... (1 Reply)
Discussion started by: sys
1 Replies

3. AIX

Slow NFS when cio/dio enabled

Hi, I have a bit of a NFS problem on AiX 6.1 : When I set the mount to cio and dio - needed for a database app - Everything slows down. The following is copying 700mb, top one is a normal mount bottom one is a mount with the cio/dio option enabled : # ./a.sh Wed Jan 11 11:41:24 GMT 2012... (5 Replies)
Discussion started by: AJCG1976
5 Replies

4. Red Hat

How to enable AIO and DIO on rhel5 64bit?

Hi Friends, Please help me to understand, how to enable async disk IO and Direct disk IO in ext3 filesystem on rhel5. Regards, Arumon (0 Replies)
Discussion started by: arumon
0 Replies

5. AIX

Jfs and jfs2

Hi all, Can anyone define the difference between jfs and jfs2 filesystem as well as usage of jfs log files.... Thanks.... (7 Replies)
Discussion started by: sumathi.k
7 Replies

6. Shell Programming and Scripting

PERL look ahead and behind ...

I would like to search a router config file for "ip address $ip", once found, I want to grab the line just before that contains "interface $interfacetype" basically saying, 10.3.127.9 is assigned to "Loopback1" given the below as an example. interface Loopback1 ip address 10.3.127.9... (1 Reply)
Discussion started by: popeye
1 Replies

7. AIX

JFS and JFS2

hi all, can sumbody give me a link which gives the basic layout of JFS, JFS2 and the veritas file system. and i also want to know about the data structures used in this filsystem thanx in advance (0 Replies)
Discussion started by: anwerreyaz
0 Replies

8. HP-UX

Read-ahead in HP-UX

One cool thing about unix is that it predicts disk blocks that you may need and tries to have them in core before you need them. Over the years, various unix vendors tried various algorithms to improve performance. HP has patented their latest algorithm... Multi-threaded Read Ahead Prediction... (0 Replies)
Discussion started by: Perderabo
0 Replies
Login or Register to Ask a Question