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

Simplicity Linux 15.7 Officially Released, Based on LXPup and Linux Kernel 4.1 LTS

As reported at the beginning of July, David Purse, the developer of the Simplicity Linux distribution, announced the release and immediate availability for download of the final version of his Simplicity Linux 15.7 operating system on July 30, 2015. Read more

qBittorrent Open Source Torrent Downloader Gets Massive WebUI Improvements, More

The qBittorrent project announced on the first day of August 2015 that the second maintenance release of their cross-platform and open-source BitTorrent client, qBittorrent 3.2, is available for download with major improvements. Read more

Android Headliner: Chinese Handsets Need Better Software

That being said, Chinese OEMs have been known for pretty poor quality products for quite some time. Many of them still are, but a number of China-based OEMs improved in that regard, a lot. Manufacturers like Xiaomi, Huawei and Meizu have great hardware, and they’ve also improved a lot on the software front, but some other, smaller companies have real issues on the software side of things. Don’t get me wrong though, not all of them have such issues, but a number of them just can’t get that part right. Many of us in the tech business actually appreciate stock Android and what it brings to the table, and luckily, many of these smaller companies don’t skin Android all that much. Why is that a good thing? Well, the performance tends to be good for the most part, and the UI also looks really great. So, what’s wrong then? Well… read on. Read more

Lava goes the Android One way with Pixel V1

Indian mobile phone manufacturer, Lava, has introduced the Pixel V1, an Android One device at a price of Rs.11, 350 in collaboration with Google. The Pixel V1 has been developed by close coordination between product R&D teams at Lava & Google. Aimed at those users who have value for money in mind, Lava has provided the right hardware specifications and the promise of the Android One platform making Pixel V1 a solid offering. Read more