public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Nikola Ciprich <extmaillist@linuxbox.cz>
To: Izik Eidus <ieidus@redhat.com>
Cc: Avi Kivity <avi@redhat.com>, KVM list <kvm@vger.kernel.org>,
	nikola.ciprich@linuxbox.cz
Subject: Re: problems getting KSM running on newer 2.6.32.x kernels
Date: Wed, 10 Feb 2010 13:28:47 +0100	[thread overview]
Message-ID: <20100210122846.GA27681@develbox.linuxbox.cz> (raw)
In-Reply-To: <20100209150217.51336c6f@redhat.com>

Hi Avi, Izik,

today I spent some time investigating the problem and I've found the culprit:
RHEL5 glibc doesn't define MADV_MERGEABLE, so qemu-kvm didn't compile with KSM
support.
After I added -DMADV_MERGEABLE=12 -DMADV_UNMERGEABLE=13 CFLAGS,
things started to work.
Strange it worked for me before -  I don't remember using that kind of
hack before, but nevermind, it works now!

thanks and sorry for my fault.

have a nice day

nik

On Tue, Feb 09, 2010 at 03:02:17PM +0200, Izik Eidus wrote:
> On Tue, 09 Feb 2010 12:51:47 +0200
> Avi Kivity <avi@redhat.com> wrote:
> 
> > On 02/01/2010 12:37 PM, Nikola Ciprich wrote:
> > > Hello,
> > > it seems to me that after upgrading to some 2.6.32.x release, KSM stopped working
> > > for me. I'm not exactly sure which update did this, but enabling KSM doesn't
> > > seem to do anything, ksmd process just sleeps and doesn't merge any memory.
> > > Early 2.6.32 versions worked correctly for me, now I'm using 2.6.32.7 and qemu-kvm-0.12.2.
> > >
> > > I'm enabling it using:
> > >
> > > echo 262144>  /sys/kernel/mm/ksm/pages_to_scan
> > > echo 100>  /sys/kernel/mm/ksm/sleep_millisecs
> > > echo 1>  /sys/kernel/mm/ksm/run
> 
> Is it happen to you just in 2.6.32.x? what happen with 2.6.33.x?
> 
> I have tested it on 2.6.33.x and it seems to work...
> 
> > >
> > >    
> > 
> > Izik?
> > 
> 
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

-- 
-------------------------------------
Ing. Nikola CIPRICH
LinuxBox.cz, s.r.o.
28. rijna 168, 709 01 Ostrava

tel.:   +420 596 603 142
fax:    +420 596 621 273
mobil:  +420 777 093 799
www.linuxbox.cz

mobil servis: +420 737 238 656
email servis: servis@linuxbox.cz
-------------------------------------

      reply	other threads:[~2010-02-10 12:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-01 10:37 problems getting KSM running on newer 2.6.32.x kernels Nikola Ciprich
2010-02-09 10:51 ` Avi Kivity
2010-02-09 13:02   ` Izik Eidus
2010-02-10 12:28     ` Nikola Ciprich [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100210122846.GA27681@develbox.linuxbox.cz \
    --to=extmaillist@linuxbox.cz \
    --cc=avi@redhat.com \
    --cc=ieidus@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=nikola.ciprich@linuxbox.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox