SlideShare a Scribd company logo
© 2011 IBM CorporationDecember 16, 2015
Improve the Speed and Performance
John F. Miller III, IBM
Scott Lashley, IBM
Information Management – IDS 11
© 2011 IBM Corporation2
Network Messaging
Information Management – IDS 11
© 2011 IBM Corporation3
Optimizing Database Network Messaging
• Data Buffer Management
• Optimize Open-Fetch-Close (OPTOFC)
• Deferred Prepare
• Auto Free
Information Management – IDS 11
© 2011 IBM Corporation4
Examining SQL Network Messages
– Network messages sent between the application and the database
engine to accomplish SQL operations
PREPARE stmt FROM
“select * from t where a > ?”;
DECLARE cursor_1 from :stmnt;
OPEN cursor_1 USING var_1;
FETCH cursor_1 into results_1;
CLOSE cursor_1;
FREE cursor_1;
FREE stmt;
PREPARE stmt FROM
“select * from t where a > ?”;
DECLARE cursor_1 from :stmnt;
OPEN cursor_1 USING var_1;
FETCH cursor_1 into results_1;
CLOSE cursor_1;
FREE cursor_1;
FREE stmt;
Information Management – IDS 11
© 2011 IBM Corporation5
PREP/DEC Small Sent - Medium Returned
OPEN Small Sent - Medium Returned
FETCH Small Sent - Medium Returned
CLOSE Small Sent - Small Returned
FREE Small Sent - Small Returned
PREP/DEC Small Sent - Medium Returned
OPEN Small Sent - Medium Returned
FETCH Small Sent - Medium Returned
CLOSE Small Sent - Small Returned
FREE Small Sent - Small Returned
Normal Message Traffic
– 128 KB of data returned by the select
– No blob data and rows smaller than 4KB
Total number of messages sent = 72
32x
Information Management – IDS 11
© 2011 IBM Corporation6
Improving SQL Network Messages
– FET_BUF_SIZE
 Set the buffer size for the fetch/insert buffers
 Size is specified in bytes up to 32KB
 Requires no application changes
 Yields similar performance as fetch array
– OPTOFC – Optimize Open Fetch Close
 Requires only error checking changes
 Delays sending the open until the first fetch is requested
by the application
 The engine will close the cursor when the last row is
processed
– Deferred Prepare
 Control whether a client process postpones sending a
PREPARE statement to the database server until the
OPEN or EXECUTE statement is sent
– Auto Free
 Frees the cursor when the cursor is closed
Information Management – IDS 11
© 2011 IBM Corporation7
PREP/DEC Small Sent - Medium Returned
OPEN/FETCH Medium Sent - 32KB Returned
FETCH Small Sent - 32KB Returned
FETCH/CLOSE Medium Sent - 32KB Returned
FREE Small Sent - Small Returned
PREP/DEC Small Sent - Medium Returned
OPEN/FETCH Medium Sent - 32KB Returned
FETCH Small Sent - 32KB Returned
FETCH/CLOSE Medium Sent - 32KB Returned
FREE Small Sent - Small Returned
2x
Total number of messages sent = 12
OPTOFC Message Traffic
OPTOFC enabled
Fetch buffer set at 32KB
Information Management – IDS 11
© 2011 IBM Corporation8
PREP/DEC Small Sent - Medium Returned
OPEN Small Sent - Medium Returned
FETCH Small Sent - Medium Returned
CLOSE Small Sent - Small Returned
PREP/DEC Small Sent - Medium Returned
OPEN Small Sent - Medium Returned
FETCH Small Sent - Medium Returned
CLOSE Small Sent - Small Returned
Total number of messages sent = 8
Small Select Statements Traffic Improvement
PREP/DEC/OPEN/FETCH/CLOSE Medium Sent - 32KB ReturnedPREP/DEC/OPEN/FETCH/CLOSE Medium Sent - 32KB Returned
Total number of messages sent = 2
OPTOFC enabled
Fetch buffer set at 32KB
Defer Prepare enabled
Information Management – IDS 11
© 2011 IBM Corporation9
Are My Application Using OPTOFC?
session effective #RSAM total used dynamic
id user user tty pid hostname threads memory memory explain
145 informix - 20 30096 talo 1 274432 270896 off
tid name rstcb flags curstk status
232 sqlexec 44d28d78 Y--P--- 12272 cond wait cmd_cond -
Memory pools count 2
name class addr totalsize freesize #allocfrag #freefrag
145 V 46853040 270336 2728 259 6
name free used name free used
overhead 0 6576 resident 0 72
scb 0 144 opentable 0 8656
filetable 0 1344 ru 0 600
misc 0 1088 log 0 16536
sqscb info
scb sqscb optofc pdqpriority sqlstats optcompind directives
45ce0028 4620c028 0 0 0 2 1
Sess SQL Current Iso Lock SQL ISAM F.E.
Id Stmt type Database Lvl Mode ERR ERR Vers Explain
145 EXEC PROCEDURE sysadmin CR Not Wait 0 0 9.24 Off
Information Management – IDS 11
© 2011 IBM Corporation10
Network Performance Improvements
 Caching network services
 Multiple listener threads for a
