Quantcast
Channel: Blog of (former?) MySQL Entomologist
Browsing latest articles
Browse All 241 View Live

Image may be NSFW.
Clik here to view.

Linux /proc Filesystem for MySQL DBAs - Part I, Basics

Happy New Year 2021, dear readers of my blog!We used to have real winters at this time of the year. Not any more...Among other good things that happened on December 31, 2020, I was informed that my...

View Article


Image may be NSFW.
Clik here to view.

Linux /proc Filesystem for MySQL DBAs - Part II, Threads of the mysqld Process

It's common knowledge that MySQL server (mysqld process) is multi-threaded. Let me quote:"The MySQL Server (mysqld) executes as a single OS process, with multiple threads executing concurrent...

View Article


Image may be NSFW.
Clik here to view.

Linux /proc Filesystem for MySQL DBAs - Part III, 0x.tools by Tanel Poder

In this third post of my "Linux /proc Filesystem for MySQL DBAs" series (see also Part I and Part II for the context and details) I am going to present a useful set of programs to access, summarize and...

View Article

Image may be NSFW.
Clik here to view.

Linux /proc Filesystem for MySQL DBAs - Part IV, Creating Off-CPU Flame Graphs

 My upcoming FOSDEM 2021 MySQL Devroom talk based on this series of blog posts is already prepared and recorded. But in the process I noted that some more details should be shared than one can cover in...

View Article

Image may be NSFW.
Clik here to view.

Playing with recent bpftrace and MariaDB 10.5 on Fedora - Part I, Basic uprobes

There is still some non-zero probability that my talk called "Monitoring MariaDB Server with bpftrace on Linux" is accepted for the FOSDEM 2021 Monitoring and Observability devroom, so it's time to...

View Article


Image may be NSFW.
Clik here to view.

Playing with recent bpftrace and MariaDB 10.5 on Fedora - Part II, Using the...

In the previous post in this series I've presented a couple of my quick and dirty attempts to use bpftrace add uprobes to MariaDB server and dynamic libraries it uses, to trace queries and their...

View Article

Image may be NSFW.
Clik here to view.

Checking User Threads and Temporary Tables With gdb in MariaDB 10.4+, Step By...

There were no posts about gdb tricks for a long time in this blog. This is surely unusual, but I had not done anything fancy with gdb for more than a year. Today I've got a chance finally to find...

View Article

Image may be NSFW.
Clik here to view.

What mysql_upgrade really does in MariaDB, Part II, Bugs and Missing Features

Both /proc sampling andbpftrace are cool topics to write about, but I should not forget my third upcoming talk at FOSDEM 2021 in less than 2 weeks, "Upgrading to a newer major version of MariaDB", that...

View Article


Image may be NSFW.
Clik here to view.

Playing with recent bpftrace and MariaDB 10.5 on Fedora - Part III, Creating...

I had some free time yesterday to do some more tests on Fedora, so I've got back to the old request for one of MariaDB developers that I first mentioned in the blog few months ago:"ideally, collect...

View Article


Image may be NSFW.
Clik here to view.

Playing with recent bpftrace and MariaDB 10.5 on Fedora - Part IV, Creating a...

So far in this series I am just trying to find out what can be done with bpftrace and how to get interesting insights or implement something I was asked about. I am not sharing "best practices" (mostly...

View Article

Image may be NSFW.
Clik here to view.

Playing with recent bpftrace and MariaDB 10.5 on Fedora - Part V, Proper Way...

In my previous post in this series I was tracing __lll_lock_wait() function and measuring time spent in it per unique MariaDB server's stack trace. I've got the results that had not looked like totally...

View Article

Image may be NSFW.
Clik here to view.

On Upcoming FOSDEM 2021

FOSDEM 2021 starts tomorrow. This time I have 3 talks to present. Here they are, in the order of appearance, with links to my related blog posts:"Upgrading to a newer major version of MariaDB" - it...

View Article

What about the "Fun with Bugs" series on YouTube?

My "Fun with Bugs" series of blog posts about interesting or badly handled MySQL bug reports ended more than 7 months ago. The time had come for that. But I honestly miss that media for bitching about...

View Article


Image may be NSFW.
Clik here to view.

5 Years of Working for MariaDB Corporation

March 1, 2016, was my first day of working for MariaDB Corporation. It means that I worked for them full 5 years in a row! It's the longest period I've ever spent working in the same company. I worked...

View Article

Image may be NSFW.
Clik here to view.

Off-CPU Analysis Attempt to Find the Reason of Performance Regression in...

I did not write new blog posts for more than 2 months already. Busy days... But now I am on vacation and my Percona Live Online 2021 talk on flame graphs is coming soon, so I decided to renew my...

View Article


Image may be NSFW.
Clik here to view.

Dynamic Tracing of Memory Allocations in MySQL With bcc Tools

Last year I started my lame attempts to apply different Linux dynamic tracing tools and approaches to frequent events like memory allocations. In this blog post I already described how to use perf to...

View Article

Image may be NSFW.
Clik here to view.

bpftrace as a code/function coverage tool for MariaDB server

I am going to speak about bpftrace again soon, this time at MariaDB Server Fest 2021. Among other useful applications of bpftrace I mention using it as a code coverage (or, more precisely, function...

View Article


Image may be NSFW.
Clik here to view.

Visualizing Performance Schema Events with Flame Graphs

Happy New Year 2022, dear readers! It's not the first time I am writing something about or illustrate some points with a flame graph. No wonder. Flame graph concept and related tools by Brendan Gregg...

View Article

Image may be NSFW.
Clik here to view.

Visualizing MySQL Plan Execution Time With Flame Graphs

In the previous post I've already shown one non-classical but useful application of flame graphs as a visualization of something interesting for MySQL DBAs (besides usual stack traces from profilers),...

View Article

Image may be NSFW.
Clik here to view.

Differential Flame Graphs to Highlight Performance Schema Waits Impact

Yet another type of flame graphs that I had not discussed yet is a differential flame graph (again invented by Brendan Gregg). It shows the difference of two flame graphs in a clear way (assuming they...

View Article

Image may be NSFW.
Clik here to view.

Accessing Complex Structures in MariaDB Server Code in bpftrace Probes -...

I had already written many blog posts about bpftrace. All my public talks devoted to bpftrace included a slide about "problems", and one of them usually sounded like this:...access to complex...

View Article


Image may be NSFW.
Clik here to view.

First steps with MariaDB Server and DTrace on macOS

FOSDEM 2022 is going to happen on the next weekend and I am still missing blog posts supporting my unusual upcoming talk there, this time devoted to building and using MariaDB server on macOS. So...

View Article


Image may be NSFW.
Clik here to view.

DTrace Basics and Tracing Every MariaDB Server Function Call

In my previous post I've explained how to build MariaDB Server 10.8 from GitHub source on macOS. This kind of (totally unsupported by both MariaDB Corporation and Foundation) build may be used to study...

View Article

Image may be NSFW.
Clik here to view.

How to Add Probe Inside a Function and Access Local Variables with bpftrace

During several my talks on bpftrace I mentioned that it is possible to add probe to "every other" line of the code, same as with perf, but had never demonstrated how to do this. Looks like it's time to...

View Article

Image may be NSFW.
Clik here to view.

How to Summarize gdb Backtrace with pt-pmp (and Flamegraph)

This is going to be more like a note to myself and my readers than a real blog post. But still I'd like o document the trick that I am applying for years already, in its most convenient form. Assuming...

View Article

Browsing latest articles
Browse All 241 View Live