<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
<font size="-1"><font face="Verdana">vm0:/var/log# ls
/sys/kernel/mm/ksm/<br>
full_scans max_kernel_pages pages_shared pages_sharing
pages_to_scan pages_unshared pages_volatile run sleep_millisecs<br>
<br>
-Fred<br>
</font></font><br>
-------- Original Message --------<br>
Subject: Re: [PVE-User] KSM not working?<br>
From: Dietmar Maurer <a class="moz-txt-link-rfc2396E" href="mailto:dietmar@proxmox.com"><dietmar@proxmox.com></a><br>
To: Fred Supinski <a class="moz-txt-link-rfc2396E" href="mailto:fred@vmu.ca"><fred@vmu.ca></a>, proxmoxve
<a class="moz-txt-link-rfc2396E" href="mailto:pve-user@pve.proxmox.com"><pve-user@pve.proxmox.com></a><br>
Date: Tue Dec 29 2009 09:46:08 GMT-0500 (Eastern Standard Time)<br>
<blockquote
cite="mid:90D306BE6EBC8D428A824FBBA7A3113D017D951867@ronja.maurer-it.com"
type="cite">
<meta http-equiv="Content-Type"
content="text/html; charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";
color:black;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
color:black;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;
color:black;}
span.EmailStyle19
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle20
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle21
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page Section1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="Section1">
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);"
lang="EN-US">What is the output of:<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);"
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);">#
ls /sys/kernel/mm/ksm/<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);">And,
yes, „test -x $prox || exit 0“ is a bug – will fix it.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);">-
Dietmar<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<div
style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color blue; border-width: medium medium medium 1.5pt; padding: 0cm 0cm 0cm 4pt;">
<div>
<div
style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0cm 0cm;">
<p class="MsoNormal"><b><span
style="font-size: 10pt; font-family: "Tahoma","sans-serif"; color: windowtext;"
lang="EN-US">From:</span></b><span
style="font-size: 10pt; font-family: "Tahoma","sans-serif"; color: windowtext;"
lang="EN-US">
Fred Supinski [<a class="moz-txt-link-freetext" href="mailto:fred@vmu.ca">mailto:fred@vmu.ca</a>] <br>
<b>Sent:</b> Dienstag, 29. Dezember 2009 15:15<br>
<b>To:</b> Dietmar Maurer; proxmoxve<br>
<b>Subject:</b> Re: [PVE-User] KSM not working?<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span
style="font-size: 10pt; font-family: "Verdana","sans-serif";">Hi
Dietmar,<br>
<br>
It doesn't appear to start or give any output at all.<br>
<br>
vm0:/var/log# ps aux | grep ksm<br>
root 54 0.0 0.0
0 0 ?
SN Dec28 0:00 [ksmd]<br>
root 15063 0.0 0.0
3880 640 pts/1 S+ 08:32
0:00 grep ksm<br>
vm0:/var/log# /etc/init.d/ksmtuned start<br>
vm0:/var/log# /etc/init.d/ksmtuned status<br>
vm0:/var/log# ps aux | grep ksm<br>
root 54 0.0
0.0 0 0
? SN Dec28
0:00 [ksmd]<br>
root 15069 0.0 0.0
3880 640 pts/1 S+ 08:32
0:00 grep ksm<br>
vm0:/var/log#<br>
<br>
/etc/init.d/ksmtuned Line 42:<br>
test -x $prox || exit 0<br>
<br>
I am guessing this should be:<br>
test -x $prog || exit 0<br>
<br>
I'm have skimmed over the reset but nothing is popping out at me. I
have
tested with the above change, and it still does nothing.<br>
<br>
It doesn't appear to log any failures either.<br>
<br>
Thanks again,<br>
-<br>
Fred<br>
<br>
<br>
</span><br>
-------- Original Message --------<br>
Subject: Re: [PVE-User] KSM not working?<br>
From: Dietmar Maurer <a moz-do-not-send="true"
href="mailto:dietmar@proxmox.com"><dietmar@proxmox.com></a><br>
To: Fred Supinski <a moz-do-not-send="true" href="mailto:fred@vmu.ca"><fred@vmu.ca></a>,
<a moz-do-not-send="true" href="mailto:pve-user@pve.proxmox.com">pve-user@pve.proxmox.com</a>
<a moz-do-not-send="true" href="mailto:pve-user@pve.proxmox.com"><pve-user@pve.proxmox.com></a><br>
Date: Tue Dec 29 2009 03:23:17 GMT-0500 (Eastern Standard Time)<br>
<br>
<o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);"
lang="EN-US">is the ksm control daemon running (‘ksmtuned’)?, If not,
start
with:</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);"
lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);">#
/etc/init.d/ksmtuned start</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);">-
Dietmar</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);"> </span><o:p></o:p></p>
<div
style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color blue; border-width: medium medium medium 1.5pt; padding: 0cm 0cm 0cm 4pt;">
<div>
<div
style="border-style: solid none none; border-color: -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0cm 0cm;">
<p class="MsoNormal"><b><span
style="font-size: 10pt; font-family: "Tahoma","sans-serif"; color: windowtext;"
lang="EN-US">From:</span></b><span
style="font-size: 10pt; font-family: "Tahoma","sans-serif"; color: windowtext;"
lang="EN-US"> <a moz-do-not-send="true"
href="mailto:pve-user-bounces@pve.proxmox.com">pve-user-bounces@pve.proxmox.com</a>
[<a moz-do-not-send="true"
href="mailto:pve-user-bounces@pve.proxmox.com">mailto:pve-user-bounces@pve.proxmox.com</a>]
<b>On Behalf Of </b>Fred Supinski<br>
<b>Sent:</b> Montag, 28. Dezember 2009 22:56<br>
<b>To:</b> <a moz-do-not-send="true"
href="mailto:pve-user@pve.proxmox.com">pve-user@pve.proxmox.com</a><br>
<b>Subject:</b> Re: [PVE-User] KSM not working?</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size: 10pt; font-family: "Verdana","sans-serif";">As
an additional note, I am running 8 VMs on this box. 4x Ubuntu 9.10
Server, 3x Windows Server 2003, and 1x Windows XP.<br>
<br>
-Fred<br>
</span><br>
Fred Supinski wrote on 12/28/2009 2:31 PM: <o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size: 10pt; font-family: "Verdana","sans-serif";">Hi
Dietmar,<br>
<br>
That doesn't appear to be the issue:<br>
vm0:/# free<br>
total
used free
shared buffers cached<br>
Mem: 8180404
8129008
51396
0 95952 2316360<br>
-/+ buffers/cache: 5716696 2463708<br>
Swap: 7340024
1135688 6204336<br>
<br>
Anything else I should try checking out?<br>
<br>
Thanks,<br>
-<br>
Fred<br>
</span><br>
-------- Original Message --------<br>
Subject: Re: [PVE-User] KSM not working?<br>
From: Dietmar Maurer <a moz-do-not-send="true"
href="mailto:dietmar@proxmox.com"><dietmar@proxmox.com></a><br>
To: Fred Supinski <a moz-do-not-send="true" href="mailto:fred@vmu.ca"><fred@vmu.ca></a>,
proxmoxve
<a moz-do-not-send="true" href="mailto:pve-user@pve.proxmox.com"><pve-user@pve.proxmox.com></a><br>
Date: Mon Dec 28 2009 14:05:34 GMT-0500 (Eastern Standard Time)<br>
<br>
<br>
<o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);"
lang="EN-US">KSM only starts when you use more than half of your
physical
memory.</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);"
lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);"
lang="EN-US">- Dietmar</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);"
lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);"
lang="EN-US"> </span><o:p></o:p></p>
<div
style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color blue; border-width: medium medium medium 1.5pt; padding: 0cm 0cm 0cm 4pt;">
<div>
<div
style="border-style: solid none none; border-color: -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0cm 0cm;">
<p class="MsoNormal"><b><span
style="font-size: 10pt; font-family: "Tahoma","sans-serif"; color: windowtext;"
lang="EN-US">From:</span></b><span
style="font-size: 10pt; font-family: "Tahoma","sans-serif"; color: windowtext;"
lang="EN-US"> <a moz-do-not-send="true"
href="mailto:pve-user-bounces@pve.proxmox.com">pve-user-bounces@pve.proxmox.com</a>
[<a moz-do-not-send="true"
href="mailto:pve-user-bounces@pve.proxmox.com">mailto:pve-user-bounces@pve.proxmox.com</a>]
<b>On Behalf Of </b>Fred Supinski<br>
<b>Sent:</b> Montag, 28. Dezember 2009 19:00<br>
<b>To:</b> proxmoxve<br>
<b>Subject:</b> [PVE-User] KSM not working?</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size: 10pt; font-family: "Verdana","sans-serif";">I
have just started testing KSM and it doesn't appear to be working on my
server. ( 0 shared pages )<br>
<br>
I have verified that the kernel is configured to boot with the option
enabled,
and I show the ksmd process running.<br>
<br>
vm0:/# pveversion -v<br>
pve-manager: 1.5-1 (pve-manager/1.5/4561)<br>
running kernel: 2.6.32-1-pve<br>
proxmox-ve-2.6.32: 1.5-2<br>
pve-kernel-2.6.32-1-pve: 2.6.32-2<br>
pve-kernel-2.6.24-9-pve: 2.6.24-18<br>
pve-kernel-2.6.24-8-pve: 2.6.24-16<br>
qemu-server: 1.1-10<br>
pve-firmware: 1.0-2<br>
libpve-storage-perl: 1.0-6<br>
vncterm: 0.9-2<br>
vzctl: 3.0.23-1pve3<br>
vzdump: 1.2-5<br>
vzprocps: 2.0.11-1dso2<br>
vzquota: 3.0.11-1<br>
pve-qemu-kvm: 0.11.1-1<br>
ksm-control-daemon: 1.0-1<br>
<br>
Any ideas of what I might need to do to get it working?<br>
<br>
Thanks,<br>
<br>
Fred</span><o:p></o:p></p>
</div>
<p class="MsoNormal"><br>
<br>
<br>
<o:p></o:p></p>
<pre> <o:p></o:p></pre>
<pre> <o:p></o:p></pre>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>pve-user mailing list<o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="mailto:pve-user@pve.proxmox.com">pve-user@pve.proxmox.com</a><o:p></o:p></pre>
<pre><a moz-do-not-send="true"
href="http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user">http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user</a><o:p></o:p></pre>
<pre> <o:p></o:p></pre>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</blockquote>
<br>
</body>
</html>