<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<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;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle22
{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]-->
</head>
<body bgcolor=white lang=DE-AT link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>So please can you try to debug the init script? Also try to start
the daemon manually to test whats wrong (ksmtuned)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>- Dietmar<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt'>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>
<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif";color:windowtext'>From:</span></b><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>
Fred Supinski [mailto:fred@vmu.ca] <br>
<b>Sent:</b> Dienstag, 29. Dezember 2009 15:53<br>
<b>To:</b> Dietmar Maurer<br>
<b>Cc:</b> 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:10.0pt;font-family:"Verdana","sans-serif"'>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>
</span><br>
-------- Original Message --------<br>
Subject: Re: [PVE-User] KSM not working?<br>
From: Dietmar Maurer <a href="mailto:dietmar@proxmox.com"><dietmar@proxmox.com></a><br>
To: Fred Supinski <a href="mailto:fred@vmu.ca"><fred@vmu.ca></a>,
proxmoxve <a 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>
<br>
<o:p></o:p></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>What is the output of:</span><o:p></o:p></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> </span><o:p></o:p></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'># ls /sys/kernel/mm/ksm/</span><o:p></o:p></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> </span><o:p></o:p></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>And, yes, „test -x $prox || exit 0“ is a bug – will fix it.</span><o:p></o:p></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> </span><o:p></o:p></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>- Dietmar</span><o:p></o:p></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> </span><o:p></o:p></p>
<div style='border:none;border-left:solid windowtext 1.5pt;padding:0cm 0cm 0cm 4.0pt;
border-color:-moz-use-text-color -moz-use-text-color -moz-use-text-color blue'>
<div>
<div style='border:none;border-top:solid windowtext 1.0pt;padding:3.0pt 0cm 0cm 0cm;
border-color:-moz-use-text-color -moz-use-text-color'>
<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif";color:windowtext'>From:</span></b><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'> Fred
Supinski [<a 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?</span><o:p></o:p></p>
</div>
</div>
<p class=MsoNormal> <o:p></o:p></p>
<p class=MsoNormal><span style='font-size:10.0pt;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 href="mailto:dietmar@proxmox.com"><dietmar@proxmox.com></a><br>
To: Fred Supinski <a href="mailto:fred@vmu.ca"><fred@vmu.ca></a>, <a
href="mailto:pve-user@pve.proxmox.com">pve-user@pve.proxmox.com</a> <a
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>
<br>
<o:p></o:p></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>is the ksm control daemon running (‘ksmtuned’)?, If not, start
with:</span><o:p></o:p></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> </span><o:p></o:p></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'># /etc/init.d/ksmtuned start</span><o:p></o:p></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> </span><o:p></o:p></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>- Dietmar</span><o:p></o:p></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> </span><o:p></o:p></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> </span><o:p></o:p></p>
<div style='border:none;border-left:solid windowtext 1.5pt;padding:0cm 0cm 0cm 4.0pt;
border-color:-moz-use-text-color -moz-use-text-color -moz-use-text-color blue'>
<div>
<div style='border:none;border-top:solid windowtext 1.0pt;padding:3.0pt 0cm 0cm 0cm;
border-color:-moz-use-text-color'>
<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif";color:windowtext'>From:</span></b><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'> <a
href="mailto:pve-user-bounces@pve.proxmox.com">pve-user-bounces@pve.proxmox.com</a>
[<a 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 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:10.0pt;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:10.0pt;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 href="mailto:dietmar@proxmox.com"><dietmar@proxmox.com></a><br>
To: Fred Supinski <a href="mailto:fred@vmu.ca"><fred@vmu.ca></a>,
proxmoxve <a 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>
<br>
<o:p></o:p></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>KSM only starts when you use more than half of your physical
memory.</span><o:p></o:p></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> </span><o:p></o:p></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>- Dietmar</span><o:p></o:p></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> </span><o:p></o:p></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> </span><o:p></o:p></p>
<div style='border:none;border-left:solid windowtext 1.5pt;padding:0cm 0cm 0cm 4.0pt;
border-color:-moz-use-text-color -moz-use-text-color -moz-use-text-color blue'>
<div>
<div style='border:none;border-top:solid windowtext 1.0pt;padding:3.0pt 0cm 0cm 0cm;
border-color:-moz-use-text-color'>
<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif";color:windowtext'>From:</span></b><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'> <a
href="mailto:pve-user-bounces@pve.proxmox.com">pve-user-bounces@pve.proxmox.com</a>
[<a 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:10.0pt;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>
<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
href="mailto:pve-user@pve.proxmox.com">pve-user@pve.proxmox.com</a><o:p></o:p></pre><pre><a
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>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</div>
</body>
</html>