mr_xzibit's Avatar
Posts: 220 | Thanked: 49 times | Joined on Aug 2010 @ england
#31
how do i edit with midnight commander? i can locate the rcS edit it but it wont save my settings?
__________________
Fav band.SyLOSiS
Playstation® 3 n900 Trophy viewer click here
want a more responsive n900? Click here
 
Posts: 992 | Thanked: 995 times | Joined on Dec 2009 @ California
#32
Originally Posted by JaseP View Post
And since flash memory's faster than disk
That is wrong. Test it yourself - eMMC flash speed is around 19MByte/sec but most of modern hard disk have more than 50MBytes/sec. And some server disks have around 130MByte/sec.

However, the swapiness 100 is definitely wrong, at least with current kernel - it doesn't have a conditional swapiness which would stop swap ops in progress if there is no "not-enough-memory" condition and some urgent flash IO.
 
Posts: 21 | Thanked: 28 times | Joined on Apr 2010 @ Sweden
#33
You must become root before starting mc. Install package 'rootsh', start xterminal, write
Code:
root
mc
But be careful, especially when editing rcS. It's easy to render your N900 unbootable.
 
Posts: 992 | Thanked: 995 times | Joined on Dec 2009 @ California
#34
I highly recommend to anybody who wants to change rcS - instead of that just create a file /etc/event.d/somename with following lines:

Code:
description "my somename fix"
author "My Name"

console output

start on started rcS-late

script
       echo "30" > /proc/sys/vm/swappiness
end script
... and insert any another wished lines after "echo 30" and before "end script"

This would not corrupt your N900 in case of problem and it allows the next Nokia OTA upgrade.

You need to be root and run your favorite editor (see prev posts for know how to edit file).

Last edited by egoshin; 2010-09-14 at 01:17. Reason: Syntax clarified to help avoid common bugs for beginners
 

The Following 19 Users Say Thank You to egoshin For This Useful Post:
Posts: 424 | Thanked: 196 times | Joined on Mar 2010 @ Sweden
#35
Originally Posted by egoshin View Post
I highly recommend to anybody who wants to change rcS - instead of that just create a file /etc/event.d/somename with following lines:

Code:
# my somename fix

start on started rcS-late

script
       echo 30 > /proc/sys/vm/swappiness
end script
... and insert any another wished lines after "echo 30" and before "end script"

This would not corrupt your N900 in case of problem and it allows the next Nokia OTA upgrade.

You need to be root and run your favorite editor (see prev posts for know how to edit file).
Yea, good idea. thx
 
Posts: 150 | Thanked: 16 times | Joined on Jun 2010
#36
how do i get this symbol in n900??

>
 
Posts: 1,746 | Thanked: 2,100 times | Joined on Sep 2009
#37
Originally Posted by egoshin View Post
That is wrong. Test it yourself - eMMC flash speed is around 19MByte/sec but most of modern hard disk have more than 50MBytes/sec. And some server disks have around 130MByte/sec.
As I noted to you elsewhere, a hard disk can do 50MByte/s or better but only when streaming. As soon as you start pushing random pages on and off disk, doing small reads and writes, a hard disk can fall under 200KB/s while a decent SSD will maintain at least 1MByte/s or better.

Consider that writing a single 4K RAM page consists of 8 x 512B writes (with the only benefit being that -this- page will be contiguous) and if you're pushing off more than a few pages swap partition, you're going to be hurting.

The eMMC lacking moving parts should maintain throughput much better. If you're real curious, you could always throw IOMeter at it
 
Posts: 650 | Thanked: 619 times | Joined on Nov 2009
#38
FYI this is a good tutorial of Linux VM

http://www.redhat.com/magazine/001nov04/features/vm/
 

The Following User Says Thank You to sony123 For This Useful Post:
Posts: 5,795 | Thanked: 3,151 times | Joined on Feb 2007 @ Agoura Hills Calif
#39
Originally Posted by hassan_badredin View Post
how do i get this symbol in n900??

>
You go to the manual and read the section titled "Enter a character not found from the keyboard."

To save you some time, here is what the manual says:

"Press and hold (the diagonal blue arrow) and then press the sym key."
__________________
All I want is 40 acres, a mule, and Xterm.
 
Posts: 992 | Thanked: 995 times | Joined on Dec 2009 @ California
#40
Actually, flash devices are more suitable for streaming then random access - there is a serious logic behind that. Yes the random access in flash is faster for READ but write is another story and it is not very good for flash devices yet.

In any way, swap write is essentially a sequential operation. Kernel does a special logic behind this.
 
Reply

Tags
battery

Thread Tools

 
Forum Jump


All times are GMT. The time now is 05:49.