From: Nitin Gupta <ngupta@vflare.org>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Ed Tomlinson <edt@aei.ca>,
Hugh Dickins <hugh.dickins@tiscali.co.uk>,
Pekka Enberg <penberg@cs.helsinki.fi>,
linux-kernel@vger.kernel.org, linux-mm@kvack.org,
linux-mm-cc <linux-mm-cc@laptop.org>
Subject: Re: [PATCH 0/4] compcache: in-memory compressed swapping v2
Date: Sat, 12 Sep 2009 07:54:29 +0530 [thread overview]
Message-ID: <4AAB065D.3070602@vflare.org> (raw)
In-Reply-To: <200909100332.55910.ngupta@vflare.org>
Hi,
On 09/10/2009 03:32 AM, Nitin Gupta wrote:
> Project home: http://compcache.googlecode.com/
>
> * Changelog: v2 vs initial revision
> - Use 'struct page' instead of 32-bit PFNs in ramzswap driver and xvmalloc.
> This is to make these 64-bit safe.
> - xvmalloc is no longer a separate module and does not export any symbols.
> Its compiled directly with ramzswap block driver. This is to avoid any
> last bit of confusion with any other allocator.
> - set_swap_free_notify() now accepts block_device as parameter instead of
> swp_entry_t (interface cleanup).
> - Fix: Make sure ramzswap disksize matches usable pages in backing swap file.
> This caused initialization error in case backing swap file had intra-page
> fragmentation.
>
>
Can anyone please review these patches for possible inclusion in 2.6.32?
Sorry for the weird email threading.
Thanks,
Nitin
> It creates RAM based block devices which can be used (only) as swap disks.
> Pages swapped to these disks are compressed and stored in memory itself. This
> is a big win over swapping to slow hard-disk which are typically used as swap
> disk. For flash, these suffer from wear-leveling issues when used as swap disk
> - so again its helpful. For swapless systems, it allows more apps to run for a
> given amount of memory.
>
> It can create multiple ramzswap devices (/dev/ramzswapX, X = 0, 1, 2, ...).
> Each of these devices can have separate backing swap (file or disk partition)
> which is used when incompressible page is found or memory limit for device is
> reached.
>
> A separate userspace utility called rzscontrol is used to manage individual
> ramzswap devices.
>
> * Testing notes
>
> Tested on x86, x64, ARM
> ARM:
> - Cortex-A8 (Beagleboard)
> - ARM11 (Android G1)
> - OMAP2420 (Nokia N810)
>
> * Performance
>
> All performance numbers/plots can be found at:
> http://code.google.com/p/compcache/wiki/Performance
>
> Below is a summary of this data:
>
> General:
> - Swap R/W times are reduced from milliseconds (in case of hard disks)
> down to microseconds.
>
> Positive cases:
> - Shows 33% improvement in 'scan' benchmark which allocates given amount
> of memory and linearly reads/writes to this region. This benchmark also
> exposes bottlenecks in ramzswap code (global mutex) due to which this gain
> is so small.
> - On Linux thin clients, it gives the effect of nearly doubling the amount of
> memory.
>
> Negative cases:
> Any workload that has active working set w.r.t. filesystem cache that is
> nearly equal to amount of RAM while has minimal anonymous memory requirement,
> is expected to suffer maximum loss in performance with ramzswap enabled.
>
> Iozone filesystem benchmark can simulate exactly this kind of workload.
> As expected, this test shows performance loss of ~25% with ramzswap.
>
> (Sorry for long patch[2/4] but its now very hard to split it up).
>
> Documentation/blockdev/00-INDEX | 2 +
> Documentation/blockdev/ramzswap.txt | 50 ++
> drivers/block/Kconfig | 22 +
> drivers/block/Makefile | 1 +
> drivers/block/ramzswap/Makefile | 3 +
> drivers/block/ramzswap/ramzswap_drv.c | 1529 +++++++++++++++++++++++++++++++++
> drivers/block/ramzswap/ramzswap_drv.h | 183 ++++
> drivers/block/ramzswap/xvmalloc.c | 533 ++++++++++++
> drivers/block/ramzswap/xvmalloc.h | 30 +
> drivers/block/ramzswap/xvmalloc_int.h | 86 ++
> include/linux/ramzswap_ioctl.h | 51 ++
> include/linux/swap.h | 5 +
> mm/swapfile.c | 34 +
> 13 files changed, 2529 insertions(+), 0 deletions(-)
> _______________________________________________
>
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2009-09-12 2:25 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200909100215.36350.ngupta@vflare.org>
2009-09-09 21:19 ` [PATCH 2/4] virtual block device driver (ramzswap) Nitin Gupta
2009-09-14 20:10 ` Pekka Enberg
2009-09-15 6:39 ` Nitin Gupta
2009-09-15 7:30 ` Pekka Enberg
2009-09-15 8:21 ` Nitin Gupta
2009-09-15 8:30 ` Pekka Enberg
2009-09-15 15:26 ` Greg KH
2009-09-15 15:55 ` Nitin Gupta
2009-09-15 11:45 ` Ed Tomlinson
2009-09-15 12:42 ` Pekka Enberg
2009-09-15 13:14 ` Steven Rostedt
2009-09-15 13:43 ` Pekka Enberg
2009-09-15 14:08 ` Steven Rostedt
2009-09-09 21:21 ` [PATCH 4/4] documentation Nitin Gupta
2009-09-09 21:50 ` [PATCH 3/4] send callback when swap slot is freed Nitin Gupta
2009-09-09 21:53 ` [PATCH 1/4] xvmalloc memory allocator Nitin Gupta
2009-09-09 22:02 ` [PATCH 0/4] compcache: in-memory compressed swapping v2 Nitin Gupta
2009-09-12 2:24 ` Nitin Gupta [this message]
2009-09-13 19:07 ` Hugh Dickins
2009-09-14 4:04 ` Nitin Gupta
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=4AAB065D.3070602@vflare.org \
--to=ngupta@vflare.org \
--cc=akpm@linux-foundation.org \
--cc=edt@aei.ca \
--cc=hugh.dickins@tiscali.co.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm-cc@laptop.org \
--cc=linux-mm@kvack.org \
--cc=penberg@cs.helsinki.fi \
/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