Reply
Thread Tools
Posts: 3,074 | Thanked: 12,961 times | Joined on Mar 2010 @ Sofia,Bulgaria
#61
Originally Posted by reinob View Post
... and 48k doesn't sound like much.


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
__________________
Never fear. I is here.

720p video support on N900,SmartReflex on N900,Keyboard and mouse support on N900
Nothing is impossible - Stable thumb2 on n900

Community SSU developer
kernel-power developer and maintainer


Last edited by freemangordon; 2012-11-16 at 20:11. Reason: typo
 

The Following 4 Users Say Thank You to freemangordon For This Useful Post:
Posts: 1,523 | Thanked: 1,997 times | Joined on Jul 2011 @ not your mom's FOSS basement
#62
Now it looks like Maemo leaks more that a sick hooker.
 

The Following 6 Users Say Thank You to don_falcone For This Useful Post:
Posts: 1,808 | Thanked: 4,272 times | Joined on Feb 2011 @ Germany
#63
Originally Posted by freemangordon View Post


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

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
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
 

The Following User Says Thank You to reinob For This Useful Post:
Posts: 3,074 | Thanked: 12,961 times | Joined on Mar 2010 @ Sofia,Bulgaria
#64
Originally Posted by reinob View Post
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.

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
__________________
Never fear. I is here.

720p video support on N900,SmartReflex on N900,Keyboard and mouse support on N900
Nothing is impossible - Stable thumb2 on n900

Community SSU developer
kernel-power developer and maintainer

 

The Following 2 Users Say Thank You to freemangordon For This Useful Post:
Posts: 3,074 | Thanked: 12,961 times | Joined on Mar 2010 @ Sofia,Bulgaria
#65
Originally Posted by don_falcone View Post
Now it looks like Maemo leaks more that a sick hooker.
It could be worse

http://mg.pov.lt/maemo-irclog/%23mae...11-16T23:26:44
__________________
Never fear. I is here.

720p video support on N900,SmartReflex on N900,Keyboard and mouse support on N900
Nothing is impossible - Stable thumb2 on n900

Community SSU developer
kernel-power developer and maintainer


Last edited by freemangordon; 2012-11-16 at 22:14.
 

The Following User Says Thank You to freemangordon For This Useful Post:
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#66
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)?
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 

The Following 2 Users Say Thank You to peterleinchen For This Useful Post:
Posts: 1,808 | Thanked: 4,272 times | Joined on Feb 2011 @ Germany
#67
Originally Posted by peterleinchen View Post
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!

Last edited by reinob; 2012-11-17 at 11:29.
 

The Following 3 Users Say Thank You to reinob For This Useful Post:
Posts: 3,074 | Thanked: 12,961 times | Joined on Mar 2010 @ Sofia,Bulgaria
#68
Does the silence here means that everything works or that noone uses that? :P
__________________
Never fear. I is here.

720p video support on N900,SmartReflex on N900,Keyboard and mouse support on N900
Nothing is impossible - Stable thumb2 on n900

Community SSU developer
kernel-power developer and maintainer

 

The Following 2 Users Say Thank You to freemangordon For This Useful Post:
Posts: 1,808 | Thanked: 4,272 times | Joined on Feb 2011 @ Germany
#69
Originally Posted by freemangordon View Post
Does the silence here means that everything works or that noone uses that? :P
Shhhh.. they are all sleeping!
 

The Following 6 Users Say Thank You to reinob For This Useful Post:
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#70
Hey, it was weekend
And today one day off
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.
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature

Last edited by peterleinchen; 2012-11-19 at 09:24.
 

The Following User Says Thank You to peterleinchen For This Useful Post:
Reply

Tags
alarm clock, nokia n9


 
Forum Jump


All times are GMT. The time now is 01:46.