SlideShare a Scribd company logo
Life with big Firebird databases 
Alexey Kovyazin 
www.IBSurgeon.com
2 
• Tools and consulting 
• Platinum Sponsor of Firebird Project 
• Founded in 2002: 12 years of 
Firebird and InterBase recoveries 
and consulting 
• Based in Moscow, Russia 
• Firebase is our Brazil partner (since 
2006)
Big databases 3 
Series of performance tests 
with databases 9Gb... 30Gb... 1.7Tb 
http://ib-aid.com/en/articles/firebird-performance-degradation-tests-myths-and-truth/
Non-optimized performance 4 
results
5 Optimized test results
6 What we did 
• SuperServer → Classic or SuperClassic 
• Tuned Firebird config parameters 
Optimized config are available here: 
http://ib-aid.com/en/optimized-firebird-configuration/
7 The difference between big and 
small databases 
• Small 
– Optimize your SQLs 
– In case of any trouble 
do backup/restore 
(gbak) 
• Big 
– Where is the problem? 
– Why it happens? 
– Backup/restore takes 1 
days... Will it solve the 
problem or it will be 
waste of time?
8 Maintenance tasks 
• Backups 
• Performance monitoring 
– Transactions 
– SQLs and plans 
– Database structure
9 Backups 
• Usual backup: new backup rewrites old backup 
Firebird database 
New backup 
Old backup
10 Wrong! 
• If backup fails, there will be no good old 
backup, no new backup, and corrupted 
database 
Firebird database 
New backup 
Old backup
11 Correct schema 
Firebird database 
New backup 
Finished backup Old backup 
Database space for backups: 
(Number_of_stored_backups+1)*Size
12 Gbak vs Nbackup 
• NBACKUP 
+ fast 
- does not check data 
- not reliable till 2.5.2 
- delta problems 
• Gbak 
+ checks data 
- slow (and speed 
degrades) 
- test restore needed
13 Big databases backup schema 
Requirements 
● delta monitoring 
● health monitoring 
Requirements: 
● gbak backup 
● test restore 
Production server Backup server 
Nbackup gbak
14 Big databases backup schema 
FBDataGuard 1 FBDataGuard 2 
Production server Backup server 
Nbackup gbak
15 FBDataGuard 
• Backups (in correct way) 
• Health checks of the database 
• Performance parameters monitoring 
– Transactions 
– Users, Indices, database statistics 
• Corruption monitoring 
• Email alerts
16 Health monitoring 
• Critical metadata check and backup 
– Can be used for recovery with FirstAID 
• Database limitations checks 
– Transactions limits, format limits, space limits 
• Errors 
– Firebird.log
17 Indices maintenance 
• Indices health 
– Idea of statistics 
– Recalculation of indices statistics 
• Manual 
• Automatic
18 Demo
19 
Performance monitoring
20 Tasks and Tools 
• SQL queries and plans: FBScanner and 
FBPerfMon 
• Transactions: FBDataGuard (alerts, database 
statistics) and IBTM (visualization) 
• Database structure analysys: IBAnalyst
21 
Recommended setup for 
monitoring 
Firebird 
Production server 
Users 
FBScanner 
remote server 
Administrator has: 
1) FBScanner Analyzer 
2) MON$Logger 
3) TraceAPI 
4) IBTM 
5) IBAnalyst 
MON$ 
TraceAPI 
FBDataGuard 
& Trace API
Examples of problem resolution 22 
Long running active transaction — prevent 
performance problem 
1.Administrator got email from FBDataGuard about 
transaction gap 
2.IBTM shows long running active transaction 
3.MON$ logger identified source of transaction, and 
admin disconnected client
23 Transactions monitoring 
• Transaction markers (NEXT, OIT, OST, OAT) 
dynamics is good indicator of problems 
– Long running active transactions (stuck OAT) 
– Forced Rollback (stuck OIT) 
– Sweep and autosweep success
24
MON$ 25
Examples of problem resolution 26 
Bad performance — fix performance problem 
– User reported problem with performance in application A 
– Quick check with MON$logger does not show the 
problem 
– Admin analysed logs from FBScanner (permanent 
monitoring) and found bad query, reported to developer, 
with SQL plan and fresh gstat statistics from FBDataGuard 
– Developer checked gstat and plan, found that new index 
is needed 
– Admin applied index, performance is good again
27 SQL Queries and Plans 
• For all Firebird versions — FBScanner 
– Works as a proxy 
– Connection string changes required 
– Can be installed on remote server 
• For Firebird 2.5 — FBPerfMon 
– Mon$ support 
– TraceAPI support
Trace 28
29 FBScanner Log
Database structure 30
31 Conclusion 
• To sleep well and live long you need: 
– Relialble backups 
– Continious monitoring and alerts 
– Quick identification of problem 
– Full details how to fix it
32 
Backups 
Health 
monitoring 
Typical tasks 
Indices maintenance 
Transactions dynamics 
SQL Queries 
& plans 
Database structure analysys 
Database
33 
FBDataGuard 
IBTM 
FBScanner 
& 
FBPerfMon 
IBAnalyst
34 Only at FDD 2014 
IBSurgeon Optimization Pack 
5-in-1 (FBDataGuard+FBScanner+FBPerfMon 
+IBTM +IBAnalyst) 
• EUR 299 R$400 per server 
• EUR 1290 R$850 Unlimited Subscription 1 year 
• EUR 349 R$400 FirstAID 50 database
35 
• Thank you! 
• Questions? 
Web: www.ib-aid.com www.ibsurgeon.com 
Email: support@ib-aid.com