single server name
 Multiple file descriptor servers
 Previous network improvements
– Dynamic start and stop of listener
threads
– Pre-allocate users session
Information Management – IDS 11
© 2011 IBM Corporation11
Network Performance - Caching Network Services
 Database caching of Host, Services, Users and
Groups
 Avoids going to the operating system for each
network call
 Administrator defined timeout value set for
network caches
 ONCONFIG example
NS_CACHE host=900,service=900,user=900,group=900
 Each cache is dynamically configurable
Information Management – IDS 11
© 2011 IBM Corporation12
Network Performance – Multiple Listeners
 Able to define multiple listener threads for a single
DBSERVERNAME and/or DBSERVERALIAS
 Add the number of listeners to the end of the alias
 EXAMPLE
– To start three listener threads for the idsserver
– Modify the ONCONFIG as follows
DBSERVERNAME idsserver-3
12 Page 12
Information Management – IDS 11
© 2011 IBM Corporation13
Network Performance Results
 My simple network performance
tests
– 200 users connecting and
disconnecting
 Connection throughput on an AIX
server improved by 480%
 Connection throughput on a
Linux server improved by 720%
Computer Type Without
Improvements
Utilizing
Improvements
AIX 64 2m 5s 27s
Linux 64 10m 11s 1m 20s
Information Management – IDS 11
© 2011 IBM Corporation14

More Related Content

What's hot

3- NIC Teaming
3- NIC Teaming3- NIC Teaming
3- NIC Teaming
Fahad Al-Balushi
 
US07FFT-mod_ftp.ppt
US07FFT-mod_ftp.pptUS07FFT-mod_ftp.ppt
US07FFT-mod_ftp.ppt
webhostingguy
 
Factory setup wsa_9.2_v1.0
Factory setup wsa_9.2_v1.0Factory setup wsa_9.2_v1.0
Factory setup wsa_9.2_v1.0
Dhruv Sharma
 
Season 3 [free OpManager training]_Part1- Discovery and classification
Season 3 [free OpManager training]_Part1- Discovery and classificationSeason 3 [free OpManager training]_Part1- Discovery and classification
Season 3 [free OpManager training]_Part1- Discovery and classification
ManageEngine, Zoho Corporation
 
Eduroam workshop nic mitev probes - networkshop44
Eduroam workshop  nic mitev probes - networkshop44Eduroam workshop  nic mitev probes - networkshop44
Eduroam workshop nic mitev probes - networkshop44
Jisc
 
Lab 10 instruction 2017
Lab 10 instruction   2017Lab 10 instruction   2017
Lab 10 instruction 2017
trayyoo
 
Apache ppt
Apache pptApache ppt
Apache ppt
poornima sugumaran
 
Web Server Technologies I: HTTP & Getting Started
Web Server Technologies I: HTTP & Getting StartedWeb Server Technologies I: HTTP & Getting Started
Web Server Technologies I: HTTP & Getting Started
Port80 Software
 
Firewall - Failover & Transparent Firewall
Firewall - Failover & Transparent FirewallFirewall - Failover & Transparent Firewall
Firewall - Failover & Transparent Firewall
NetProtocol Xpert
 
Webserver Administration: Apache as a case study
Webserver Administration: Apache as a case studyWebserver Administration: Apache as a case study
Webserver Administration: Apache as a case study
Tata Consultancy Services
 
Presentation of Performance Vision Version 3.3
Presentation of Performance Vision Version 3.3Presentation of Performance Vision Version 3.3
Presentation of Performance Vision Version 3.3
PerformanceVision (previously SecurActive)
 
