the "more worse" part is the only thing which is wrong. The fact cache
also grows to 110M is expected and it won't change. With the
blkdev-pagecache patch the cache will grow to 220M and it will shrink to
110M if you are low on memory (buffer cache will only be allocated for
the superblock and inode metadata with ext2).
use ramfs if you want zero ram duplication and you don't care about the
physical representation on disk of your data in cache.
> and after data transfer below.
Try this patch to fix the "more worst part" (beware totally untested).
--- blkdev-rd/include/linux/swap.h.~1~ Sun Jun 24 02:06:13 2001
+++ blkdev-rd/include/linux/swap.h Wed Jun 27 16:47:57 2001
@@ -274,7 +274,7 @@
#endif
#define page_ramdisk(page) \
- (page->buffers && (MAJOR(page->buffers->b_dev) == RAMDISK_MAJOR))
+ (!page->mapping && page->buffers && (MAJOR(page->buffers->b_dev) == RAMDISK_MAJOR))
extern spinlock_t swaplock;
Andrea
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/