[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] tmem frontswap without swap file

On 02/21/2014 12:35 PM, Vasiliy Tolstov wrote:
> 2014-02-20 9:52 GMT+04:00 Vasiliy Tolstov <v.tolstov@xxxxxxxxx>:
>> Hello. I have some problems with swap files in domU - i have ssd disks
>> that caches all io and if user use swap, ssd may fail very often.
>> Is that possible to use tmem frontswap without swap file at all? And
>> transparently push swap pages to tmem?
> Okay as i see it can;'t be possible.
> Another question - is that possible to reserve tmem to domains at specific 
> size?
> For example i need to get 20Gb for one domain and 10Gb for another.
> But if second domain very hungry it can't
> eaten all memory

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

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.


Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.