What are ACLs?
What are ACLs?What are ACLs?
What are ACLs?
NetProtocol Xpert
 
SVR401: DirectAccess Technical Drilldown, Part 1 of 2: IPv6 and transition te...
SVR401: DirectAccess Technical Drilldown, Part 1 of 2: IPv6 and transition te...SVR401: DirectAccess Technical Drilldown, Part 1 of 2: IPv6 and transition te...
SVR401: DirectAccess Technical Drilldown, Part 1 of 2: IPv6 and transition te...
Louis Göhl
 
Meeting 13. web server i
Meeting 13. web server iMeeting 13. web server i
Meeting 13. web server i
Syaiful Ahdan
 
[Season - 3 Free OpManager Training] Monitoring Server Performance
[Season - 3 Free OpManager Training] Monitoring Server Performance[Season - 3 Free OpManager Training] Monitoring Server Performance
[Season - 3 Free OpManager Training] Monitoring Server Performance
ManageEngine, Zoho Corporation
 
Performance vision Version 3.0 - What's New
Performance vision Version 3.0 - What's NewPerformance vision Version 3.0 - What's New
Performance vision Version 3.0 - What's New
PerformanceVision (previously SecurActive)
 
It nv51 instructor_ppt_ch9
It nv51 instructor_ppt_ch9It nv51 instructor_ppt_ch9
It nv51 instructor_ppt_ch9
newbie2019
 
OCS Inventory
OCS InventoryOCS Inventory
OCS Inventory
Venki
 
Updated UNIX RESUME 7+Yrs- Kalesha
Updated UNIX RESUME 7+Yrs- KaleshaUpdated UNIX RESUME 7+Yrs- Kalesha
Updated UNIX RESUME 7+Yrs- Kalesha
Kalesha Ananthu
 
Oracle database 12c client quick installation guide 3
Oracle database 12c client quick installation guide 3Oracle database 12c client quick installation guide 3
Oracle database 12c client quick installation guide 3
bupbechanhgmail
 

What's hot (20)

3- NIC Teaming
3- NIC Teaming3- NIC Teaming
3- NIC Teaming
 
US07FFT-mod_ftp.ppt
US07FFT-mod_ftp.pptUS07FFT-mod_ftp.ppt
US07FFT-mod_ftp.ppt
 
Factory setup wsa_9.2_v1.0
Factory setup wsa_9.2_v1.0Factory setup wsa_9.2_v1.0
Factory setup wsa_9.2_v1.0
 
Season 3 [free OpManager training]_Part1- Discovery and classification
Season 3 [free OpManager training]_Part1- Discovery and classificationSeason 3 [free OpManager training]_Part1- Discovery and classification
Season 3 [free OpManager training]_Part1- Discovery and classification
 
Eduroam workshop nic mitev probes - networkshop44
Eduroam workshop  nic mitev probes - networkshop44Eduroam workshop  nic mitev probes - networkshop44
Eduroam workshop nic mitev probes - networkshop44
 
Lab 10 instruction 2017
Lab 10 instruction   2017Lab 10 instruction   2017
Lab 10 instruction 2017
 
Apache ppt
Apache pptApache ppt
Apache ppt
 
Web Server Technologies I: HTTP & Getting Started
Web Server Technologies I: HTTP & Getting StartedWeb Server Technologies I: HTTP & Getting Started
Web Server Technologies I: HTTP & Getting Started
 
Firewall - Failover & Transparent Firewall
Firewall - Failover & Transparent FirewallFirewall - Failover & Transparent Firewall
Firewall - Failover & Transparent Firewall
 
Webserver Administration: Apache as a case study
Webserver Administration: Apache as a case studyWebserver Administration: Apache as a case study
Webserver Administration: Apache as a case study
 
Presentation of Performance Vision Version 3.3
Presentation of Performance Vision Version 3.3Presentation of Performance Vision Version 3.3
Presentation of Performance Vision Version 3.3
 
What are ACLs?
What are ACLs?What are ACLs?
What are ACLs?
 
SVR401: DirectAccess Technical Drilldown, Part 1 of 2: IPv6 and transition te...
SVR401: DirectAccess Technical Drilldown, Part 1 of 2: IPv6 and transition te...SVR401: DirectAccess Technical Drilldown, Part 1 of 2: IPv6 and transition te...
SVR401: DirectAccess Technical Drilldown, Part 1 of 2: IPv6 and transition te...
 