More Related Content

PPTX
Firebird's Big Databases (in English)
PPTX
High-load performance testing: Firebird 2.5, 3.0, 4.0
PDF
45 ways to speed up firebird database
PPT
Basic networking course
PDF
linuxcommands.pdf
PDF
Planing and optimizing data lake architecture
PDF
Datastores
PDF
mysql 8.0 architecture and enhancement
Firebird's Big Databases (in English)
High-load performance testing: Firebird 2.5, 3.0, 4.0
45 ways to speed up firebird database
Basic networking course
linuxcommands.pdf
Planing and optimizing data lake architecture
Datastores
mysql 8.0 architecture and enhancement

What's hot (20)

PDF
SIP (Session Initiation Protocol)
PPTX
Linux MMAP & Ioremap introduction
PPTX
Resolving Firebird performance problems
PDF
MySQL Parallel Replication: inventory, use-case and limitations
DOCX
Poll mode driver integration into dpdk
PDF
A Technical Introduction to WiredTiger
PDF
pg_proctab: Accessing System Stats in PostgreSQL
PPTX
Zabbix e SNMP - Zabbix Conference LatAm - André Déo
PDF
Vivado hls勉強会3(axi4 lite slave)
ODP
Memory management in Linux
ODP
Unix Memory Management - Operating Systems
PDF
Ceph Day Beijing - Ceph All-Flash Array Design Based on NUMA Architecture
PPTX
Mmap failure analysis
PDF
ROAD TO NODES - Intro to Neo4j + NeoDash.pdf
PDF
An Introduction to BGP Flow Spec
PPTX
Memory model
PDF
Clickhouse Capacity Planning for OLAP Workloads, Mik Kocikowski of CloudFlare
PDF
Reverse Mapping (rmap) in Linux Kernel
PDF
Beyond EXPLAIN: Query Optimization From Theory To Code
PDF
DPDK & Layer 4 Packet Processing
SIP (Session Initiation Protocol)
Linux MMAP & Ioremap introduction
Resolving Firebird performance problems
MySQL Parallel Replication: inventory, use-case and limitations
Poll mode driver integration into dpdk
A Technical Introduction to WiredTiger
pg_proctab: Accessing System Stats in PostgreSQL
Zabbix e SNMP - Zabbix Conference LatAm - André Déo
Vivado hls勉強会3(axi4 lite slave)
Memory management in Linux
Unix Memory Management - Operating Systems
Ceph Day Beijing - Ceph All-Flash Array Design Based on NUMA Architecture
Mmap failure analysis
ROAD TO NODES - Intro to Neo4j + NeoDash.pdf
An Introduction to BGP Flow Spec
Memory model
Clickhouse Capacity Planning for OLAP Workloads, Mik Kocikowski of CloudFlare
Reverse Mapping (rmap) in Linux Kernel
Beyond EXPLAIN: Query Optimization From Theory To Code
DPDK & Layer 4 Packet Processing
Ad

Viewers also liked (20)

