Skip to content

XceptN’s Tech Stuff

All About Tech

The vm.swappiness Parameter in Linux 2.6 Kernels

Posted on September 15, 2008 By XceptN No Comments on The vm.swappiness Parameter in Linux 2.6 Kernels

The vm.swappiness parameter for Linux 2.6 kernels is based on a scale
from 0 to 100. The default is 60 and it is known to serve Oracle RDBMS
related workloads statistically the best.

The swappiness defined
by this parameter, is for a raw and general priority paging. This is
about prioritizing the page-out of pages from anonymous vs. file-backed
memory. Anonymous memory would be the private memory areas of the
processes generally. File-backed memory is the area of memory where a
file is mapped into using mmap(). It applies to different filesystems
like ocfs2 or ext3.

The “buffers” area that we see in the “free”
command output, or meminfo etc. is also file-backed memory, a subset of
file-backed memory nowhere mmap()’d. Basically if we have a lot such
I/O, we will have larger filesystem buffers dynamically no matter we
use Direct I/O or not. That can be checked from /proc/meminfo or free
Regarding the different values for the parameter:

* More swappiness tends to prefer to page out anonymous memory more.
* Less swappiness avoids pageout of anonymous memory more.

Paging
files are a simpler compared to anonymous memory, and having a low
swappiness can help with the performance. But this really depends on
how much the workload needs the free anonymous memory and free
file-backed memory. For Oracle RDBMS like workloads, the file-backed
memory is critical and it is not a good ide to have related memory
paged-out.

kernel, linux

Post navigation

Previous Post: Building Binaries from Sources
Next Post: Reading for Linux Kernel internals

Related Posts

Dipping Toes into Nix Package Manager | Installing Freeplane desktop
A Baby Named “Linux”!! kernel
How to Use “tcpdump” to Log OCFS2 Interconnect (o2net)? linux
Building Binaries from Sources development
Accessing NTFS Partitions from Linux linux
HP QLogic Drivers development

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Dipping Toes into Nix Package Manager | Installing Freeplane
  • Fujitsu Workplace Protect Face Recognition Best Practices on Q704
  • Fujitsu STYLISTIC Q704 Fingerprint Scanner Problems
  • Two Generations of Computing Equipment…
  • IBM Model M Keyboard Goes Blank

Recent Comments

  1. r0cky on Fujitsu LIFEBOOK UH572 Ultrabook Touch Pad Review: Linux
  2. XceptN on Fujitsu LIFEBOOK UH572 Ultrabook Touch Pad Review: Linux
  3. r0cky on Fujitsu LIFEBOOK UH572 Ultrabook Touch Pad Review: Linux
  4. Kaylee on Mounting an LVM Logical Volume in an Oracle VM Disk Image
  5. Theron Conrey on Open Source Virtualization for Smaller Carbon Footprint

Archives

  • June 2024
  • November 2014
  • October 2014
  • April 2014
  • March 2014
  • December 2012
  • November 2012
  • October 2010
  • April 2010
  • April 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • October 2008
  • September 2008

Categories

  • blogging
  • communication
  • desktop
  • development
  • firmware
  • Fujitsu
  • gprs
  • gps
  • hardware
  • internet
  • java
  • kernel
  • keyboard
  • linux
  • masteryourbiz
  • mms
  • mobile
  • multimedia
  • network
  • OracleVM
  • palm
  • python
  • rokr e6
  • social media networking
  • storage
  • sysadm
  • tablet
  • twitter
  • virtualization
  • wap
  • windows
  • wordpress
  • xen

Copyright © 2025 XceptN’s Tech Stuff.

Powered by PressBook Masonry Dark