From Fedora Project Wiki

< FWN‎ | Beats

Revision as of 21:40, 1 November 2009 by Dale (talk | contribs) (Other Sources)


In this section, we cover discussion of Fedora virtualization technologies on the @fedora-virt and @virt-tools lists..

Contributing Writer: Dale Bewley

Fedora Virtualization List

This section contains the discussion happening on the fedora-virt list.

KSM Tuning

Izik Eidus [1]

" by default enabled and only with 2000 kernel pages... What I am worried about is that users wont use the ksm tunning script and would just run ksm with this 2000 kernel pages - the result would be that ksm will probably merge just the zero pages (that could be alot of memory) and the user might not know

that much more memory can be saved...

Is it possible to at least make ksm disabled by default? so the users will have to run the ksm tunning script when they want to start ksm?

And if we set it to disabled by default, cant we set the initialized values into more realistic value? (like 1/4 of the memory in the mainline kernels? ) "

Mark McLoughlin [2]

"ksm is disabled by default currently"

"Here's the logic we have in the init script[3]:

  # unless KSM_MAX_KERNEL_PAGES is set, let ksm munch up to half of total memory.
  default_max_kernel_pages () {
      local total pagesize
      total=`awk '/^MemTotal:/ {print $2}' /proc/meminfo`
      pagesize=`getconf PAGESIZE`
      echo $[total * 1024 / pagesize / 2]

Justin Forbes [4]

"There are actually 2 init scripts. One to turn on ksm, and one for tuning. The actual ksm init script simply makes sure ksm is turned on in the kernel and sets max_kernel_pages to half of system memory. The ksmtuned script is a bit more involved."

Mark McLoughlin [5] "For Fedora 13, it'll be off by default in the kernel and the recommended way of switching it on is with 'chkconfig ksm on'

For Fedora 12, it's on by default in the kernel, 'chkconfig ksm on' just changes max pages and the only way of disabling it is by manually writing zero to /sys/kernel/mm/ksm/run"

"We'll probably end up with this behaviour in F12 updates at some point anyway when 2.6.32 is pulled in"

Justin Forbes "The limit to half of total memory is because ksm pages are unswappable at this time. To be fixed in a future kernel."

Virtualization Tools List

This section contains the discussion happening on the virt-tools-list list.

libosinfo Revisited

Arjun Roy revived[1] discussion of a library to track details of OS distributions for use by tools such as Package-x-generic-16.pngpython-virtinst and virt-inspector. LibOSinfo was first proposed[2] by Cole Robinson.