maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   [ANNOUNCE]Alarm UI replacement (https://talk.maemo.org/showthread.php?t=87823)

freemangordon 2012-11-16 20:09

Re: [ANNOUNCE]Alarm UI replacement
 
Quote:

Originally Posted by reinob (Post 1295055)
... and 48k doesn't sound like much.

:eek:

Hmm, maybe you'll want to re-read my post again :P . It leaks ~16k on every swipe to unlock and if you unlock your device 5-10 times per hour (like I do), at the end of the day we'll have ~1MB of leaked memory. After 3 days of uptime, systemui on my device was eating about 7MB of heap. That's pretty high leak by all measurements.

TBH I don't think h-d and h-h leak by themselves, I'll put my bet on some buggy widget ;)

ARM RE is the same (in principle) as x86 RE. The problem is that there is no HexRays for ARM. At least in IDA on TPB :D

don_falcone 2012-11-16 20:36

Re: [ANNOUNCE]Alarm UI replacement
 
Now it looks like Maemo leaks more that a sick hooker. :eek:

reinob 2012-11-16 20:38

Re: [ANNOUNCE]Alarm UI replacement
 
Quote:

Originally Posted by freemangordon (Post 1295060)
:eek:

Hmm, maybe you'll want to re-read my post again :P . It leaks ~16k on every swipe to unlock and if you unlock your device 5-10 times per hour (like I do), at the end of the day we'll have ~1MB of leaked memory. After 3 days of uptime, systemui on my device was eating about 7MB of heap. That's pretty high leak by all measurements.

But this is only when you actually use the swipe-to-unlock?! I never use it (the N900 has a hardware spring-loaded switch to do that, in case you haven't seen it :)

Quote:

ARM RE is the same (in principle) as x86 RE. The problem is that there is no HexRays for ARM. At least in IDA on TPB :D
Oh. I'm much more old-fashioed than that (OK, more "cracking" than actual RE). Until the Pentium I just used a hex editor :) (I think around that time, early 90s, the first version of IDA appeared).

That was obviously only useful to change a bit here and there, but not for solving memory leaks :)

freemangordon 2012-11-16 21:42

Re: [ANNOUNCE]Alarm UI replacement
 
Quote:

Originally Posted by reinob (Post 1295077)
But this is only when you actually use the swipe-to-unlock?! I never use it (the N900 has a hardware spring-loaded switch to do that, in case you haven't seen it :)

I've seen it :) . It is just that usually I hold my n900 with one hand, using side unlock switch that way is uncomfortable, not to say impossible.

Quote:

Oh. I'm much more old-fashioed than that (OK, more "cracking" than actual RE). Until the Pentium I just used a hex editor :) (I think around that time, early 90s, the first version of IDA appeared).

That was obviously only useful to change a bit here and there, but not for solving memory leaks :)
yeah, binary editing is a different kind of beer, what we want here is a good source code to be put in CSSU. Not saying it is impossible to be done without hexrays (I did it for facebook-whatever-the-name-was), it is just much harder and time-consuming

freemangordon 2012-11-16 21:44

Re: [ANNOUNCE]Alarm UI replacement
 
Quote:

Originally Posted by don_falcone (Post 1295075)
Now it looks like Maemo leaks more that a sick hooker. :eek:

It could be worse ;)

http://mg.pov.lt/maemo-irclog/%23mae...11-16T23:26:44

peterleinchen 2012-11-16 22:07

Re: [ANNOUNCE]Alarm UI replacement
 
Hey reinob,

you did that script on an Ubuntu laptop, right?
ps on our N900 does not know of ps -o (neither stock nor power).
So Imodified:
# open(FH, "ps -eo vsz,command |");
open(FH, "ps | awk \'{print \$3\" \"\$5}\' |");
but now getting non numeric errors, like
Argument "102m" isn't numeric in addition (+) at my/checkVSZ.perl line 44, <FH> line 14885.

If you could do some pimping, please (I am bad, very bad in perl)?

reinob 2012-11-16 22:34

Re: [ANNOUNCE]Alarm UI replacement
 
Quote:

Originally Posted by peterleinchen (Post 1295099)
you did that script on an Ubuntu laptop, right?

But I've tested it on my N900 (with busybox-power). I'll check it, but probably you won't hear from me until monday!

Add.: my /bin/ps is the one from package procps!!

Add.: there's also sp-memusage package with mem-monitor and mem-monitor-smaps tool. The latter can monitor only a single procress, but gives more detailed information!

freemangordon 2012-11-19 08:34

Re: [ANNOUNCE]Alarm UI replacement
 
Does the silence here means that everything works or that noone uses that? :P

reinob 2012-11-19 09:14

Re: [ANNOUNCE]Alarm UI replacement
 
Quote:

Originally Posted by freemangordon (Post 1295785)
Does the silence here means that everything works or that noone uses that? :P

Shhhh.. they are all sleeping! :)

peterleinchen 2012-11-19 09:15

Re: [ANNOUNCE]Alarm UI replacement
 
Hey, it was weekend :)
And today one day off :D
Still loaded (latest version) and will report back, But takes some time ...

And as long as there is silence, there is no alarm (scheduled) or everything is working fine.


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

vBulletin® Version 3.8.8