Meeting 13. web server i
Meeting 13. web server iMeeting 13. web server i
Meeting 13. web server i
 
[Season - 3 Free OpManager Training] Monitoring Server Performance
[Season - 3 Free OpManager Training] Monitoring Server Performance[Season - 3 Free OpManager Training] Monitoring Server Performance
[Season - 3 Free OpManager Training] Monitoring Server Performance
 
Performance vision Version 3.0 - What's New
Performance vision Version 3.0 - What's NewPerformance vision Version 3.0 - What's New
Performance vision Version 3.0 - What's New
 
It nv51 instructor_ppt_ch9
It nv51 instructor_ppt_ch9It nv51 instructor_ppt_ch9
It nv51 instructor_ppt_ch9
 
OCS Inventory
OCS InventoryOCS Inventory
OCS Inventory
 
Updated UNIX RESUME 7+Yrs- Kalesha
Updated UNIX RESUME 7+Yrs- KaleshaUpdated UNIX RESUME 7+Yrs- Kalesha
Updated UNIX RESUME 7+Yrs- Kalesha
 
Oracle database 12c client quick installation guide 3
Oracle database 12c client quick installation guide 3Oracle database 12c client quick installation guide 3
Oracle database 12c client quick installation guide 3
 

Similar to Understanding Informix Network Performance Features

Oracle Solaris 11.1 New Features
Oracle Solaris 11.1 New FeaturesOracle Solaris 11.1 New Features
Oracle Solaris 11.1 New Features
Orgad Kimchi
 
Oracle Client Failover - Under The Hood
Oracle Client Failover - Under The HoodOracle Client Failover - Under The Hood
Oracle Client Failover - Under The Hood
Ludovico Caldara
 
Improve speed and performance of informix 11.xx part 2
Improve speed and performance of informix 11.xx   part 2Improve speed and performance of informix 11.xx   part 2
Improve speed and performance of informix 11.xx part 2
am_prasanna
 
Open Networking through Programmability
Open Networking through ProgrammabilityOpen Networking through Programmability
Open Networking through Programmability
Tal Lavian Ph.D.
 
11g Identity Management - InSync10
11g Identity Management - InSync1011g Identity Management - InSync10
11g Identity Management - InSync10
Peter McLarty
 
BigData Clusters Redefined
BigData Clusters RedefinedBigData Clusters Redefined
BigData Clusters Redefined
DataWorks Summit
 
DB2 pureScale Overview Sept 2010
DB2 pureScale Overview Sept 2010DB2 pureScale Overview Sept 2010
DB2 pureScale Overview Sept 2010
Laura Hood
 
Under the Hood 11g Identity Management
Under the Hood  11g Identity ManagementUnder the Hood  11g Identity Management
Under the Hood 11g Identity Management
InSync Conference
 
RESUME SSTOMAR1
RESUME SSTOMAR1RESUME SSTOMAR1
RESUME SSTOMAR1
shivraj singh tomar
 
RESUME SSTOMAR1
RESUME SSTOMAR1RESUME SSTOMAR1
RESUME SSTOMAR1
shivraj singh tomar
 
RESUME SSTOMAR1
RESUME SSTOMAR1RESUME SSTOMAR1
RESUME SSTOMAR1
shivraj singh tomar
 
RESUME SSTOMAR1
RESUME SSTOMAR1RESUME SSTOMAR1
RESUME SSTOMAR1
shivraj singh tomar
 
LF_DPDK_Mellanox bifurcated driver model
LF_DPDK_Mellanox bifurcated driver modelLF_DPDK_Mellanox bifurcated driver model
LF_DPDK_Mellanox bifurcated driver model
LF_DPDK
 
MySQL HA with PaceMaker
MySQL HA with  PaceMakerMySQL HA with  PaceMaker
MySQL HA with PaceMaker
Kris Buytaert
 
Modul 1 integration island
Modul 1   integration islandModul 1   integration island
Modul 1 integration island
CyberSpace
 
How to get started with Oracle Cloud Infrastructure
How to get started with Oracle Cloud InfrastructureHow to get started with Oracle Cloud Infrastructure
How to get started with Oracle Cloud Infrastructure
Simo Vilmunen
 
RESUME SSTOMAR1
RESUME SSTOMAR1RESUME SSTOMAR1
RESUME SSTOMAR1
shivraj singh tomar
 
