[Android Software/Hacking General [Developers Only]] zeppelinrox:
Hey thanks... give the new KSM tester script a try :)

Yeah it's hard to figure out efficiency by just looking at the numbers... so try my KSM tester and see what the stats look like.

btw are you sure uksm continues with the screen off when not using your script?

Because I ran the script continuously and when it changed to 5 full scans I turned off the screen.

I waited a few minutes and turned on the screen, ran the script, and it was still at 5 scans and took the usual amount of time to change to 6 full scans.

So I tried again when it changed from 7 scans to 8...

================================================
Data DeDuping KSM savings - 68.28 MB!
================================================
4.67 = Benefit/Cost Ratio -> HIGHER IS BETTER!
16.49 Benefit Ratio x Shared 4.14 MB = 68.28 MB
3.53 Cost Ratio x 68.28 MB = 241.05 MB (Unique)
7 - Full Scans SINCE BOOT.
3 min 36 secs (216 seconds) Needed Per Scan
KSM Executes 14.40 Times Per Full Scan
================================================
KSM Per Minute Summary (Based on Awake Time)...
KSM Executes 4 Times.
18.97 MB - Scanned Beneficially Per Minute.
66.96 MB - Scanned Wastefully Per Minute.
================================================
System Awake Time is 0:25:12
================================================
System Idle Time is 0:21:35
================================================
System Deep Sleep Time is 0:06:26
================================================
System Up Time is 0:31:38
================================================

u0_a69@android:/ $ sh /sd*/ksm*

================================================
Data DeDuping KSM savings - 68.28 MB!
================================================
4.67 = Benefit/Cost Ratio -> HIGHER IS BETTER!
16.49 Benefit Ratio x Shared 4.14 MB = 68.28 MB
3.53 Cost Ratio x 68.28 MB = 241.12 MB (Unique)
8 - Full Scans SINCE BOOT.
3 min 9 secs (189 seconds) Needed Per Scan
KSM Executes 12.60 Times Per Full Scan
================================================
KSM Per Minute Summary (Based on Awake Time)...
KSM Executes 4 Times.
21.68 MB - Scanned Beneficially Per Minute.
76.55 MB - Scanned Wastefully Per Minute.
================================================
System Awake Time is 0:25:19
================================================
System Idle Time is 0:21:42
================================================
System Deep Sleep Time is 0:06:27
================================================
System Up Time is 0:31:46
================================================

u0_a69@android:/ $ sh /sd*/ksm*

================================================
Data DeDuping KSM savings - 68.34 MB!
================================================
4.63 = Benefit/Cost Ratio -> HIGHER IS BETTER!
16.49 Benefit Ratio x Shared 4.14 MB = 68.34 MB
3.56 Cost Ratio x 68.34 MB = 243.35 MB (Unique)
8 - Full Scans SINCE BOOT.
3 min 17 secs (197 seconds) Needed Per Scan
KSM Executes 13.13 Times Per Full Scan
================================================
KSM Per Minute Summary (Based on Awake Time)...
KSM Executes 4 Times.
20.81 MB - Scanned Beneficially Per Minute.
74.12 MB - Scanned Wastefully Per Minute.
================================================
System Awake Time is 0:26:21
================================================
System Idle Time is 0:22:43
================================================
System Deep Sleep Time is 0:17:30
================================================
System Up Time is 0:43:51
================================================

deep sleep time went up 11 minutes and full scans was still at 8.

And I just found out something interesting...

When the

phone is plugged into the laptop

, it does

NOT

go into deep sleep and ksm does indeed continue even with the screen off.

Maybe this is why you think uksm continues with the screen off?

Maybe it was plugged in when you were testing?

btw it looks like my calculation/usage of time is correct.

ksm works during idle time (which counts as/is included with awake time)

edit: okay looking at the stats it does seem to be taking longer than I thought.

Gonna try 10000/1000 and see what the numbers look like :)

oh btw here's my bb uptime #s with 12800/15000

21:34:28 up 1:44, load average: 0.35, 0.54, 0.52

Not really.

Its only build.prop tweaks which don't even do anything on JB and ICS.

damn... I wonder what other applets are borked on that rom...

Do this:

ls -l /system/bin > /sdcard/bork.txt

attach /sdcard/bork.txt - but not if it's an empty file lol

If it's empty, just paste the output here.

ha well that's what makes my scripts so good... so complex on the inside, easy on the outside :p.[/QUOTE]

Don't get your hopes up.

They're very few and even farther between lol

If I did have $1 per download, my paypal account would probably have $750,000 lol

Aaaaaaaaaaaaaand how did I KNOW you were gonna do that?

(oh, cuz you did that twice before...)

I DO NOT need output from a KSM statistic script or test codes for a rom/kernel that doesn't have KSM.

A blank post would be just as useful and use up less space :p