<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/mm/frontswap.c, branch linux-3.8.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.8.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.8.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2012-09-21T14:38:12Z</updated>
<entry>
<title>frontswap: support exclusive gets if tmem backend is capable</title>
<updated>2012-09-21T14:38:12Z</updated>
<author>
<name>Dan Magenheimer</name>
</author>
<published>2012-09-20T19:16:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e3483a5f3a8ef448c229a2aceca9b2ad6a46b8ec'/>
<id>urn:sha1:e3483a5f3a8ef448c229a2aceca9b2ad6a46b8ec</id>
<content type='text'>
Tmem, as originally specified, assumes that "get" operations
performed on persistent pools never flush the page of data out
of tmem on a successful get, waiting instead for a flush
operation.  This is intended to mimic the model of a swap
disk, where a disk read is non-destructive.  Unlike a
disk, however, freeing up the RAM can be valuable.  Over
the years that frontswap was in the review process, several
reviewers (and notably Hugh Dickins in 2010) pointed out that
this would result, at least temporarily, in two copies of the
data in RAM: one (compressed for zcache) copy in tmem,
and one copy in the swap cache.  We wondered if this could
be done differently, at least optionally.

This patch allows tmem backends to instruct the frontswap
code that this backend performs exclusive gets.  Zcache2
already contains hooks to support this feature.  Other
backends are completely unaffected unless/until they are
updated to support this feature.

While it is not clear that exclusive gets are a performance
win on all workloads at all times, this small patch allows for
experimentation by backends.

P.S. Let's not quibble about the naming of "get" vs "read" vs
"load" etc.  The naming is currently horribly inconsistent between
cleancache and frontswap and existing tmem backends, so will need
to be straightened out as a separate patch.  "Get" is used
by the tmem architecture spec, existing backends, and
all documentation and presentation material so I am
using it in this patch.

Signed-off-by: Dan Magenheimer &lt;dan.magenheimer@oracle.com&gt;
Signed-off-by: Konrad Rzeszutek Wilk &lt;konrad.wilk@oracle.com&gt;
</content>
</entry>
<entry>
<title>mm: frontswap: fix a wrong if condition in frontswap_shrink</title>
<updated>2012-09-21T14:37:45Z</updated>
<author>
<name>Zhenzhong Duan</name>
</author>
<published>2012-09-21T08:40:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a00bb1e9fc0925c0061e9d844523a3a47a7e2f7f'/>
<id>urn:sha1:a00bb1e9fc0925c0061e9d844523a3a47a7e2f7f</id>
<content type='text'>
pages_to_unuse is set to 0 to unuse all frontswap pages
But that doesn't happen since a wrong condition in frontswap_shrink
cancel it.

-v2: Add comment to explain return value of __frontswap_shrink,
as suggested by Dan Carpenter, thanks

Signed-off-by: Zhenzhong Duan &lt;zhenzhong.duan@oracle.com&gt;
Signed-off-by: Konrad Rzeszutek Wilk &lt;konrad.wilk@oracle.com&gt;
</content>
</entry>
<entry>
<title>mm/frontswap: fix uninit'ed variable warning</title>
<updated>2012-08-13T19:41:30Z</updated>
<author>
<name>Seth Jennings</name>
</author>
<published>2012-07-30T19:47:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6b982fcf0260b8371604fcf6a12c6beecb731c57'/>
<id>urn:sha1:6b982fcf0260b8371604fcf6a12c6beecb731c57</id>
<content type='text'>
Fixes uninitialized variable warning on 'type' in frontswap_shrink().
type is set before use by __frontswap_unuse_pages() called by
__frontswap_shrink() called by frontswap_shrink() before use by
try_to_unuse().