ODP
How Firebird transactions work
PPTX
FBScanner: IBSurgeon's tool to solve all types of performance problems with F...
PDF
Firebird migration: from Firebird 1.5 to Firebird 2.5
PPTX
Fail-Safe Cluster for FirebirdSQL and something more
PDF
Working with Large Firebird databases
PDF
New SQL Features in Firebird 3, by Vlad Khorsun
PDF
Stored procedures in Firebird
ODP
Firebird recovery tools and techniques by IBSurgeon
PPT
Firebird2.5 Benchmarks(English)20091031
PDF
Firebird.performance.testing
PPTX
Superchaging big production systems on Firebird: transactions, garbage, maint...
PDF
SuperServer in Firebird 3
ODP
Tips for using Firebird system tables
PDF
Measuring Firebird Disk I/O
PPT
Firebird Scalability, by Dmitry Yemanov (in English)
PPTX
Firebird migration: from Firebird 1.5 to Firebird 2.5
PDF
Global Netflix - HPTS Workshop - Scaling Cassandra benchmark to over 1M write...
PPTX
Новые возможности языка SQL в Firebird 3.0
PDF
AddThis: Scaling Cassandra up and down into containers with ZFS
PDF
Creating logs for data auditing in FirebirdSQL
How Firebird transactions work
FBScanner: IBSurgeon's tool to solve all types of performance problems with F...
Firebird migration: from Firebird 1.5 to Firebird 2.5
Fail-Safe Cluster for FirebirdSQL and something more
Working with Large Firebird databases
New SQL Features in Firebird 3, by Vlad Khorsun
Stored procedures in Firebird
Firebird recovery tools and techniques by IBSurgeon
Firebird2.5 Benchmarks(English)20091031
Firebird.performance.testing
Superchaging big production systems on Firebird: transactions, garbage, maint...
SuperServer in Firebird 3
Tips for using Firebird system tables
Measuring Firebird Disk I/O
Firebird Scalability, by Dmitry Yemanov (in English)
Firebird migration: from Firebird 1.5 to Firebird 2.5
Global Netflix - HPTS Workshop - Scaling Cassandra benchmark to over 1M write...
Новые возможности языка SQL в Firebird 3.0
AddThis: Scaling Cassandra up and down into containers with ZFS
Creating logs for data auditing in FirebirdSQL
Ad

Similar to Life with big Firebird databases (20)

PDF
Professional tools for Firebird optimization and maintenance from IBSurgeon
PPTX
Firebird database recovery and protection for enterprises and ISV
PPTX
Firebird Anti-Corruption Approach
PPTX
Nbackup and Backup: Internals, Usage strategy and Pitfalls, by Dmitry Kuzmenk...
PPTX
Migration from Firebird 1.5 to Firebird 2.5
PDF
PhpTek Ten Things to do to make your MySQL servers Happier and Healthier
PDF
Silicon Valley Code Camp 2014 - Advanced MongoDB
PDF
Continuous Database Monitoring with the Trace API
ODP
The care and feeding of a MySQL database
ODP
Using ТРСС to study Firebird performance
PDF
Database story by DevOps
PPT
Kb 40 kevin_klineukug_reading20070717[1]
PDF
Tx lf propercareandfeedmysql
PDF
Breaking data
PDF
7 Things To Know About Database Testing.pdf
PPTX
My Database Skills Killed the Server
PDF
10 Do's and Don'ts for MySQL Cluster
PDF
Chapter 2 Fundamentals of Database Systems.pdf
PDF
Firebird Advanced Trace API
PDF
Mafiree Services 2016 (1)
Professional tools for Firebird optimization and maintenance from IBSurgeon
Firebird database recovery and protection for enterprises and ISV
Firebird Anti-Corruption Approach
Nbackup and Backup: Internals, Usage strategy and Pitfalls, by Dmitry Kuzmenk...
Migration from Firebird 1.5 to Firebird 2.5
PhpTek Ten Things to do to make your MySQL servers Happier and Healthier
Silicon Valley Code Camp 2014 - Advanced MongoDB
Continuous Database Monitoring with the Trace API
The care and feeding of a MySQL database
Using ТРСС to study Firebird performance
Database story by DevOps
Kb 40 kevin_klineukug_reading20070717[1]
Tx lf propercareandfeedmysql
Breaking data
7 Things To Know About Database Testing.pdf
My Database Skills Killed the Server
10 Do's and Don'ts for MySQL Cluster
Chapter 2 Fundamentals of Database Systems.pdf
Firebird Advanced Trace API
Mafiree Services 2016 (1)

More from Alexey Kovyazin (17)

