Reply
Thread Tools
Posts: 669 | Thanked: 433 times | Joined on May 2010
#101
Originally Posted by Estel View Post
WTF? Never got so much delay in rotation, even @ 100% CPU usage (by some thing like aircrack-ng) and swap in use.

/Estel
It happens to me when the device is up without restarting for 2 days or more.

Estel - what do you mean by "swap in use"? i've seen several places mentioning swap usage - can you reference me to relevant discussion board (can it help with the problem i'm having?)

Anyway like you said - controlling the delay time will be a great thing.

Thanks.
 

The Following User Says Thank You to impeham For This Useful Post:
ibrakalifa's Avatar
Posts: 1,583 | Thanked: 1,203 times | Joined on Dec 2011 @ Everywhere
#102
nice


already have it, work perfectly
 
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#103
@impeham - I wanted to send You PM with answer, but for some reason, I'm unable to PM You (some stupid forum rules limitation, I think) - so, I'm answering here, despite it being off-topic.

Generally, inside Your N900, You have 2 different storage 'devicesm - 256 MB NAND (super fast, at least compared to Your every day flash devices) - where most important (in terms of access times and read/write speeds) system files reside, and 32 GB eMMC, which is "regular" flash storage, and files from optified packages rest there, (symlinked, so system see them as sitting on same storage). On eMMC, You also have - by default - swap partition (if You don't know what swap is, You can google with ease, it's well-documented thing).

Now, SWAP is used pretty often - given the amount of RAM we have (256 MB). Flash-based storages doesn't handle many different input-output requests at once (especially true about write operations), and having opt and swap on same storage medium (physically) result in many conflicting I/O requests.

Fortunately, on N900 You have another storage medium available - microSD. By creating linux SWAP partition there (using linux machine, linux live CD, or N900 itself, if You feel comfortable with partitioning via terminal commands), enabling it and disabling eMMC swap partition, You get rid of such I/O collisions. For details, see:
http://wiki.maemo.org/Swap_on_microSD
(You'll find also information on using both eMMC and microSD swap with same priorites - scratch that part, it's outdated, and assumption about performance gain by increased bandwidth - aka RAID0 philosophy - doesn't consider I/O collisions on eMMC, so it's wrong on basics).

Generally, if You have swap type partition on Your microSD, You need to place script like tht:
Code:
description "swapoff eMMC, swapon MMC"
start on started hildon-desktop
stop on starting shutdown
console none
service

script

swapon /dev/mmcblk1p2
swapoff /dev/mmcblk0p3

end script
...placed i /etc/event.d/ directory. Of course, mmcblk1p2 apply only, if Your swap is second partition on microSD - in other cases, change number accordingly.

Another thing is swap fragmentation - occurring, after total amount of data written to swap partition (during one session) exceed total size of swap partition (this occur, due to write-erase characteristic of flash storage media) - it can be 'fought' by simply disabling and enabling swap again, but to measure when it's needed, You need simple iostat-based script, which parts of it bundled also inside Your (mentioned already) startup script it /etc/event.d/.

Ho ever, it's quite too wide topic for this post, being already *epic* off-topic - thinking about that, I may create separate thread summarizing around-swap knowledge, as it's now spread around whole forum. My augmented version of shadowjk's measuring (anti swap-fragmentation) script, may be also of interst o some, so I'll post it there as well.

/Estel
__________________
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1 | ereswap | bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!

Last edited by Estel; 2011-12-23 at 21:12.
 

The Following 5 Users Say Thank You to Estel For This Useful Post:
Posts: 669 | Thanked: 433 times | Joined on May 2010
#104
Estel - thanks a lot for the explanation - i'll create another partition on the memory card for swap and check if it solves the performance issue.

The fragmentation fix script will also be most appreciated

Last edited by impeham; 2011-12-24 at 03:39.
 

The Following User Says Thank You to impeham For This Useful Post:
Posts: 1,101 | Thanked: 1,184 times | Joined on Aug 2008 @ Spain
#105
Originally Posted by Estel View Post

Ho ever, it's quite too wide topic for this post, being already *epic* off-topic - thinking about that, I may create separate thread summarizing around-swap knowledge, as it's now spread around whole forum. My augmented version of shadowjk's measuring (anti swap-fragmentation) script, may be also of interst o some, so I'll post it there as well.

/Estel
Please do so, it'll be of use for everybody.
 

The Following 3 Users Say Thank You to maacruz For This Useful Post:
Posts: 569 | Thanked: 462 times | Joined on Jul 2010 @ USA
#106
Bug:

"End Call" button not displayed for phone interface when device rotation is locked locked to portrait. It looks as if the "End Call" button is trying to display below the screen.
 

The Following 2 Users Say Thank You to rotoflex For This Useful Post:
Raimu's Avatar
Posts: 139 | Thanked: 181 times | Joined on Nov 2011 @ Oulu, Finland
#107
Originally Posted by Estel View Post
I may create separate thread summarizing around-swap knowledge, as it's now spread around whole forum. My augmented version of shadowjk's measuring (anti swap-fragmentation) script, may be also of interst o some, so I'll post it there as well.
A cheery YES. We need a swap rumour control / definitive info thread or a page.
 

The Following 2 Users Say Thank You to Raimu For This Useful Post:
fw190's Avatar
Posts: 584 | Thanked: 700 times | Joined on Jan 2010
#108
+1 on this.A solid wiki entry would help many people including noobs in this matter like me
__________________
per ardua ad astra
 

The Following User Says Thank You to fw190 For This Useful Post:
Posts: 266 | Thanked: 156 times | Joined on Jun 2011 @ India
#109
any news about next update???
 
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#110
Originally Posted by visN900 View Post
what about next update???
It's going to happen.

// Edit - it's nice, that You changed it to less demanding form, but it's still kinda useless question. Uless getting answer like WIWBD is Your fetish.
__________________
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1 | ereswap | bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!

Last edited by Estel; 2011-12-26 at 05:46.
 

The Following 3 Users Say Thank You to Estel For This Useful Post:
Reply

Tags
cssu testing


 
Forum Jump


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