O'Reilly logo

PostgreSQL High Performance Cookbook by Dinesh Kumar, Chitij Chauhan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Disk tuning parameters

In this recipe, we will be discussing a few disk I/O related schedulers that are designed for a specific need.

Getting ready

The Linux kernel provides various device-specific algorithms, which give more flexibility in fine tuning the hardware devices. The Linux kernel by default provides several I/O scheduling algorithms, which have their own unique usages. Kernel also provides a way to change different I/O scheduling policies for different disk devices. The major disk I/O schedulers are CFQ (Completely Fair Queuing), noop, and deadline.

How to do it...

Let us discuss about, the Linux disk scheduling algorithms:

CFQ

This is the default I/O scheduler that we get for the disk devices. This scheduler provides I/O time slices, like ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required