Linux Based Advanced Routing with Firewall and Traffic Control
Linux Based Advanced Routing with Firewall and Traffic ControlLinux Based Advanced Routing with Firewall and Traffic Control
Linux Based Advanced Routing with Firewall and Traffic Control
sandy_vasan
 
RESUME SSTOMAR1
RESUME SSTOMAR1RESUME SSTOMAR1
RESUME SSTOMAR1
shivraj singh tomar
 
OpenFlow: What is it Good For?
OpenFlow: What is it Good For? OpenFlow: What is it Good For?
OpenFlow: What is it Good For?
APNIC
 

Similar to Understanding Informix Network Performance Features (20)

Oracle Solaris 11.1 New Features
Oracle Solaris 11.1 New FeaturesOracle Solaris 11.1 New Features
Oracle Solaris 11.1 New Features
 
Oracle Client Failover - Under The Hood
Oracle Client Failover - Under The HoodOracle Client Failover - Under The Hood
Oracle Client Failover - Under The Hood
 
Improve speed and performance of informix 11.xx part 2
Improve speed and performance of informix 11.xx   part 2Improve speed and performance of informix 11.xx   part 2
Improve speed and performance of informix 11.xx part 2
 
Open Networking through Programmability
Open Networking through ProgrammabilityOpen Networking through Programmability
Open Networking through Programmability
 
11g Identity Management - InSync10
11g Identity Management - InSync1011g Identity Management - InSync10
11g Identity Management - InSync10
 
BigData Clusters Redefined
BigData Clusters RedefinedBigData Clusters Redefined
BigData Clusters Redefined
 
DB2 pureScale Overview Sept 2010
DB2 pureScale Overview Sept 2010DB2 pureScale Overview Sept 2010
DB2 pureScale Overview Sept 2010
 
Under the Hood 11g Identity Management
Under the Hood  11g Identity ManagementUnder the Hood  11g Identity Management
Under the Hood 11g Identity Management
 
RESUME SSTOMAR1
RESUME SSTOMAR1RESUME SSTOMAR1
RESUME SSTOMAR1
 
RESUME SSTOMAR1
RESUME SSTOMAR1RESUME SSTOMAR1
RESUME SSTOMAR1
 
RESUME SSTOMAR1
RESUME SSTOMAR1RESUME SSTOMAR1
RESUME SSTOMAR1
 
RESUME SSTOMAR1
RESUME SSTOMAR1RESUME SSTOMAR1
RESUME SSTOMAR1
 
LF_DPDK_Mellanox bifurcated driver model
LF_DPDK_Mellanox bifurcated driver modelLF_DPDK_Mellanox bifurcated driver model
LF_DPDK_Mellanox bifurcated driver model
 
MySQL HA with PaceMaker
MySQL HA with  PaceMakerMySQL HA with  PaceMaker
MySQL HA with PaceMaker
 
Modul 1 integration island
Modul 1   integration islandModul 1   integration island
Modul 1 integration island
 
How to get started with Oracle Cloud Infrastructure
How to get started with Oracle Cloud InfrastructureHow to get started with Oracle Cloud Infrastructure
How to get started with Oracle Cloud Infrastructure
 
RESUME SSTOMAR1
RESUME SSTOMAR1RESUME SSTOMAR1
RESUME SSTOMAR1
 
Linux Based Advanced Routing with Firewall and Traffic Control
Linux Based Advanced Routing with Firewall and Traffic ControlLinux Based Advanced Routing with Firewall and Traffic Control
Linux Based Advanced Routing with Firewall and Traffic Control
 
RESUME SSTOMAR1
RESUME SSTOMAR1RESUME SSTOMAR1
RESUME SSTOMAR1
 
OpenFlow: What is it Good For?
OpenFlow: What is it Good For? OpenFlow: What is it Good For?
OpenFlow: What is it Good For?
 

Recently uploaded

Artificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension FunctionsArtificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension Functions
Octavian Nadolu
 
E-commerce Development Services- Hornet Dynamics
E-commerce Development Services- Hornet DynamicsE-commerce Development Services- Hornet Dynamics
E-commerce Development Services- Hornet Dynamics
Hornet Dynamics
 
Using Query Store in Azure PostgreSQL to Understand Query Performance
Using Query Store in Azure PostgreSQL to Understand Query PerformanceUsing Query Store in Azure PostgreSQL to Understand Query Performance
Using Query Store in Azure PostgreSQL to Understand Query Performance
Grant Fritchey
 
