FWN/Beats/Virtualization

From FedoraProject

< FWN | Beats(Difference between revisions)
Jump to: navigation, search
(Other Sources)
(KSM Tuning)
Line 28: Line 28:
 
into more realistic value? (like 1/4 of the memory in the mainline kernels? )
 
into more realistic value? (like 1/4 of the memory in the mainline kernels? )
 
"
 
"
 +
<ref>http://www.kernel.org/doc/Documentation/vm/ksm.txt</ref>
  
 
[[MarkMcLoughlin|Mark McLoughlin]]
 
[[MarkMcLoughlin|Mark McLoughlin]]

Revision as of 00:32, 2 November 2009


Contents

Virtualization

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? ) " [2]

Mark McLoughlin [3]

"ksm is disabled by default currently"

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

  # 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 [5]

"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 [6] "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."

  1. http://www.redhat.com/archives/fedora-virt/2009-October/msg00110.html
  2. http://www.kernel.org/doc/Documentation/vm/ksm.txt
  3. http://www.redhat.com/archives/fedora-virt/2009-October/msg00112.html
  4. http://gitorious.org/ksm-control-scripts/ksm-control-scripts
  5. http://www.redhat.com/archives/fedora-virt/2009-October/msg00115.html
  6. http://www.redhat.com/archives/fedora-virt/2009-October/msg00119.html

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.

  1. http://www.redhat.com/archives/virt-tools-list/2009-October/msg00091.html
  2. http://fedoraproject.org/wiki/FWN/Issue180#libosinfo:_Library_for_Virt_OS.2Fdistro_Metadata