maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   [Announce] CSSU Testing thread (https://talk.maemo.org/showthread.php?t=80525)

impeham 2011-12-23 10:31

Re: [Announce] CSSU Testing thread
 
Quote:

Originally Posted by Estel (Post 1141022)
:eek: WTF? :eek: 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.

ibrakalifa 2011-12-23 10:49

Re: [Announce] CSSU Testing thread
 
nice


already have it, work perfectly

Estel 2011-12-23 21:08

Re: [Announce] CSSU Testing thread
 
@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

impeham 2011-12-24 03:36

Re: [Announce] CSSU Testing thread
 
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 :)

maacruz 2011-12-24 12:06

Re: [Announce] CSSU Testing thread
 
Quote:

Originally Posted by Estel (Post 1141285)

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.

rotoflex 2011-12-24 15:52

Re: [Announce] CSSU Testing thread
 
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.

Raimu 2011-12-24 20:22

Re: [Announce] CSSU Testing thread
 
Quote:

Originally Posted by Estel (Post 1141285)
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.

fw190 2011-12-24 22:32

Re: [Announce] CSSU Testing thread
 
+1 on this.A solid wiki entry would help many people including noobs in this matter like me :)

visN900 2011-12-25 10:02

Re: [Announce] CSSU Testing thread
 
any news about next update???

Estel 2011-12-26 05:43

Re: [Announce] CSSU Testing thread
 
Quote:

Originally Posted by visN900 (Post 1141652)
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.


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

vBulletin® Version 3.8.8