Skip to Content
Mastering Apache Cassandra 3.x - Third Edition
book

Mastering Apache Cassandra 3.x - Third Edition

by Aaron Ploetz, Tejaswi Malepati
October 2018
Beginner to intermediate content levelBeginner to intermediate
348 pages
10h
English
Packt Publishing
Content preview from Mastering Apache Cassandra 3.x - Third Edition

Disable swap

Using swap space with Cassandra is bad for performance. Remember that swap space is essentially disk space used to extend RAM. The big difference is that reading references from RAM can be done in 100 nanoseconds, while disk seeks alone take about 20 milliseconds (Bonér, 2012). The bottom line is that it's better to have less memory than to have lots of slow memory.

Disabling swap is fairly simple, and can be done with this command:

sudo swapoff --all

Persisting this change after a reboot is done by editing /etc/fstab and removing the swap entries.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Apache Cassandra - Second Edition

Mastering Apache Cassandra - Second Edition

Nishant Neeraj

Publisher Resources

ISBN: 9781789131499Supplemental Content