maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   Using Micro SD Card as Virtual Ram on Nokia N900? (https://talk.maemo.org/showthread.php?t=42357)

werks 2011-06-21 06:02

Re: Using Micro SD Card as Virtual Ram on Nokia N900?
 
Quote:

Originally Posted by dr_frost_dk (Post 1032245)
hmm got some missing libs etc...

but tried the busybox-POWER!!!! hehe and that worked just fine :)

i tried installing the .deb aswell, but as u said had some missing libs, libblkid1.

then i installed busybox power as u said, but still the same.
any tips?

mehulrajput 2011-06-21 06:04

Re: Using Micro SD Card as Virtual Ram on Nokia N900?
 
do a force install. even if libblkid1 is missing, it works doing swapon. don't worry about it.

trisha02 2011-06-24 05:54

Re: Using Micro SD Card as Virtual Ram on Nokia N900?
 
if i js follow this step:
"For those who need more VM, and wish to use their entire MicroSD card for this purpose:

(WARNING: This will erase the entire MicroSD card, or worse, some or all of your internal memory if you mistype the device name.. If you plan to proceed, I recommend that you have some idea what you are doing)

In x-term:

Code:

sudo gainroot
mkswap /dev/mmcblk1p1
swapon /dev/mmcblk1p1"

i can increase my N900 RAM?? can u tell me weder it is risky or not? wha are the advanatages..i am a noob.plz help

mehulrajput 2011-06-24 06:50

Re: Using Micro SD Card as Virtual Ram on Nokia N900?
 
Quote:

Originally Posted by trisha02 (Post 1037882)
if i js follow this step:
"For those who need more VM, and wish to use their entire MicroSD card for this purpose:

(WARNING: This will erase the entire MicroSD card, or worse, some or all of your internal memory if you mistype the device name.. If you plan to proceed, I recommend that you have some idea what you are doing)

In x-term:

Code:

sudo gainroot
mkswap /dev/mmcblk1p1
swapon /dev/mmcblk1p1"

i can increase my N900 RAM?? can u tell me weder it is risky or not? wha are the advanatages..i am a noob.plz help

it just increases your swap space. there is no way to increase more RAM. the only advantage is it removes swap from emmc hence emmc where your main memory resides is less loaded.

michaaa62 2011-06-24 06:52

Re: Using Micro SD Card as Virtual Ram on Nokia N900?
 
This is not RAM, but swap: space on your mmc, which is reserved by the system in cases where RAM space is not sufficiant any more.
Most of the times this is not necessary, because there already is a ~750M swap preinstalled on the internal mmc, which is more than enough even for powerusers and on the faster internal card. You probably would know by now, if on your device swap is broken or missing.

vi_ 2011-06-24 07:40

Re: Using Micro SD Card as Virtual Ram on Nokia N900?
 
You bro's do realise that:

1. Busybox-power has swapon with support for -p flag
2. Busybox-power won't really take up any extra space (like 256k)
3. With Busybox-power You can use a swapfile instead of partition (which seems to f**k some sd cards)
4. There is NO measurable benefit of 'striping' swap across SD and EMMC.

For maximum swap performance, create swapfile on a fast SD card and use that as swap.

Swapfiles are as easy as this.

strange1712 2011-08-23 07:21

Re: Using Micro SD Card as Virtual Ram on Nokia N900?
 
Hey, in last kernel-power + busybox-power i get:
Quote:

swapoff: NO OPT p!
Whenever I use swapoff. What does it mean? Is Busybox-power's fault or Kernel Power V48?

strange1712 2011-08-24 16:41

Re: Using Micro SD Card as Virtual Ram on Nokia N900?
 
Ok, I found it's Busybox's fault, "upstream"... (not "busybox-power" really...)
http://talk.maemo.org/showpost.php?p...&postcount=113
https://bugs.busybox.net/show_bug.cgi?id=4087

iDont 2011-08-25 12:23

Re: Using Micro SD Card as Virtual Ram on Nokia N900?
 
Quote:

Originally Posted by strange1712 (Post 1075865)
Ok, I found it's Busybox's fault, "upstream"... (not "busybox-power" really...)
http://talk.maemo.org/showpost.php?p...&postcount=113
https://bugs.busybox.net/show_bug.cgi?id=4087

"Fault" might not be the right word since BusyBox marks bigger releases (1.18.0, 1.19.0, ..) as unstable by default. That's also why busybox-power 1.19.0 isn't promoted out of extras-devel yet (I'm assuming here that you know the warning that comes with using that repo).

Anyway, busybox-power's swapoff works again in the latest extras-devel version (1.19.0power3). The version in extras(-testing) has always worked as expected ;)

WhiteWolf 2011-09-04 22:50

Re: Using Micro SD Card as Virtual Ram on Nokia N900?
 
Quote:

Originally Posted by vi_ (Post 1037908)
You bro's do realise that:

1. Busybox-power has swapon with support for -p flag
2. Busybox-power won't really take up any extra space (like 256k)
3. With Busybox-power You can use a swapfile instead of partition (which seems to f**k some sd cards)
4. There is NO measurable benefit of 'striping' swap across SD and EMMC.

For maximum swap performance, create swapfile on a fast SD card and use that as swap.

Swapfiles are as easy as this.

Does not work on my n900.

If I create a swap file to use it

Code:

sudo gainroot

mkswap /media/mmc1/swapfile1

the file was created using

Code:

dd if=/dev/zero of=/media/mmc1/swapfile1 bs=1024 count=786432
when trying to activate it using

Code:

swapon /media/mmc1/swapfile1
The process stays in state "D" and I can not kill it with the command

Code:

kill -s 9 PID


All times are GMT. The time now is 12:14.

vBulletin® Version 3.8.8