All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bob Liu <bob.liu@oracle.com>
To: Vasiliy Tolstov <v.tolstov@selfip.ru>
Cc: xen-devel@lists.xen.org
Subject: Re: tmem frontswap without swap file
Date: Tue, 25 Feb 2014 12:52:16 +0800	[thread overview]
Message-ID: <530C2180.5060508@oracle.com> (raw)
In-Reply-To: <CACaajQsGGijsr6a9VP+QxDw31LS63DzGTKyT3yLO6GxhpfZuew@mail.gmail.com>


On 02/24/2014 07:01 PM, Vasiliy Tolstov wrote:
> 2014-02-24 7:32 GMT+04:00 Bob Liu <bob.liu@oracle.com>:
>> Two types of page can be stored in tmem: persistent_page and ephemeral_page.
>>
>> Persistent pages are swapped-out pages, whose date can't be dropped by
>> tmem. The rule for persistent pages is:
>> 'current_domain_pages +  persistent_pages have to smaller than
>> domain->max_pages'.
>>
>> Ephemeral pages are clean pagecache pages, those pages have a copy in
>> disk already.
>> The amount number of ephemeral pages are not limited, but XEN host will
>> reclaim those pages if under memory pressure.
>> There is a tmem parameter 'weight' which can be used to control how many
>> ephemeral_pages should be reclaimed between domains.
> 
> 
> Very good, thanks for answers! What minimal kernel versions recommends
> for frontswap/cleancache in domU (dom0 xen 4.3.2)
> 

Any version started from v3.5 should be okay, I'd recommend versions
after v3.10 since there were hardly no commits since that version.

And I suggest you apply this patch also(which haven't been merged to
linus' git tree yet)
https://git.kernel.org/cgit/linux/kernel/git/konrad/xen.git/commit/?h=stable/for-linus-3.14&id=bc1b0df59e3fc4573f92bc1aab9652047a0aeaa7

-- 
Regards,
-Bob

  reply	other threads:[~2014-02-25  4:52 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-20  5:52 tmem frontswap without swap file Vasiliy Tolstov
2014-02-21  4:35 ` Vasiliy Tolstov
2014-02-24  3:32   ` Bob Liu
2014-02-24 11:01     ` Vasiliy Tolstov
2014-02-25  4:52       ` Bob Liu [this message]
2014-02-25  5:05         ` Vasiliy Tolstov
2014-02-25  5:26           ` Bob Liu

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=530C2180.5060508@oracle.com \
    --to=bob.liu@oracle.com \
    --cc=v.tolstov@selfip.ru \
    --cc=xen-devel@lists.xen.org \
    /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.