PDF
Firebird Dataguard (Russian)
PPT
Решения на базе СУБД Firebird в крупных компаниях и государственных учреждени...
PDF
Firebird DataGuard - Еще раз об уверенности в завтрашнем дне
PDF
Firebird usage promo draft
ODP
Firebird 2.5 - вектор дальнейшего развития, Dmitry Yemanov, (in Russian)
ODP
Understandung Firebird optimizer, by Dmitry Yemanov (in English)
PPTX
Firebird: cost-based optimization and statistics, by Dmitry Yemanov (in English)
ODP
СУБД Firebird: Краткий обзор, Дмитрий Еманов (in Russian)
ODP
Open Source: взгляд изнутри, Дмитрий Еманов (The Firebird Project) (in Russian)
ODP
Firebird 2.1 What's New by Vladislav Khorsun (English)
ODP
Firebird: Универсальная СУБД. Краткая презентация на Интероп 2008, Дмитрий Ем...
PPT
Firebird Roadmap-2006 Текущее состояние разработки и перспективы развития (in...
ODP
Firebird в 2008: новые возможности и планы по дальнейшему развитию, by Дмитри...
PPT
Firebird в 2008 году: эволюция или революция? (in Russian, by Dmitry Kuzmenko)
PPT
Новые возможности Firebird 2.1 (in Russian, Vlad Khorsun)
PPT
Чем отличаются InterBase и Firebird (Russian), 2008
PPT
Firebird Security (in English): The Past and The Future
Firebird Dataguard (Russian)
Решения на базе СУБД Firebird в крупных компаниях и государственных учреждени...
Firebird DataGuard - Еще раз об уверенности в завтрашнем дне
Firebird usage promo draft
Firebird 2.5 - вектор дальнейшего развития, Dmitry Yemanov, (in Russian)
Understandung Firebird optimizer, by Dmitry Yemanov (in English)
Firebird: cost-based optimization and statistics, by Dmitry Yemanov (in English)
СУБД Firebird: Краткий обзор, Дмитрий Еманов (in Russian)
Open Source: взгляд изнутри, Дмитрий Еманов (The Firebird Project) (in Russian)
Firebird 2.1 What's New by Vladislav Khorsun (English)
Firebird: Универсальная СУБД. Краткая презентация на Интероп 2008, Дмитрий Ем...
Firebird Roadmap-2006 Текущее состояние разработки и перспективы развития (in...
Firebird в 2008: новые возможности и планы по дальнейшему развитию, by Дмитри...
Firebird в 2008 году: эволюция или революция? (in Russian, by Dmitry Kuzmenko)
Новые возможности Firebird 2.1 (in Russian, Vlad Khorsun)
Чем отличаются InterBase и Firebird (Russian), 2008
Firebird Security (in English): The Past and The Future

Recently uploaded (20)

PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Machine learning based COVID-19 study performance prediction
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Empathic Computing: Creating Shared Understanding
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
Machine Learning_overview_presentation.pptx
PPT
Teaching material agriculture food technology
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Per capita expenditure prediction using model stacking based on satellite ima...
Programs and apps: productivity, graphics, security and other tools
NewMind AI Weekly Chronicles - August'25-Week II
MIND Revenue Release Quarter 2 2025 Press Release
Mobile App Security Testing_ A Comprehensive Guide.pdf
Machine learning based COVID-19 study performance prediction
20250228 LYD VKU AI Blended-Learning.pptx
“AI and Expert System Decision Support & Business Intelligence Systems”
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
Network Security Unit 5.pdf for BCA BBA.
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
Empathic Computing: Creating Shared Understanding
Diabetes mellitus diagnosis method based random forest with bat algorithm
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Machine Learning_overview_presentation.pptx
Teaching material agriculture food technology
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx

Life with big Firebird databases

  • 1. Life with big Firebird databases Alexey Kovyazin www.IBSurgeon.com
  • 2. 2 • Tools and consulting • Platinum Sponsor of Firebird Project • Founded in 2002: 12 years of Firebird and InterBase recoveries and consulting • Based in Moscow, Russia • Firebase is our Brazil partner (since 2006)
  • 3. Big databases 3 Series of performance tests with databases 9Gb... 30Gb... 1.7Tb http://ib-aid.com/en/articles/firebird-performance-degradation-tests-myths-and-truth/
  • 6. 6 What we did • SuperServer → Classic or SuperClassic • Tuned Firebird config parameters Optimized config are available here: http://ib-aid.com/en/optimized-firebird-configuration/
  • 7. 7 The difference between big and small databases • Small – Optimize your SQLs – In case of any trouble do backup/restore (gbak) • Big – Where is the problem? – Why it happens? – Backup/restore takes 1 days... Will it solve the problem or it will be waste of time?
  • 8. 8 Maintenance tasks • Backups • Performance monitoring – Transactions – SQLs and plans – Database structure
  • 9. 9 Backups • Usual backup: new backup rewrites old backup Firebird database New backup Old backup
  • 10. 10 Wrong! • If backup fails, there will be no good old backup, no new backup, and corrupted database Firebird database New backup Old backup
  • 11. 11 Correct schema Firebird database New backup Finished backup Old backup Database space for backups: (Number_of_stored_backups+1)*Size
  • 12. 12 Gbak vs Nbackup • NBACKUP + fast - does not check data - not reliable till 2.5.2 - delta problems • Gbak + checks data - slow (and speed degrades) - test restore needed
  • 13. 13 Big databases backup schema Requirements ● delta monitoring ● health monitoring Requirements: ● gbak backup ● test restore Production server Backup server Nbackup gbak
  • 14. 14 Big databases backup schema FBDataGuard 1 FBDataGuard 2 Production server Backup server Nbackup gbak
  • 15. 15 FBDataGuard • Backups (in correct way) • Health checks of the database • Performance parameters monitoring – Transactions – Users, Indices, database statistics • Corruption monitoring • Email alerts
  • 16. 16 Health monitoring • Critical metadata check and backup – Can be used for recovery with FirstAID • Database limitations checks – Transactions limits, format limits, space limits • Errors – Firebird.log
  • 17. 17 Indices maintenance • Indices health – Idea of statistics – Recalculation of indices statistics • Manual • Automatic
  • 20. 20 Tasks and Tools • SQL queries and plans: FBScanner and FBPerfMon • Transactions: FBDataGuard (alerts, database statistics) and IBTM (visualization) • Database structure analysys: IBAnalyst
  • 21. 21 Recommended setup for monitoring Firebird Production server Users FBScanner remote server Administrator has: 1) FBScanner Analyzer 2) MON$Logger 3) TraceAPI 4) IBTM 5) IBAnalyst MON$ TraceAPI FBDataGuard & Trace API
  • 22. Examples of problem resolution 22 Long running active transaction — prevent performance problem 1.Administrator got email from FBDataGuard about transaction gap 2.IBTM shows long running active transaction 3.MON$ logger identified source of transaction, and admin disconnected client
  • 23. 23 Transactions monitoring • Transaction markers (NEXT, OIT, OST, OAT) dynamics is good indicator of problems – Long running active transactions (stuck OAT) – Forced Rollback (stuck OIT) – Sweep and autosweep success
  • 24. 24
  • 26. Examples of problem resolution 26 Bad performance — fix performance problem – User reported problem with performance in application A – Quick check with MON$logger does not show the problem – Admin analysed logs from FBScanner (permanent monitoring) and found bad query, reported to developer, with SQL plan and fresh gstat statistics from FBDataGuard – Developer checked gstat and plan, found that new index is needed – Admin applied index, performance is good again
  • 27. 27 SQL Queries and Plans • For all Firebird versions — FBScanner – Works as a proxy – Connection string changes required – Can be installed on remote server • For Firebird 2.5 — FBPerfMon – Mon$ support – TraceAPI support
  • 31. 31 Conclusion • To sleep well and live long you need: – Relialble backups – Continious monitoring and alerts – Quick identification of problem – Full details how to fix it
  • 32. 32 Backups Health monitoring Typical tasks Indices maintenance Transactions dynamics SQL Queries & plans Database structure analysys Database
  • 33. 33 FBDataGuard IBTM FBScanner & FBPerfMon IBAnalyst
  • 34. 34 Only at FDD 2014 IBSurgeon Optimization Pack 5-in-1 (FBDataGuard+FBScanner+FBPerfMon +IBTM +IBAnalyst) • EUR 299 R$400 per server • EUR 1290 R$850 Unlimited Subscription 1 year • EUR 349 R$400 FirstAID 50 database
  • 35. 35 • Thank you! • Questions? Web: www.ib-aid.com www.ibsurgeon.com Email: support@ib-aid.com