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

Cinnamon 2.4 to Feature New Theme Selection and Options for Linux Mint 17.1

Cinnamon is the default desktop environment in Linux Mint and it's built by the same developers who are making the Linux distro. It stands to reason that the best implementation for Cinnamon will be on Linux Mint. It's also the place that integrates the latest updates for Cinnamon as soon as they are made available. Usually, the latest iterations of Cinnamon are integrated quickly in Mint, but the developers are also working on an updated Linux Mint version, 17.1. The new Cinnamon 2.4 DE might arrive there by default and not in Linux Mint 17. Read more

Knoppix 7.4.1 Is Now Available For Download

Knoppix developers have released a major version of their operating system Knoppix 7.4.1 based on the usual picks from Debian stable (wheezy) and newer Desktop packages from Debian/testing and Debian/unstable (jessie). According to the official release note, this distro version uses kernel 3.16.2 and xorg 7.7 (core 1.16.0) for supporting current computer hardware. Read more

First Tizen phone now expected in India

Samsung’s postponed Tizen Linux-based smartphone is now heading for a launch in India by the end of the year, reports India’s Economic Times. Everybody, it seems, wants a piece of the Indian smartphone market. The latest company with plans to jump headlong into South Asia is Samsung, which aims to ship a Tizen Linux-based smartphone in India after the Diwali festival in November, according to the Economic Times (ET). Read more

GNOME: 3.14 almost there

Speaking of gedit, after the major changes of 3.12, 3.14 has been a cycle focused on stabilization and polishing. Overall the revised user interface got mostly positve feedback.. I for one, as a heavy gedit user, adapted to the new UI without problems. 3.14 will have a few incremental changes, that among other things try to address some of the issues pointed out by Jim Hall’s usability study presented at GUADEC: “Open” will be a single button removing the dichotomy between the open dialog and recent files and providing quick search among recent files. “Save” now uses a text label since it turns out a lot of people did not grok the icon (and no, I am not going back to the floppy image!) and the view menu has been reorganized and now uses a popover. With regard to the “Open” button, we know things are not perfect yet, search among recent is great, but when the “cache misses”, going through a double step is painful… we already have a few ideas on how to improve that next cycle, but for now I can vividly recommend to try the “quickopen” plugin, one of the hidden gems of gedit, which already provides some of the things we would like to integrate in the next iteration. Read more