PDA

View Full Version : Switch /rootfs and /swap


Ayle
06-24-2010, 05:38 PM
Hello guys. How do I go about doing that? The oneNAND is much faster than the eMMC so I want to put my /swap there as I'm tired of having my device slow down to a crawl whenever something has to move between the ram and the /swap partition on the eMMC.

noipv4
06-24-2010, 05:47 PM
I was also thinking on those terms. Repartition UBIFS, make a 64MB swap space. And add it with swapon to the existing swap space.
Adding the oneNAND in parallel to the eMMC should allow 2x read write throughput to swap.

What I have figured out that when the swap size reaches ~200MB thats when things come to a grinding halt.

noipv4
06-24-2010, 06:06 PM
[1|root@Nokia-N900|~]cat /proc/mtd
dev: size erasesize name
mtd0: 00020000 00020000 "bootloader"
mtd1: 00060000 00020000 "config"
mtd2: 00040000 00020000 "log"
mtd3: 00200000 00020000 "kernel"
mtd4: 00200000 00020000 "initfs"
mtd5: 0fb40000 00020000 "rootfs"