How to write a program in any programming language
How to write a program in any programming languageHow to write a program in any programming language
How to write a program in any programming language
Rakesh Kumar R
 
Oracle Database 19c New Features for DBAs and Developers.pptx
Oracle Database 19c New Features for DBAs and Developers.pptxOracle Database 19c New Features for DBAs and Developers.pptx
Oracle Database 19c New Features for DBAs and Developers.pptx
Remote DBA Services
 
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
gapen1
 
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
mz5nrf0n
 
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
Bert Jan Schrijver
 
Preparing Non - Technical Founders for Engaging a Tech Agency
Preparing Non - Technical Founders for Engaging  a  Tech AgencyPreparing Non - Technical Founders for Engaging  a  Tech Agency
Preparing Non - Technical Founders for Engaging a Tech Agency
ISH Technologies
 
Unveiling the Advantages of Agile Software Development.pdf
Unveiling the Advantages of Agile Software Development.pdfUnveiling the Advantages of Agile Software Development.pdf
Unveiling the Advantages of Agile Software Development.pdf
brainerhub1
 
All you need to know about Spring Boot and GraalVM
All you need to know about Spring Boot and GraalVMAll you need to know about Spring Boot and GraalVM
All you need to know about Spring Boot and GraalVM
Alina Yurenko
 
GreenCode-A-VSCode-Plugin--Dario-Jurisic
GreenCode-A-VSCode-Plugin--Dario-JurisicGreenCode-A-VSCode-Plugin--Dario-Jurisic
GreenCode-A-VSCode-Plugin--Dario-Jurisic
Green Software Development
 
一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理
一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理
一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理
dakas1
 
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CDKuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
rodomar2
 
Hand Rolled Applicative User Validation Code Kata
Hand Rolled Applicative User ValidationCode KataHand Rolled Applicative User ValidationCode Kata
Hand Rolled Applicative User Validation Code Kata
Philip Schwarz
 
Project Management: The Role of Project Dashboards.pdf
Project Management: The Role of Project Dashboards.pdfProject Management: The Role of Project Dashboards.pdf
Project Management: The Role of Project Dashboards.pdf
Karya Keeper
 
UI5con 2024 - Keynote: Latest News about UI5 and it’s Ecosystem
UI5con 2024 - Keynote: Latest News about UI5 and it’s EcosystemUI5con 2024 - Keynote: Latest News about UI5 and it’s Ecosystem
UI5con 2024 - Keynote: Latest News about UI5 and it’s Ecosystem
Peter Muessig
 
Lecture 2 - software testing SE 412.pptx
Lecture 2 - software testing SE 412.pptxLecture 2 - software testing SE 412.pptx
Lecture 2 - software testing SE 412.pptx
TaghreedAltamimi
 
E-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian Companies
E-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian CompaniesE-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian Companies
E-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian Companies
Quickdice ERP
 
Webinar On-Demand: Using Flutter for Embedded
Webinar On-Demand: Using Flutter for EmbeddedWebinar On-Demand: Using Flutter for Embedded
Webinar On-Demand: Using Flutter for Embedded
ICS
 

Recently uploaded (20)

Artificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension FunctionsArtificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension Functions
 
E-commerce Development Services- Hornet Dynamics
E-commerce Development Services- Hornet DynamicsE-commerce Development Services- Hornet Dynamics
E-commerce Development Services- Hornet Dynamics
 
Using Query Store in Azure PostgreSQL to Understand Query Performance
Using Query Store in Azure PostgreSQL to Understand Query PerformanceUsing Query Store in Azure PostgreSQL to Understand Query Performance
Using Query Store in Azure PostgreSQL to Understand Query Performance
 
How to write a program in any programming language
How to write a program in any programming languageHow to write a program in any programming language
How to write a program in any programming language
 
Oracle Database 19c New Features for DBAs and Developers.pptx
Oracle Database 19c New Features for DBAs and Developers.pptxOracle Database 19c New Features for DBAs and Developers.pptx
Oracle Database 19c New Features for DBAs and Developers.pptx
 
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
 
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
 
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
J-Spring 2024 - Going serverless with Quarkus, GraalVM native images and AWS ...
 
