Language Selection

English French German Italian Portuguese Spanish

Linux performance basics

Filed under
Linux

I want to write about Cassandra performance tuning, but first I need to cover some basics: how to use vmstat, iostat, and top to understand what part of your system is the bottleneck -- not just for Cassandra but for any system.

vmstat

You will typically run vmstat with "vmstat sampling-period", e.g., "vmstat 5." The output looks like this:

procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu----
r b swpd free buff cache si so bi bo in cs us sy id wa
20 0 195540 32772 6952 576752 0 0 11 12 38 43 1 0 99 0
22 2 195536 35988 6680 575132 6 0 2952 14 959 16375 72 21 4 3

The first line is your total system average since boot; typically this will not be very useful, since you are interested in what is causing problems NOW. Then you will get one line per sample period; most of the output is self explanatory. The reason to start with vmstat is the "swap" section: si and so are swap in (memory read from disk) and swap out (memory written to disk).

Rest Here




More in Tux Machines

Linux 4.17 RC6

  • Linux 4.17-rc6
    Things continue to be fairly calm. There's a couple of commits in here that aren't "trivial few-liners", but most of it really is pretty small. And in fact, a quarter of the full patch for the week is tooling - and the bulk of that is the testing subdirectory. In fact, drivers are in the minority here, because another 30% is arch updates (arm, s390, x86), and we even have more lines of filesystem fixes than we have driver fixes (admittedly mostly due to a few of the more-than-a-few-liner patches being to filesystems: afs and btrfs). We do have a few driver fixes (all over - hwmon, usb, sound, acpi, gpu), but it's all really small. So nothing special to report. Go read the shortlog, pull the changes, build, and test. It should all be good and pretty stable by this point. Linus
  • Linux 4.17-rc6 Kernel Released As Another "Fairly Calm" Release
    Linux 4.17 is up to its sixth weekly release candidate ahead of the official release expected by mid-June.

KDE Plasma 5.13 Looks Like an Awesome Update

The KDE Plasma 5.13 release is shaping up to be something rather special indeed. Currently in development, KDE Plasma 5.13 serves as the next major release of the leading Qt/Qml desktop environment. The update features a stack of improvements, refinements and some innovative new functionality. In this post we roundup the best KDE Plasma 5.13 features and changes, plus give you all the details on how to upgrade to Plasma 5.13 in Kubuntu and KDE Neon once it is released on June 12, 2018. Read more Also: First week of coding phase, GSoC'18

Today in Techrights

Introduction To VPS Or Virtual Private Server

VPS or Virtual Private Server is a virtual machine that’s hosted somewhere in the world. A VPS provider divides a physical computer into multiple virtual computers and one can buy and access those virtual machines as a service. Each virtual machine runs its own operating system so you can perform […] Read
more