Signed-off-by: Seth Jennings &lt;sjenning@linux.vnet.ibm.com&gt;
Signed-off-by: Konrad Rzeszutek Wilk &lt;konrad.wilk@oracle.com&gt;
</content>
</entry>
<entry>
<title>mm/frontswap: cleanup doc and comment error</title>
<updated>2012-07-23T15:16:20Z</updated>
<author>
<name>Wanpeng Li</name>
</author>
<published>2012-06-16T12:37:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1d00015e268f9142de0b504b3e4a4905155276f2'/>
<id>urn:sha1:1d00015e268f9142de0b504b3e4a4905155276f2</id>
<content type='text'>
Signed-off-by: Wanpeng Li &lt;liwp.linux@gmail.com&gt;
Signed-off-by: Konrad Rzeszutek Wilk &lt;konrad.wilk@oracle.com&gt;
</content>
</entry>
<entry>
<title>mm: frontswap: remove unneeded headers</title>
<updated>2012-07-23T15:16:13Z</updated>
<author>
<name>Sasha Levin</name>
</author>
<published>2012-07-19T22:51:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3389b530a67e8aed049a213f751b29023bd9fcce'/>
<id>urn:sha1:3389b530a67e8aed049a213f751b29023bd9fcce</id>
<content type='text'>
Signed-off-by: Sasha Levin &lt;levinsasha928@gmail.com&gt;
[v1: Rebased with tracing removed]
Signed-off-by: Konrad Rzeszutek Wilk &lt;konrad.wilk@oracle.com&gt;
</content>
</entry>
<entry>
<title>mm: frontswap: split out function to clear a page out</title>
<updated>2012-07-19T22:51:14Z</updated>
<author>
<name>Sasha Levin</name>
</author>
<published>2012-06-10T10:51:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=611edfed29f406eedf66030e0864b7d3fec23f21'/>
<id>urn:sha1:611edfed29f406eedf66030e0864b7d3fec23f21</id>
<content type='text'>
Signed-off-by: Sasha Levin &lt;levinsasha928@gmail.com&gt;
Signed-off-by: Konrad Rzeszutek Wilk &lt;konrad.wilk@oracle.com&gt;
</content>
</entry>
<entry>
<title>mm: frontswap: remove unnecessary check during initialization</title>
<updated>2012-06-11T19:32:08Z</updated>
<author>
<name>Sasha Levin</name>
</author>
<published>2012-06-10T10:51:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f9f08103ebd634999abfccc8ff94985530f14d74'/>
<id>urn:sha1:f9f08103ebd634999abfccc8ff94985530f14d74</id>
<content type='text'>
The check whether frontswap is enabled or not is done in the API functions in
the frontswap header, before they are passed to the internal
double-underscored frontswap functions.

Remove the check from __frontswap_init for consistency.

Reviewed-by: Minchan Kim &lt;minchan@kernel.org&gt;
Signed-off-by: Sasha Levin &lt;levinsasha928@gmail.com&gt;
Signed-off-by: Konrad Rzeszutek Wilk &lt;konrad.wilk@oracle.com&gt;
</content>
</entry>
<entry>
<title>mm: frontswap: make all branches of if statement in put page consistent</title>
<updated>2012-06-11T19:31:55Z</updated>
<author>
<name>Sasha Levin</name>
</author>
<published>2012-06-10T10:51:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d9674dda1c7ed49d503d3d7308c90a9f965f0783'/>
<id>urn:sha1:d9674dda1c7ed49d503d3d7308c90a9f965f0783</id>
<content type='text'>
Currently it has a complex structure where different things are compared
at each branch. Simplify that and make both branches look similar.

Reviewed-by: Minchan Kim &lt;minchan@kernel.org&gt;
Signed-off-by: Sasha Levin &lt;levinsasha928@gmail.com&gt;
Signed-off-by: Konrad Rzeszutek Wilk &lt;konrad.wilk@oracle.com&gt;
</content>
</entry>
<entry>
<title>mm: frontswap: split frontswap_shrink further to simplify locking</title>
<updated>2012-06-11T19:31:33Z</updated>
<author>
<name>Sasha Levin</name>
</author>
<published>2012-06-10T10:51:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=69217b4cd044671b6dddcd9d33c8e4fdfd295ae3'/>
<id>urn:sha1:69217b4cd044671b6dddcd9d33c8e4fdfd295ae3</id>
<content type='text'>
Split frontswap_shrink to simplify the locking in the original code.

Also, assert that the function that was split still runs under the
swap spinlock.

Signed-off-by: Sasha Levin &lt;levinsasha928@gmail.com&gt;
Signed-off-by: Konrad Rzeszutek Wilk &lt;konrad.wilk@oracle.com&gt;
</content>
</entry>
<entry>
<title>mm: frontswap: split out __frontswap_unuse_pages</title>
<updated>2012-06-11T19:30:57Z</updated>
<author>
<name>Sasha Levin</name>
</author>
<published>2012-06-10T10:51:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f116695a500cdd84cbeac68bc373e98ae729c24b'/>
<id>urn:sha1:f116695a500cdd84cbeac68bc373e98ae729c24b</id>
<content type='text'>
An attempt at making frontswap_shrink shorter and more readable. This patch
splits out walking through the swap list to find an entry with enough
pages to unuse.

Also, assert that the internal __frontswap_unuse_pages is called under swap
lock, since that part of code was previously directly happen inside the lock.

Signed-off-by: Sasha Levin &lt;levinsasha928@gmail.com&gt;
Signed-off-by: Konrad Rzeszutek Wilk &lt;konrad.wilk@oracle.com&gt;
</content>
</entry>
</feed>
