![]() |
Re: [DISCUSS] SDCard Swap Partition Methods..
Maybe I've overlooked information and/or threads on here, but a couple of weeks back I did a reflash and decided on spending max. 2 hours on running the swap on the microSD. Bottomline, I couldn't find a helpful guide and/or tools to achieve this so I gave up. If the result of this thread would be a comprehensive guide, working for most users, I would be really glad!
|
Re: [DISCUSS] SDCard Swap Partition Methods..
Quote:
@peterleinchen As I've written, way of doing ti via /etc/event.d/ script isn't bad at all, but it got one drawback - boot time is considerably slower, as Maemo need to enable eMMC swap first, then, via Your script, enable microSd swap, and disable eMMC swap. As - at this point - some thing are already swapped (most likely, You run event.d scripts after starting hildon-desktop), they need to be moved from eMMC swpa to microSD swap. As for using microSD swap together with eMMC swap, I don't recommend it, even with higher priority for microSD swap - it's still "in use", which creates (less, but still), I/O rade with things from optFS. Also, I'm quite sure, that using loopback file for swap is considerably slower than native swap - as it's with ED loopback image or native partition. @BertvanDorp 5 minutes guide to using swap on microSD: 1. Reformat microSD card to contain linux type swap partition, by any tool You prefer (linuxbox/linux LiveCD via GUI tools, or on-device via command line, or on-device via Easy Debian with GUI tools, or...). For this example, we assume You got 2 partitions on microSd card - first one is regular vfat, and 2nd one is linuxswap. 2. Use any method mentione din this thread to make device into using swap on /dev/mmcblk1p2 (you can edit /etc/event.d/rcS-late as suggested by me, or prepare script put into /etc/event.d folder, or wait for Hurrian to post his script and mix it with my way, or...). You're done. /Estel |
Re: [DISCUSS] SDCard Swap Partition Methods..
how to increase available ram? cant we get atleast 200 from 256?
|
Re: [DISCUSS] SDCard Swap Partition Methods..
Quote:
Dafuq? I don't think you understand what RAM is, what RAM is for or indeed how it is utilised under linux. |
Re: [DISCUSS] SDCard Swap Partition Methods..
listen. I know that u have knowledge on these bt android also has a linux base kernel. Flashing differnet kernel increases the available RAM. I have a galaxy s. When i first bought it it had 356md RAM free out of 486. Then i rooted my device. Flashed some custom ROM and kernel. And installed some tweaks. Now i get 412 available which obviously makes my device faster.
|
Re: [DISCUSS] SDCard Swap Partition Methods..
No. It doesn't. Really, just trust me on that (tm). And see this:
http://en.wikipedia.org/wiki/Random-access_memory http://ffhacktics.com/smf/index.php?...ach=5741;image |
Re: [DISCUSS] SDCard Swap Partition Methods..
Quote:
|
Re: [DISCUSS] SDCard Swap Partition Methods..
Quote:
|
Re: [DISCUSS] SDCard Swap Partition Methods..
Code:
cmp -s $tmp_fstab $fstab || cp $tmp_fstab $fstab |
Re: [DISCUSS] SDCard Swap Partition Methods..
Quote:
Unfortunately, N900 and Maemo5 as it runs on N900 simply can not function without swap. N900 really should have 512MB minimum to run smoothly, but that SoC configuration was not available to Nokia at the time N900 design was finalized, from what I've read. Different kernels may affect RAM availability as a result of different compiled-in options or optimizations. On N900 virtually everything that is nonessential is compiled as a module, meaning it does not get loaded unless it actually gets used. Unused modules don't use any RAM. There are recent discussions on LKML about optimizing swap for flash media, batching writes to align to erase-blocks, etc. which would greatly speed it up (similar, for example, to Btrfs in SSD mode). But this doesn't exist in our old kernel and may never exist for us if it's something that can't be backported easily. |
All times are GMT. The time now is 16:32. |
vBulletin® Version 3.8.8