|
2009-04-07
, 00:03
|
|
Posts: 361 |
Thanked: 108 times |
Joined on Sep 2008
|
#22
|
In the case of opening many many windows in the browser being fast-ish the first time and slow-ish subsequent times is partly a side effect of swapping to sd/mmc.
Despite what you might think, random writes to flash are very very slow. A 4k write from the OS/device migh require the card itself to first read 256-512k of data, modify 4k of it, and write back 256-512k, because its native block size is that huge.
You don't notice this causing any slowdown with photos, videos, songs and so on, because they're pretty large.
The first time you push your tablet's memory use close to and over its physical SDRAM capacity, the swap file/partition is empty, the OS can pick whatever it wants from ram that it thinks is least needed and write it out sequentially. It might achieve rates of over megabyte per sec the first time.
After you've closed the browser, you might use programs that had parts of themselves swapped out to flash, those get read back in then on a as-needed basis. A copy is retained on flash in case the os wants to swap out that exact same thing again it wont have to write, it can just drop it from ram. The program might write to or change that memory though, in which case the chunk on flash is freed and has to be written again if OS wants to swapout. A form of fragmentation happens in the swapfile.
Thus, the next time you open loads of browser windows, the swapout of other programs wont happen sequentially to flash, instead it will be a little piece here, a little piece there, in random order. This is extremely slow compared to firt time. It's not unusual for memory cards to drop to speeds of 16 KILObytes/sec or worse under such loads. Brand name cards no exception. Higher class cards might help, unless they consist of multichannel flash in a parallell setup, which might make blocksize bigger, which makes random write speed worse (but boosting sequential write speed).
So one source of slowdown over time is swap "fragmentation" and flash-based storage's inherent allergy towards seek-heavy write loads.
Programs themselves might grow bigger over time due to internal heap fragmentation as well, which will make you run into swapping faster.
Neither of these things are memory leaks.
|
2009-04-07
, 02:54
|
|
Posts: 122 |
Thanked: 51 times |
Joined on Nov 2007
@ Paris, France
|
#23
|
|
2009-04-07
, 06:03
|
|
Posts: 361 |
Thanked: 108 times |
Joined on Sep 2008
|
#24
|
Maybe it is unrelated, but I often experience periods of unresponsiveness (5 minutes or so) when I pick up the tablet the next day after I left it with some open applications (mostly the browser microB). After that things go back to normal behaviour.
The Following User Says Thank You to dantonic For This Useful Post: | ||
|
2009-04-07
, 20:58
|
Posts: 1,258 |
Thanked: 672 times |
Joined on Mar 2009
|
#25
|
|
2009-04-07
, 23:41
|
|
Posts: 361 |
Thanked: 108 times |
Joined on Sep 2008
|
#26
|
|
2009-04-08
, 21:05
|
Posts: 1,950 |
Thanked: 1,174 times |
Joined on Jan 2008
@ Seattle, USA
|
#27
|
a good fresh flash makes everything work better again. Especially if you don't use the backup and restore function. Copy your documents to the SD card, flash the tablet, and then install everything fresh.
I was surprised at how much cruft had built up.
|
2009-04-08
, 21:51
|
Posts: 1,258 |
Thanked: 672 times |
Joined on Mar 2009
|
#28
|
The Following User Says Thank You to shadowjk For This Useful Post: | ||
|
2009-04-09
, 05:37
|
Posts: 4,556 |
Thanked: 1,624 times |
Joined on Dec 2007
|
#29
|
Per qole,
I'm loathe to flash and restore, especially without using the backup function to get my apps, since I have such a wonderfully tweaked Tablet currently.
But I wonder, do other people have qole's experience? Does starting fresh really make everything work better?
The only complaint I have about how well everything works is that MicroB or Tear can stall out, and it seems I need to restart to get browsing back up to speed. Occasionally some other program will crap out and shut unexpectedly, but not often. I'm not sure it's worth rebuilding from scratch when, for the most part, everything works so damn well.
https://bugs.maemo.org/show_bug.cgi?id=2615
Technically, there are three determinate states the cat could be in: Alive, Dead, and Bloody Furious.