Preparing Non - Technical Founders for Engaging a Tech Agency
Preparing Non - Technical Founders for Engaging  a  Tech AgencyPreparing Non - Technical Founders for Engaging  a  Tech Agency
Preparing Non - Technical Founders for Engaging a Tech Agency
 
Unveiling the Advantages of Agile Software Development.pdf
Unveiling the Advantages of Agile Software Development.pdfUnveiling the Advantages of Agile Software Development.pdf
Unveiling the Advantages of Agile Software Development.pdf
 
All you need to know about Spring Boot and GraalVM
All you need to know about Spring Boot and GraalVMAll you need to know about Spring Boot and GraalVM
All you need to know about Spring Boot and GraalVM
 
GreenCode-A-VSCode-Plugin--Dario-Jurisic
GreenCode-A-VSCode-Plugin--Dario-JurisicGreenCode-A-VSCode-Plugin--Dario-Jurisic
GreenCode-A-VSCode-Plugin--Dario-Jurisic
 
一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理
一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理
一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理
 
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CDKuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
 
Hand Rolled Applicative User Validation Code Kata
Hand Rolled Applicative User ValidationCode KataHand Rolled Applicative User ValidationCode Kata
Hand Rolled Applicative User Validation Code Kata
 
Project Management: The Role of Project Dashboards.pdf
Project Management: The Role of Project Dashboards.pdfProject Management: The Role of Project Dashboards.pdf
Project Management: The Role of Project Dashboards.pdf
 
UI5con 2024 - Keynote: Latest News about UI5 and it’s Ecosystem
UI5con 2024 - Keynote: Latest News about UI5 and it’s EcosystemUI5con 2024 - Keynote: Latest News about UI5 and it’s Ecosystem
UI5con 2024 - Keynote: Latest News about UI5 and it’s Ecosystem
 
Lecture 2 - software testing SE 412.pptx
Lecture 2 - software testing SE 412.pptxLecture 2 - software testing SE 412.pptx
Lecture 2 - software testing SE 412.pptx
 
E-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian Companies
E-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian CompaniesE-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian Companies
E-Invoicing Implementation: A Step-by-Step Guide for Saudi Arabian Companies
 
Webinar On-Demand: Using Flutter for Embedded
Webinar On-Demand: Using Flutter for EmbeddedWebinar On-Demand: Using Flutter for Embedded
Webinar On-Demand: Using Flutter for Embedded
 

