David Jiang presented InnoSQL, a new branch of MySQL that features a flash cache for the InnoDB storage engine. The flash cache provides higher performance than using an SSD as the durable storage alone. It caches both reads and writes using SSDs and employs techniques like merge writes and sequential writes to optimize for SSD performance. Benchmark results showed the flash cache improved throughput for the TPC-C workload by around 2x compared to using SSDs as the durable storage directly.
Highly efficient backups with percona xtrabackupNilnandan Joshi
Percona XtraBackup is an open source, free MySQL hot backup software that performs non-blocking backups for InnoDB and XtraDB databases. In this talk we'll describe below things.
- How it works with MySQL/Percona Server and what are the features provided
- Difference between Xtrabackup and Innobackupex
- How to take full/increment/partial backup and restore
- How to use features like streaming, compression, remote and compact backups
- How to troubleshoot the issue with xtrabackup
Highly efficient backups with percona xtrabackupNilnandan Joshi
Percona XtraBackup is an open source, free MySQL hot backup software that performs non-blocking backups for InnoDB and XtraDB databases. In this talk we'll describe below things.
- How it works with MySQL/Percona Server and what are the features provided
- Difference between Xtrabackup and Innobackupex
- How to take full/increment/partial backup and restore
- How to use features like streaming, compression, remote and compact backups
- How to troubleshoot the issue with xtrabackup
The traditional topics of memory pressure, page life expectancy and memory grants have been covered to the point of saturation in the SQL community, in this deck I want to cover some topics relating to memory and SQL Server which might be considered "Off-piste" but are as equally relevant if not more so in terms of getting the best possible performance out of SQL Server.
Complex applications need a persistent database to store, search and join data: till now a dedicated server was needed to do this, and no offline usage of the app was possible. With the introduction of HTML5 and the concept of Web Databases, we don’t need an external server anymore: everything is stored within the user browser and thus the web app can be used offline as well as online.
Lowest Storage Cost per Desktop with NetApp without any TradeoffsNetApp
Are you looking for a complete storage solution to meet the data needs of virtual desktop OS, Apps, Profiles and User Data? This session will provide an overview of how the NetApp solution can help you achieve lowest storage cost per desktop without any performance impact. Key storage considerations around virtual desktop OS, Apps, Profiles, and User data will also be discussed.
Scaling sql server 2014 parallel insertChris Adkin
A slide deck on how to get the best possible performance out of the parallel insert feature introduced in SQL Server 2014 as presented at SQL Bits XIV.
The traditional topics of memory pressure, page life expectancy and memory grants have been covered to the point of saturation in the SQL community, in this deck I want to cover some topics relating to memory and SQL Server which might be considered "Off-piste" but are as equally relevant if not more so in terms of getting the best possible performance out of SQL Server.
Complex applications need a persistent database to store, search and join data: till now a dedicated server was needed to do this, and no offline usage of the app was possible. With the introduction of HTML5 and the concept of Web Databases, we don’t need an external server anymore: everything is stored within the user browser and thus the web app can be used offline as well as online.
Lowest Storage Cost per Desktop with NetApp without any TradeoffsNetApp
Are you looking for a complete storage solution to meet the data needs of virtual desktop OS, Apps, Profiles and User Data? This session will provide an overview of how the NetApp solution can help you achieve lowest storage cost per desktop without any performance impact. Key storage considerations around virtual desktop OS, Apps, Profiles, and User data will also be discussed.
Scaling sql server 2014 parallel insertChris Adkin
A slide deck on how to get the best possible performance out of the parallel insert feature introduced in SQL Server 2014 as presented at SQL Bits XIV.
The art of storytelling and how it can help make a better world(mostly) TRUE THINGS
"Storytelling the most powerful way to put ideas into the world today," according to master storyteller Robert McKee. This power point is about why story matters in a world of constant change and so much information to absorb at ever-increasing speed, and the importance of learning the art of story for maximum impact on the listener. Presented at the Applied Improvisation Network annual conference in Montreal on Sept. 28, 015.
Databases are a key part of any application. The storage subsystem contributes most to performance of the database. In recent days, new storage technologies like Solid State Storage (SSD) and high performance drives are becoming cheaper and more accessible, but it takes a lot of planning to use these technologies in a cost effective way for best price-performance.
Database performance tuning for SSD based storageAngelo Rajadurai
Databases are a key part of any application. The storage subsystem contributes most to performance of the database. In recent days, new storage technologies like Solid State Storage (SSD) and high performance drives are becoming cheaper and more accessible, but it takes a lot of planning to use these technologies in a cost effective way for best price-performance.
MySQL5.7 Innodb_enhance_parti_20160317Saewoong Lee
Release Date : 2016.03.17
Version : MySQL 5.7
Index :
- Part I : InnoDB Performance
- Part I : InnoDB Buffer Pool Flushing
- Part I : InnoDB internal Transaction General
- Part I : InnoDB Improved adaptive flushing
- Part II : InnoDB Online DDL
- Part II : Tablespace management
- Part II : InnoDB Bulk Load for Create Index
- Part II : InnoDB Temporary Tables
- Part II : InnoDB Full-Text CJK Support
- Part II : Support Syslog on Linux / Unix OS
- Part II : Performance_schema
- Part II : Useful tips
Optimizing Oracle databases with SSD - April 2014Guy Harrison
Presentation on using Solid State Disk (SSD) with Oracle databases, including the 11GR2 db flash cache and using flash in Exadata. Last given at Collaborate 2014 #clv14.
Caching and tuning fun for high scalabilityWim Godden
Caching has been a 'hot' topic for a few years. But caching takes more than merely taking data and putting it in a cache : the right caching techniques can improve performance and reduce load significantly. But we'll also look at some major pitfalls, showing that caching the wrong way can bring down your site. If you're looking for a clear explanation about various caching techniques and tools like Memcached, Nginx and Varnish, as well as ways to deploy them in an efficient way, this talk is for you.
Caching and tuning fun for high scalability @ PHPTourWim Godden
Caching has been a 'hot' topic for a few years. But caching takes more than merely taking data and putting it in a cache : the right caching techniques can improve performance and reduce load significantly. But we'll also look at some major pitfalls, showing that caching the wrong way can bring down your site. If you're looking for a clear explanation about various caching techniques and tools like Memcached, Nginx and Varnish, as well as ways to deploy them in an efficient way, this talk is for you. In this tutorial, we'll start from a Zend Framework based site. We'll add caching, begin to add servers and replace the standard LAMP stack, all while performing live benchmarks.
Percona XtraBackup - New Features and ImprovementsMarcelo Altmann
Percona XtraBackup is an open-source hot backup utility for MySQL - based servers that doesn't lock your database during the backup. In this talk, we will cover the latest development and new features introduced on Xtrabackup and its auxiliary tools: - Page Tracking - Azure Blob Storage Support - Exponential Backoff - Keyring Components - and more.
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfPaige Cruz
Monitoring and observability aren’t traditionally found in software curriculums and many of us cobble this knowledge together from whatever vendor or ecosystem we were first introduced to and whatever is a part of your current company’s observability stack.
While the dev and ops silo continues to crumble….many organizations still relegate monitoring & observability as the purview of ops, infra and SRE teams. This is a mistake - achieving a highly observable system requires collaboration up and down the stack.
I, a former op, would like to extend an invitation to all application developers to join the observability party will share these foundational concepts to build on:
Essentials of Automations: The Art of Triggers and Actions in FMESafe Software
In this second installment of our Essentials of Automations webinar series, we’ll explore the landscape of triggers and actions, guiding you through the nuances of authoring and adapting workspaces for seamless automations. Gain an understanding of the full spectrum of triggers and actions available in FME, empowering you to enhance your workspaces for efficient automation.
We’ll kick things off by showcasing the most commonly used event-based triggers, introducing you to various automation workflows like manual triggers, schedules, directory watchers, and more. Plus, see how these elements play out in real scenarios.
Whether you’re tweaking your current setup or building from the ground up, this session will arm you with the tools and insights needed to transform your FME usage into a powerhouse of productivity. Join us to discover effective strategies that simplify complex processes, enhancing your productivity and transforming your data management practices with FME. Let’s turn complexity into clarity and make your workspaces work wonders!
Securing your Kubernetes cluster_ a step-by-step guide to success !KatiaHIMEUR1
Today, after several years of existence, an extremely active community and an ultra-dynamic ecosystem, Kubernetes has established itself as the de facto standard in container orchestration. Thanks to a wide range of managed services, it has never been so easy to set up a ready-to-use Kubernetes cluster.
However, this ease of use means that the subject of security in Kubernetes is often left for later, or even neglected. This exposes companies to significant risks.
In this talk, I'll show you step-by-step how to secure your Kubernetes cluster for greater peace of mind and reliability.
Climate Impact of Software Testing at Nordic Testing DaysKari Kakkonen
My slides at Nordic Testing Days 6.6.2024
Climate impact / sustainability of software testing discussed on the talk. ICT and testing must carry their part of global responsibility to help with the climat warming. We can minimize the carbon footprint but we can also have a carbon handprint, a positive impact on the climate. Quality characteristics can be added with sustainability, and then measured continuously. Test environments can be used less, and in smaller scale and on demand. Test techniques can be used in optimizing or minimizing number of tests. Test automation can be used to speed up testing.
State of ICS and IoT Cyber Threat Landscape Report 2024 previewPrayukth K V
The IoT and OT threat landscape report has been prepared by the Threat Research Team at Sectrio using data from Sectrio, cyber threat intelligence farming facilities spread across over 85 cities around the world. In addition, Sectrio also runs AI-based advanced threat and payload engagement facilities that serve as sinks to attract and engage sophisticated threat actors, and newer malware including new variants and latent threats that are at an earlier stage of development.
The latest edition of the OT/ICS and IoT security Threat Landscape Report 2024 also covers:
State of global ICS asset and network exposure
Sectoral targets and attacks as well as the cost of ransom
Global APT activity, AI usage, actor and tactic profiles, and implications
Rise in volumes of AI-powered cyberattacks
Major cyber events in 2024
Malware and malicious payload trends
Cyberattack types and targets
Vulnerability exploit attempts on CVEs
Attacks on counties – USA
Expansion of bot farms – how, where, and why
In-depth analysis of the cyber threat landscape across North America, South America, Europe, APAC, and the Middle East
Why are attacks on smart factories rising?
Cyber risk predictions
Axis of attacks – Europe
Systemic attacks in the Middle East
Download the full report from here:
https://sectrio.com/resources/ot-threat-landscape-reports/sectrio-releases-ot-ics-and-iot-security-threat-landscape-report-2024/
UiPath Test Automation using UiPath Test Suite series, part 5DianaGray10
Welcome to UiPath Test Automation using UiPath Test Suite series part 5. In this session, we will cover CI/CD with devops.
Topics covered:
CI/CD with in UiPath
End-to-end overview of CI/CD pipeline with Azure devops
Speaker:
Lyndsey Byblow, Test Suite Sales Engineer @ UiPath, Inc.
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...James Anderson
Effective Application Security in Software Delivery lifecycle using Deployment Firewall and DBOM
The modern software delivery process (or the CI/CD process) includes many tools, distributed teams, open-source code, and cloud platforms. Constant focus on speed to release software to market, along with the traditional slow and manual security checks has caused gaps in continuous security as an important piece in the software supply chain. Today organizations feel more susceptible to external and internal cyber threats due to the vast attack surface in their applications supply chain and the lack of end-to-end governance and risk management.
The software team must secure its software delivery process to avoid vulnerability and security breaches. This needs to be achieved with existing tool chains and without extensive rework of the delivery processes. This talk will present strategies and techniques for providing visibility into the true risk of the existing vulnerabilities, preventing the introduction of security issues in the software, resolving vulnerabilities in production environments quickly, and capturing the deployment bill of materials (DBOM).
Speakers:
Bob Boule
Robert Boule is a technology enthusiast with PASSION for technology and making things work along with a knack for helping others understand how things work. He comes with around 20 years of solution engineering experience in application security, software continuous delivery, and SaaS platforms. He is known for his dynamic presentations in CI/CD and application security integrated in software delivery lifecycle.
Gopinath Rebala
Gopinath Rebala is the CTO of OpsMx, where he has overall responsibility for the machine learning and data processing architectures for Secure Software Delivery. Gopi also has a strong connection with our customers, leading design and architecture for strategic implementations. Gopi is a frequent speaker and well-known leader in continuous delivery and integrating security into software delivery.
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Albert Hoitingh
In this session I delve into the encryption technology used in Microsoft 365 and Microsoft Purview. Including the concepts of Customer Key and Double Key Encryption.
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...SOFTTECHHUB
The choice of an operating system plays a pivotal role in shaping our computing experience. For decades, Microsoft's Windows has dominated the market, offering a familiar and widely adopted platform for personal and professional use. However, as technological advancements continue to push the boundaries of innovation, alternative operating systems have emerged, challenging the status quo and offering users a fresh perspective on computing.
One such alternative that has garnered significant attention and acclaim is Nitrux Linux 3.5.0, a sleek, powerful, and user-friendly Linux distribution that promises to redefine the way we interact with our devices. With its focus on performance, security, and customization, Nitrux Linux presents a compelling case for those seeking to break free from the constraints of proprietary software and embrace the freedom and flexibility of open-source computing.
The Art of the Pitch: WordPress Relationships and SalesLaura Byrne
Clients don’t know what they don’t know. What web solutions are right for them? How does WordPress come into the picture? How do you make sure you understand scope and timeline? What do you do if sometime changes?
All these questions and more will be explored as we talk about matching clients’ needs with what your agency offers without pulling teeth or pulling your hair out. Practical tips, and strategies for successful relationship building that leads to closing the deal.
GraphRAG is All You need? LLM & Knowledge GraphGuy Korland
Guy Korland, CEO and Co-founder of FalkorDB, will review two articles on the integration of language models with knowledge graphs.
1. Unifying Large Language Models and Knowledge Graphs: A Roadmap.
https://arxiv.org/abs/2306.08302
2. Microsoft Research's GraphRAG paper and a review paper on various uses of knowledge graphs:
https://www.microsoft.com/en-us/research/blog/graphrag-unlocking-llm-discovery-on-narrative-private-data/
Removing Uninteresting Bytes in Software FuzzingAftab Hussain
Imagine a world where software fuzzing, the process of mutating bytes in test seeds to uncover hidden and erroneous program behaviors, becomes faster and more effective. A lot depends on the initial seeds, which can significantly dictate the trajectory of a fuzzing campaign, particularly in terms of how long it takes to uncover interesting behaviour in your code. We introduce DIAR, a technique designed to speedup fuzzing campaigns by pinpointing and eliminating those uninteresting bytes in the seeds. Picture this: instead of wasting valuable resources on meaningless mutations in large, bloated seeds, DIAR removes the unnecessary bytes, streamlining the entire process.
In this work, we equipped AFL, a popular fuzzer, with DIAR and examined two critical Linux libraries -- Libxml's xmllint, a tool for parsing xml documents, and Binutil's readelf, an essential debugging and security analysis command-line tool used to display detailed information about ELF (Executable and Linkable Format). Our preliminary results show that AFL+DIAR does not only discover new paths more quickly but also achieves higher coverage overall. This work thus showcases how starting with lean and optimized seeds can lead to faster, more comprehensive fuzzing campaigns -- and DIAR helps you find such seeds.
- These are slides of the talk given at IEEE International Conference on Software Testing Verification and Validation Workshop, ICSTW 2022.
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...DanBrown980551
Do you want to learn how to model and simulate an electrical network from scratch in under an hour?
Then welcome to this PowSyBl workshop, hosted by Rte, the French Transmission System Operator (TSO)!
During the webinar, you will discover the PowSyBl ecosystem as well as handle and study an electrical network through an interactive Python notebook.
PowSyBl is an open source project hosted by LF Energy, which offers a comprehensive set of features for electrical grid modelling and simulation. Among other advanced features, PowSyBl provides:
- A fully editable and extendable library for grid component modelling;
- Visualization tools to display your network;
- Grid simulation tools, such as power flows, security analyses (with or without remedial actions) and sensitivity analyses;
The framework is mostly written in Java, with a Python binding so that Python developers can access PowSyBl functionalities as well.
What you will learn during the webinar:
- For beginners: discover PowSyBl's functionalities through a quick general presentation and the notebook, without needing any expert coding skills;
- For advanced developers: master the skills to efficiently apply PowSyBl functionalities to your real-world scenarios.
In his public lecture, Christian Timmerer provides insights into the fascinating history of video streaming, starting from its humble beginnings before YouTube to the groundbreaking technologies that now dominate platforms like Netflix and ORF ON. Timmerer also presents provocative contributions of his own that have significantly influenced the industry. He concludes by looking at future challenges and invites the audience to join in a discussion.
1. MySQL Innovation Works -- InnoSQL
David Jiang
jiangchengyao@gmail.com
weibo.com/insidemysql
2. About Me
7+ years work on different databases
SQL Server
MySQL
Oracle
Now work for Netease Development and Research Center
Lab
MySQL kernel development
Author
<<Inside MySQL: InnoDB Storage Engine>>
<<Inside MySQL: SQL Programming >> (coming soon
2012.3)
3. What is InnoSQL
A new MySQL branch
Open source
High performance (flash cache)
Ease of use
Fully compatible with original MySQL
Collect creative idea for MySQL and make it happen
MySQL Innovation Works
http://www.innomysql.org
4. InnoSQL Feature
Flash Cache for InnoDB
Provide high performance than just use SSD as durable storage
Share memory(SHM) for InnoDB Buffer Pool
Quick warm-up InnoDB buffer pool
Less than 1 sec !!!
InnoDB IO Statistic
Get each SQL’s physical and logic read
Page Clean Thread
Remove block in user query thread
5. InnoSQL Flash Cache
InnoSQL Flash Cache
Using SSD as Cache
Other flash cache solution
Facebook flash cache
Oracle flash cache
Secondary Buffer Pool for InnoDB ( InnoSQL 5.5.8 )
6. Facebook Flash Cache
A general solution
Open source
https://github.com/facebook/flashcache
Integration with file systems
built using the Linux Device Mapper
Not optimize for database
Good in read intensive workload
Worse in write intensive workload
Need time to warm up
7. Oracle Flash Cache
Work for Oracle 11g
Page write to flash cache is slow
Not so aggressive
Need warm up
8. Secondary Buffer Pool
Support in InnoSQL 5.5.8
Good in read intensive workload
Also not good for write intensive workload
TPC-C
Can warm up database when start up
Slow for each start
Cache is not a persistent storage
9. Why need warm up ?
Capacity:
SSD >> Memory
Speed
SSD << Memory
10. Flash Cache in InnoSQL 5.5.13
Can cache both read & write operation
Sequential write on SSD
No random write
Merge write
Cache is persistent
11. Why not use SSD as durable storage
SSD is good for random read
7000+ IOPS
100 ~ 150 IOPS for disk
SSD life cycle
SSD write performance
Write: page
Wipe: extent ( 128~256 page)
Database is not fully optimized for SSD
Read ahead algorithm
512 bytes alignment write for log file
Random write
12. Why use SSD as Cache
Cache is everywhere
Register
L1 cache
L2 cache volatile
L3 cache
Memory
SSD
Disk
non-volatile
Tape
14. Analyze
If use SSD as durable storage
Non-volatile
But now the database not fully optimize it
If use Secondary Buffer Pool or Oracle Flash Cache
Volatile
Performance degrade
Need to write twice ( flash cache & durable storage )
If use Facebook flash cache
Volatile or Non-volatile
Base on cache modes
Writethrough
Writearound
writeback
Performance degrade
Still need to write twice, but use some optimization
Not fully optimize for database
15. Cache in MySQL InnoDB
InnoDB Buffer Pool
Cache page
Asynchronous operation for page
Read page in buffer pool first
Modify page in buffer pool first
Then make fuzzy or sharp checkpoint to disk
Need log manager for recovery
More buffer pool, better performance
Because speed gap between disk and memory
However, we can not get enough memory to cache all the database
16. Cache in MySQL InnoDB
Insert Buffer
Insert buffer is a B+ Tree,
MySQL version < 4.1.x, one table on insert buffer tree.
(page_no, fields_type_info, actual record)
>=4.1, only on insert buffer tree.
(space_id, one-byte-marker, page_no,fields_type_info, actual record)
index by (space_id, page_no)
Work for non-unique secondary index
Write to insert buffer , if page is not in the buffer pool
Insert buffer bitmap page to track the free space of page
2 bit per page
Merge write operation
Merge write
Delay page write
raise write performance
However, increase read operation
MySQL 5.5 Change Buffer
insert、purge、delete mark
17. InnoDB Insert Buffer
mysql> show engine innodb statusG;
*************************** 1. row ***************************
Status:
=====================================
090922 11:52:51 INNODB MONITOR OUTPUT
=====================================
Per second averages calculated from the last 15 seconds
……
-------------------------------------
INSERT BUFFER AND ADAPTIVE HASH INDEX
Used Page Free Page Seg size=size+free list len+1
-------------------------------------
Ibuf: size 2249, free list len 3346, seg size 5596,
374650 inserts, 51897 merged recs, 14300 merges
Hash table size 4980499, node heap has 1246 buffer(s)
1640.60 hash searches/s, 3709.46 non-hash searches/s
merged recs: merges = insert buffer efficiency
18. Cache in MySQL InnoDB
Cache can increase performance
Delay write operation
Gap between disk and cache
However, there is another cache in InnoDB
Doublewrite
19. What is Doublewrite ?
Doublewrite
Avoid partial write problem
512 byte write is always OK
But 16K write is not
Doublewrite buffer
2M
Doublewrite file
2M
Share tablespace: ibdata1
20. Doublewrite Architecture
Stores all data twice, first to the doublewrite buffer, and then
to the actual data files
--skip-innodb_doublewrite
mysql> show global status like 'innodb_dbl%'G;
************** 1. row ************************
Variable_name: Innodb_dblwr_pages_written
Value: 152362
************** 2. row ************************
Variable_name: Innodb_dblwr_writes
Value: 1465
2 rows in set (0.00 sec)
21. Doublewrite Feature
Size: 2M
All the page should first write here
Sequential write
Cache write
Hence, what about have a 100G or 300G doublewrite ?
This makes flash cache happen
22. Flash Cache in InnoSQL 5.5.13
Replace original doublewrite work
Now user can have a large doublewrite
Page write is sequential
SSD write feature
Doublewrite can read now
SSD random read feature
Cache both read and write operation
Persistent cache
Merge write
60 ~ 70% in workload like TPC-C
Support AIO read on flash cache
Not supported in Secondary Buffer Pool
27. Flash Cache Flush Algorithms
Flush page in flash cache to disk
Take over the flush in master thread
Flush in flash cache background thread
Algorithms
Less than innodb_flash_cache_write_cache_pct
No flush
Default 10
Less than innodb_flash_cache_do_full_io_pct
Flush 10% innodb_io_capacity
Default 90
Else
Flush 100% innodb_io_capacity
If idle
Flush 100% innodb_io_capacity
28. Merge Write in Flash Cache
flush_offset
write_offset
(7,7) (2,6) (0,6) (3,7) …… (3,7) (2,6) (4,8)
Page (2,6)、(3,7) can be merged
This much like insert buffer
Delay write operation
29. Flash Cache Benchmark
Sysbench OLTP
Read intensive
TPC-C
Write intensive
Blogbench
Blog like application oriented
Developed by Netease
33. Conclusion
Flash Cache can work in both read and write workload
Work better than using SSD as durable storage
Optimize for SSD in database kernel
No more writes in flash cache
Merge write support
34. SHM for InnoDB Buffer Pool
Use share memory to allocate innodb buffer pool
Why use share memory?
Speed warm up
Warm up speed?
Random read 10~20M/sec
30G buffer pool need 30~60 minutes
35. Warm up Method
Use SQL to warm up
SELECT count(*) FROM table ( force index ( primary key ) )
Warm up speed convert to sequential read
But can not make database to previous workload environment
Dump buffer pool to file
MySQL 5.6+ support
Warm up speed convert to sequential read
Make database to previous workload environment
Dump file is big
Database crash ?
36. Warm up Method
Percona Server
Export (space_id, page_no) in LRU list to file
Load this file order by (space_id,page_no) to make read
sequential when MySQL is startup
Make database to previous workload environment
Still need long time to warm up
if you have big buffer pool:128G、256G
37. Warm up in InnoSQL
Use share memory
--innodb_use_shm_preload=1
Share memory configuration like Oracle
/proc/sys/kernel/shmmax
/proc/sys/kernel/shmall
Warm up less than 1 sec
All page is in memory
38. SHM for InnoDB Buffer Pool
# list share memory info
innosql@db-62:~$ ipcs -a
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x0008c231 4653056 innosql 600 549715968 0
------ Semaphore Arrays --------
key semid owner perms nsems
------ Message Queues --------
key msqid owner perms used-bytes messages
# remove share memory
innosql@db-62:~$ ipcrm -m 4653056
39. InnoDB IO Statistics
Get read IO statistics
Like SQL Server:SET STATISTICS IO ON
InnoSQL realize it in Slow query Log
Both file and table
Help SQL developer
10 reads may be not good in OLTP application
Help DBA
Know the SQL real IO statistics
Not only the time it consumes
Still in develop
You can preview this feature
42. Page Cleaner Thread
Flush page in Master Thread
Adaptive Flush
IO Capacity
Problem
Master Thread have a lot to cope
Async flush can block user query thread
Page cleaner thread
MySQL 5.6 support
InnoSQL support it in MySQL 5.5
Can also help flush in FLUSH_LRU_LIST
44. Flush Algorithms in InnoDB
checkpoint_age < async_water_mark
adaptive_flusing
5% innodb_io_capacity
async_water_mark < checkpoint_age < sync_water_mark
Block one user query thread
Async flush
checkpoint_age > sync_water
Block all user query thread
Sync flush
n_dirty_pages > innodb_max_dirty_page_pct
Flush innodb_io_capacity
45. Page Cleaner Thread
Reduce master thread burden
Async flush move to this background
No block happened in user query thread
46. However
Flush not only happen in master thread
FLUSH_LRU_LIST
Check if there at least 64 page can be used
In this situation, flush almost in user query thread
Adaptive flush, innodb_io_capacity helps nothing
Happen in user query thread
InnoSQL also move this flush to page cleaner thread
MySQL 5.6 does not support
Still need more optimize