All of lore.kernel.org
 help / color / mirror / Atom feed
From: Izik Eidus <izik@qumranet.com>
To: Sukanto Ghosh <sukanto.cse.iitb@gmail.com>
Cc: kvm@vger.kernel.org
Subject: Re: KSM Algorithm
Date: Thu, 10 Jul 2008 08:40:33 -0500	[thread overview]
Message-ID: <48761151.20904@qumranet.com> (raw)
In-Reply-To: <a85e78f50807100639w4342255h466cb6e172fde344@mail.gmail.com>

ציטוט Sukanto Ghosh:
> One more query, what if multiple processes call ioctl KSM_CREATE_SCAN
> ? Will there be multiple scanners ?
>   
yes

> Consider a scenario where two processes A & B separately call
> KSM_CREATE_SCAN and then start registering some memory pages/areas via
> KSM_CREATE_SHARED_MEMORY_AREA ioctl.
> Lets say A registers 4 pages having content X, Y, Z and X . And,
> process B registers 2 pages having content Z and X.
> So, will there be only single copy each of X, Y and Z in the entire
> system or will they be kept separately i.e the scanner for A maintains
> X, Y, Z single copy each and scanner for B maintains X and Z
> separately.
>   
there will be only one copy,
ksm is multi threaded safe.

>
>   


  reply	other threads:[~2008-07-10 13:40 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-10  8:32 KSM Algorithm Sukanto Ghosh
2008-07-10  9:21 ` Izik Eidus
2008-07-10  9:43   ` Sukanto Ghosh
2008-07-10 10:44     ` Izik Eidus
2008-07-10 11:18       ` Sukanto Ghosh
2008-07-10 19:20         ` Izik Eidus
2008-07-10 11:23           ` Sukanto Ghosh
2008-07-10 13:39             ` Sukanto Ghosh
2008-07-10 13:40               ` Izik Eidus [this message]
2008-07-19  6:51                 ` Sukanto Ghosh

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=48761151.20904@qumranet.com \
    --to=izik@qumranet.com \
    --cc=kvm@vger.kernel.org \
    --cc=sukanto.cse.iitb@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.