Understanding Informix Network Performance Features

  • 1. © 2011 IBM CorporationDecember 16, 2015 Improve the Speed and Performance John F. Miller III, IBM Scott Lashley, IBM
  • 2. Information Management – IDS 11 © 2011 IBM Corporation2 Network Messaging
  • 3. Information Management – IDS 11 © 2011 IBM Corporation3 Optimizing Database Network Messaging • Data Buffer Management • Optimize Open-Fetch-Close (OPTOFC) • Deferred Prepare • Auto Free
  • 4. Information Management – IDS 11 © 2011 IBM Corporation4 Examining SQL Network Messages – Network messages sent between the application and the database engine to accomplish SQL operations PREPARE stmt FROM “select * from t where a > ?”; DECLARE cursor_1 from :stmnt; OPEN cursor_1 USING var_1; FETCH cursor_1 into results_1; CLOSE cursor_1; FREE cursor_1; FREE stmt; PREPARE stmt FROM “select * from t where a > ?”; DECLARE cursor_1 from :stmnt; OPEN cursor_1 USING var_1; FETCH cursor_1 into results_1; CLOSE cursor_1; FREE cursor_1; FREE stmt;
  • 5. Information Management – IDS 11 © 2011 IBM Corporation5 PREP/DEC Small Sent - Medium Returned OPEN Small Sent - Medium Returned FETCH Small Sent - Medium Returned CLOSE Small Sent - Small Returned FREE Small Sent - Small Returned PREP/DEC Small Sent - Medium Returned OPEN Small Sent - Medium Returned FETCH Small Sent - Medium Returned CLOSE Small Sent - Small Returned FREE Small Sent - Small Returned Normal Message Traffic – 128 KB of data returned by the select – No blob data and rows smaller than 4KB Total number of messages sent = 72 32x
  • 6. Information Management – IDS 11 © 2011 IBM Corporation6 Improving SQL Network Messages – FET_BUF_SIZE  Set the buffer size for the fetch/insert buffers  Size is specified in bytes up to 32KB  Requires no application changes  Yields similar performance as fetch array – OPTOFC – Optimize Open Fetch Close  Requires only error checking changes  Delays sending the open until the first fetch is requested by the application  The engine will close the cursor when the last row is processed – Deferred Prepare  Control whether a client process postpones sending a PREPARE statement to the database server until the OPEN or EXECUTE statement is sent – Auto Free  Frees the cursor when the cursor is closed
  • 7. Information Management – IDS 11 © 2011 IBM Corporation7 PREP/DEC Small Sent - Medium Returned OPEN/FETCH Medium Sent - 32KB Returned FETCH Small Sent - 32KB Returned FETCH/CLOSE Medium Sent - 32KB Returned FREE Small Sent - Small Returned PREP/DEC Small Sent - Medium Returned OPEN/FETCH Medium Sent - 32KB Returned FETCH Small Sent - 32KB Returned FETCH/CLOSE Medium Sent - 32KB Returned FREE Small Sent - Small Returned 2x Total number of messages sent = 12 OPTOFC Message Traffic OPTOFC enabled Fetch buffer set at 32KB
  • 8. Information Management – IDS 11 © 2011 IBM Corporation8 PREP/DEC Small Sent - Medium Returned OPEN Small Sent - Medium Returned FETCH Small Sent - Medium Returned CLOSE Small Sent - Small Returned PREP/DEC Small Sent - Medium Returned OPEN Small Sent - Medium Returned FETCH Small Sent - Medium Returned CLOSE Small Sent - Small Returned Total number of messages sent = 8 Small Select Statements Traffic Improvement PREP/DEC/OPEN/FETCH/CLOSE Medium Sent - 32KB ReturnedPREP/DEC/OPEN/FETCH/CLOSE Medium Sent - 32KB Returned Total number of messages sent = 2 OPTOFC enabled Fetch buffer set at 32KB Defer Prepare enabled
  • 9. Information Management – IDS 11 © 2011 IBM Corporation9 Are My Application Using OPTOFC? session effective #RSAM total used dynamic id user user tty pid hostname threads memory memory explain 145 informix - 20 30096 talo 1 274432 270896 off tid name rstcb flags curstk status 232 sqlexec 44d28d78 Y--P--- 12272 cond wait cmd_cond - Memory pools count 2 name class addr totalsize freesize #allocfrag #freefrag 145 V 46853040 270336 2728 259 6 name free used name free used overhead 0 6576 resident 0 72 scb 0 144 opentable 0 8656 filetable 0 1344 ru 0 600 misc 0 1088 log 0 16536 sqscb info scb sqscb optofc pdqpriority sqlstats optcompind directives 45ce0028 4620c028 0 0 0 2 1 Sess SQL Current Iso Lock SQL ISAM F.E. Id Stmt type Database Lvl Mode ERR ERR Vers Explain 145 EXEC PROCEDURE sysadmin CR Not Wait 0 0 9.24 Off
  • 10. Information Management – IDS 11 © 2011 IBM Corporation10 Network Performance Improvements  Caching network services  Multiple listener threads for a single server name  Multiple file descriptor servers  Previous network improvements – Dynamic start and stop of listener threads – Pre-allocate users session
  • 11. Information Management – IDS 11 © 2011 IBM Corporation11 Network Performance - Caching Network Services  Database caching of Host, Services, Users and Groups  Avoids going to the operating system for each network call  Administrator defined timeout value set for network caches  ONCONFIG example NS_CACHE host=900,service=900,user=900,group=900  Each cache is dynamically configurable
  • 12. Information Management – IDS 11 © 2011 IBM Corporation12 Network Performance – Multiple Listeners  Able to define multiple listener threads for a single DBSERVERNAME and/or DBSERVERALIAS  Add the number of listeners to the end of the alias  EXAMPLE – To start three listener threads for the idsserver – Modify the ONCONFIG as follows DBSERVERNAME idsserver-3 12 Page 12
  • 13. Information Management – IDS 11 © 2011 IBM Corporation13 Network Performance Results  My simple network performance tests – 200 users connecting and disconnecting  Connection throughput on an AIX server improved by 480%  Connection throughput on a Linux server improved by 720% Computer Type Without Improvements Utilizing Improvements AIX 64 2m 5s 27s Linux 64 10m 11s 1m 20s
  • 14. Information Management – IDS 11 © 2011 IBM Corporation14