Active Topics

 


Reply
Thread Tools
Posts: 1,141 | Thanked: 781 times | Joined on Dec 2009 @ Magical Unicorn Land
#61
I installed gparted in easy debian & used it to easily resize and repartition my SD card directly on my N900. What other phone can do that??
 
Posts: 486 | Thanked: 251 times | Joined on Oct 2009
#62
Originally Posted by stlpaul View Post
I installed gparted in easy debian & used it to easily resize and repartition my SD card directly on my N900. What other phone can do that??
openmoko freerunner
__________________
The Mini-USB plug is an improvement over both the Type B plug and the Micro-B plug.
 

The Following 2 Users Say Thank You to j.s For This Useful Post:
Posts: 992 | Thanked: 995 times | Joined on Dec 2009 @ California
#63
Originally Posted by x-rated View Post
Hi!

Was wondering about my N900 often being very slow and unresponsive
Kill trackerd and use KMPlayer instead of system media player -

tracker-process -t
 
Posts: 172 | Thanked: 56 times | Joined on May 2010
#64
I have a 16GB memory Card. How do I use it as additional ram for N900?

If I want to use only 1GB, 2GB or 4GB as additional ram & remaining functions of the memory card, how do I do it?

Is there any noticeable difference in the performance after using MicroSD space as ram?

Please help.
 
Posts: 692 | Thanked: 264 times | Joined on Dec 2009
#65
You're not really using the microSD space as RAM, you're using it as swap space. You can partition as much or as little space as you want. The performance improvement isn't huge, it's just a little faster.

http://wiki.maemo.org/Swap_on_microS...d_for_swapping
__________________
"Impossible is not in the Maemo vocabulary" - Caballero
 
Posts: 21 | Thanked: 28 times | Joined on Apr 2010 @ Sweden
#66
Originally Posted by x-rated View Post
Hi!
mkswap /dev/mmcblk1p1 #prepare the swap partition
swapon /dev/mmcblk1p1 #enable the swap partition
Haven't done this, but should be /dev/mmcblk1p2 I guess!
 
Posts: 25 | Thanked: 59 times | Joined on Jun 2010 @ Finland
#67
Originally Posted by tomast View Post
Haven't done this, but should be /dev/mmcblk1p2 I guess!
Yep, changed, thanks!

Still started to get unresponsive after a couple of days so checked what's going on. Seems that the new partition will by default have lower priority than the internal one so it would be used only after the internal swap is exhausted, no added performance. The default BusyBox swapon doesn't even support setting the priority so would need to set the swap partition in the fstab (either somehow commanding how it's generated or editing between generating and taking in use), or using a proper swapon command.

Luckily Easy Debian happens to have a proper swapon which makes testing easier and pretty risk-free:

(Run Debian chroot)
[root@deb-m5v3d: ~]swapoff /dev/mmcblk1p2 # Turn off uSD swap
[root@deb-m5v3d: ~]swapon -p 0 /dev/mmcblk1p2 # Turn on uSD swap with priority 0
[root@deb-m5v3d: ~]swapoff /dev/mmcblk0p3 # Turn off internal swap (might take some time as it'll need to copy stuff to the other swap partition)
[root@deb-m5v3d: ~]swapon -p 0 /dev/mmcblk0p3 # Turn on internal swap with priority 0
[root@deb-m5v3d: ~]swapon -s # Check the status
Filename Type Size Used Priority
/dev/mmcblk0p3 partition 786424 236 0
/dev/mmcblk1p2 partition 393584 120276 0


There we go, both swap partitions used. Let's try a fresh start and then opening some apps and web pages (/proc/swaps can be used both native and with Easy Debian):

Nokia-N900:~# cat /proc/swaps
Filename Type Size Used Priority
/.debian/dev/mmcblk0p3 partition 786424 87728 0
/.debian/dev/mmcblk1p2 partition 393584 89360 0


Looks nicely balanced between the partitions.

And how's swap space activity by Easy Debian iostat:

avg-cpu: %user %nice %system %iowait %steal %idle
32.49 3.54 25.29 18.61 0.00 20.07

Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn
mmcblk1 136.89 3026.79 1179.79 182152 71000
mmcblk1p1 0.00 0.00 0.00 0 0
mmcblk1p2 136.89 3026.79 1179.79 182152 71000
hdq10 169.18 340.81 0.86 20510 52
hdq4 0.00 0.00 0.00 0 0
hdq2 0.00 0.00 0.00 0 0
mmcblk0 203.95 4405.68 1212.75 265134 72983
mmcblk0p1 0.90 63.91 0.12 3846 7
mmcblk0p2 57.86 1278.70 34.56 76952 2080
mmcblk0p3 145.20 3063.08 1178.07 184336 70896

Lot's of swap activity but perfectly balanced and only 18.61% I/O waits, looks good.

Let's see how will it look like after some days uptime now.

Anyone know if fstab generation could be configured somehow?
 

The Following User Says Thank You to x-rated For This Useful Post:
Posts: 692 | Thanked: 264 times | Joined on Dec 2009
#68
Hmm interesting. I wonder if there's a way to set swap files with equal priority without using Easy Debian's swapon. It would be nice to be able to do this in a startup script that you won't have to worry about it breaking if Easy Debian is removed / gets messed up somehow. Plus mounting the chroot during startup and copying swap content back and forth would bog things down quite a bit.

Me might need someone to port the GNU swapon/swapoff tools to Maemo 5...
__________________
"Impossible is not in the Maemo vocabulary" - Caballero

Last edited by GameboyRMH; 2010-09-07 at 12:48.
 
Posts: 254 | Thanked: 17 times | Joined on Dec 2009
#69
Originally Posted by rewt View Post
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
The last line will have to be rerun each time your device is rebooted, unless you add an init script to run it.
the last line seems to give me an error saying invalid argument!

what to do?
I have a 4gb card!
__________________
HAIL ROB1N!
 
Posts: 254 | Thanked: 17 times | Joined on Dec 2009
#70
No inputs frm anybdy?
__________________
HAIL ROB1N!
 
Reply


 
Forum Jump


All times are GMT. The time now is 09:45.