yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Well I don't have a menu in the ultimatic.bat file... it's all linear... just jumps from place to place in a linear fashion and then to the end without going back to a menu.

Best thing to do is to open up a batch file that has what you want and use it as a guide.

But this may give you a clue...

if /i not "%patchthis%"=="p" ( [COLOR="Blue"]goto showtime[/COLOR] )
set livemode=
copy /y patch_this\services.jar . 1>/nul 2>/nul| %LOG_IT%
echo COOL^! Do you want to install it right after?| %LOG_IT%
echo.| %LOG_IT%
echo BIG NOTE^! If install fails due to ADB failure...| %LOG_IT%
echo.| %LOG_IT%
echo ...just patch it offline (say "No" next) and...| %LOG_IT%
echo.| %LOG_IT%
echo ...copy the patched services.jar to the sdcard.| %LOG_IT%
echo.| %LOG_IT%
echo Then install it manually or use...| %LOG_IT%
echo.| %LOG_IT%
echo ...V6 SuperCharger's "Jelly ISCream Parlor"^!| %LOG_IT%
echo.| %LOG_IT%
set /p installit= Enter I to install it, any key for No:
echo Enter I to install it, any key for No: %installit%>> %LOG_FILE%
echo.| %LOG_IT%
echo %line%| %LOG_IT%
if /i not "%installit%"=="i" ( [COLOR="Red"]goto patchonly[/COLOR] )
set installthis=yes
echo OK^! Gonna "patch this" services.jar and install it too^!| %LOG_IT%
goto showtime
[COLOR="red"]:patchonly[/COLOR]
echo OK^! Gonna "patch this" services.jar and just stop lol :p| %LOG_IT%
[COLOR="blue"]:showtime[/COLOR]

/i means case insensitive.

You "goto" certain ":markers" depending on whatever...

In post 2 I believe I link to and older batch script/thread which patches services.odex and it has a menu.

btw I don't do "if condition is true then do this" in the batch file (instead I do the jumps with goto) because nested if conditions in batch files is a complete an utter nightmare which defies all logic.

bash is way easier and actually makes sense. (however, a "goto" command would be handy lol)
[Android Software/Hacking General [Developers Only]] bmg1001:
Didn't seem to do much, waited a minute and nothing happened.

But it's fine though, my phone is already really smooth so I'll just skip the services.jar patched for now.
[Android Software/Hacking General [Developers Only]] hisname:
yea i prefer something like that.

echo 1.You suck
SET /P M=Type your choice then press ENTER:
IF %M%==1 goto suck
:suck
echo.
echo.
echo YOU SUCK!
echo.
echo Done. Press anykey to return to previous menu.
echo.
pause
goto MAIN

cool,this looks good....

rem Code to position CMD Window stolen from http://www.dostips.com/forum/viewtopic.php?f=3&t=4285
if "%~1" == "RestartedByVBS" goto :ultimatic
rem ===================================
rem Create the VBScript (named pos.vbs)
rem ===================================
(for /f "tokens=1*" %%a in ('%systemroot%\system32\findstr.exe "^VBS:" ^< "%~f0"') do (
echo(%%b
)) > "%~dp0pos.vbs"
rem ================
rem Run the VBScript
rem ================
rem VBScript runs this batch file (%~f0), at 400 pixels in (X_Coordinate), and at 0, the very top (Y_Coordinate).
%systemroot%\system32\cscript.exe //nologo "%~dp0pos.vbs" "%~f0" 400 0
exit /b
rem ===================================================================
rem The actual VBScript content is below (lines beginning with "VBS: ")
rem ===================================================================
rem Its syntax is: pos <BatchFileName> <X_Coordinate> <Y_Coordinate>
rem As shown in previous line, this function will take three inputs:
rem Name of the batch file to execute, and the X and Y coordinates to position its CMD Window
VBS: Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")
VBS: Set objConfig = objWMIService.Get("Win32_ProcessStartup")
VBS: objConfig.SpawnInstance_
VBS: objConfig.X = WScript.Arguments(1)
VBS: objConfig.Y = WScript.Arguments(2)
VBS: Set objNewProcess = objWMIService.Get("Win32_Process")
VBS: intReturn = objNewProcess.Create( chr(34) & WScript.Arguments(0) & chr(34) & " " & "RestartedByVBS", Null, objConfig, intProcessID)
rem ==================================
rem Wow... what a PITA that was... lol
rem ==================================
:ultimatic
del "%~dp0pos.vbs" 2>nul
mode 14, 10
echo HEY^!
ping -n 2 127.0.0.1 >/nul
mode 30, 30
echo What's Up?
ping -n 2 127.0.0.1 >/nul
mode 40, 40
echo I may need more ROOM^!
ping -n 2 127.0.0.1 >/nul
mode 50, 60
echo Just a sec... I think I got it...
ping -n 2 127.0.0.1 >/nul
mode 59, 300
echo YEP^! This feels pretty good now... LOL^!^!
ping -n 2 127.0.0.1 >/nul
cls

am i allowed to kang this?
[Android Software/Hacking General [Developers Only]] russellvone:
app_36@android:/ $ su
echo -n "$i - "; cat $i; done; echo "" <

/sys/kernel/mm/ksm/full_scans - 1

/sys/kernel/mm/ksm/pages_shared - 2

/sys/kernel/mm/ksm/pages_sharing - 8

/sys/kernel/mm/ksm/pages_to_scan - 100

/sys/kernel/mm/ksm/pages_unshared - 67

/sys/kernel/mm/ksm/pages_volatile - 35586

/sys/kernel/mm/ksm/run - 1

/sys/kernel/mm/ksm/sleep_millisecs - 500

root@android:/ #
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Give teh credits.

That was a real pain in the ass to find and tweak to my liking :p

ah you just booted up?

Do it again in 15 minutes or so.

Btw, hows the battery life?
[Android Software/Hacking General [Developers Only]] hisname:
yeah sure. is this ok?

rem credits to zeppelinrox@xda for this cool trick!

or do you want

echo credits to zeppelinrox@xda for this cool trick!

or do you want me to put in OP of my yet to be created thread?

I have not officially released the tool yet as I asked someone to test for me first to make sure it's bug free
[Android Software/Hacking General [Developers Only]] espimones:
Perfect solution

Many thanks. It was a perfect solution to my Sony Xperia st15 with ICS Lite room.
[Android Software/Hacking General [Developers Only]] zeppelinrox:
OP and rem is fine.

What kinda tool is it?
[Android Software/Hacking General [Developers Only]] hisname:
uh,don't laugh at me...its just a simple one...nothing compared to yours

look at the animtion i created ;)

your code...especially your logging system....full of them

%LOG_IT%
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Cool.

1. I'm copyrighting "POOF"

2. LOL

3. logging basically the *nix tee command (I bundle tee.exe for windows with ultimatic) and %LOG_IT% is really tee -a ultimatic.log

4. How you do the animation? If it's a converted batch file, turn it into an exe with QuickBFC (that's what I use to make ultimatic.exe - I don't think anybody gets a nag screen with that, do they?

Aww... nobody else wants to play?

Feedback can be used toward a potentially great Kernel SamePage Merging tweak...

But if battery and/or ram savings aren't interesting, forget i axed ;)

And hey, anybody actually use Live Wallpaper?

I thunk up a battery saving tweak related to that...
[Android Software/Hacking General [Developers Only]] hisname:
that animation isnt integrated yet...damn...POOF is copyrighted?it took me a few hours to do that animation..i used this tool to make those graphics.like my easter egg?
[Android Software/Hacking General [Developers Only]] XDAMaxe:
here's da play'n result

# /playme.sh'
/sys/kernel/mm/ksm/full_scans - 0
/sys/kernel/mm/ksm/max_kernel_pages - 52183
/sys/kernel/mm/ksm/pages_shared - 0
/sys/kernel/mm/ksm/pages_sharing - 0
/sys/kernel/mm/ksm/pages_to_scan - 200
/sys/kernel/mm/ksm/pages_unshared - 0
/sys/kernel/mm/ksm/pages_volatile - 0
/sys/kernel/mm/ksm/run - 1
/sys/kernel/mm/ksm/sleep_millisecs - 1400
[Android Software/Hacking General [Developers Only]] zeppelinrox:
ah the tool has a graphics wizard that you used to make it then.

Hey I googled "batch file animation"

This effect looks surprisingly good...

[YOUTUBE]5iOz9jwU1M4[/YOUTUBE]

was the device running for awhile or had you just booted?
[Android Software/Hacking General [Developers Only]] XDAMaxe:
phone runs for approx 7 hours but wasn't heavy used (some emails, txt and minor web, no call, no sms)

P.S. it's a gb-cm7-based device
[Android Software/Hacking General [Developers Only]] zeppelinrox:
hah somebody's havin fun with coding lol

I havent cracked open 4.3 yet... I hope not too much has changed... :P

I got cm7 on the milestone and this is what I get...

for i in /sys/kernel/mm/ksm/*; do echo ""; echo -n "$i - "; cat $i; done; echo ""

/sys/kernel/mm/ksm/full_scans - 18

/sys/kernel/mm/ksm/max_kernel_pages - 14439

/sys/kernel/mm/ksm/pages_shared - 120

/sys/kernel/mm/ksm/pages_sharing - 1813

/sys/kernel/mm/ksm/pages_to_scan - 256

/sys/kernel/mm/ksm/pages_unshared - 4297

/sys/kernel/mm/ksm/pages_volatile - 14041

/sys/kernel/mm/ksm/run - 1

/sys/kernel/mm/ksm/sleep_millisecs - 15000

On mine it actually does something because there is a value for pages_sharing.

You have a 0 so the feature is not doing anything but eating battery.

Watch it eat with:

top | grep ksm

turn it off with:

echo 0 > /sys/kernel/mm/ksm/run

You should notice a huge battery gain since it's running every 1.4 seconds (its set to 15 seconds on mine - 15000/1000)
[Android Software/Hacking General [Developers Only]] hisname:
u0_a185@android:/ $ su

root@android:/ # for i in /sys/kernel/mm/ksm/*; do echo ""; do echo ""; echo -n "$i - "; c at $i; done; echo ""

/sys/kernel/mm/ksm/* - sh: cat: /sys/kernel/mm/ksm/*: No such file or directory

root@android:/ #

on android 4.2.2
[Android Software/Hacking General [Developers Only]] Daniel D.:
Dito on my ArcS running 4.0.4 and Lupus v16
[Android Software/Hacking General [Developers Only]] XDAMaxe:
alrighty then ...

top | grep ksm gave me - multiple and repeatedly same -:

439 0% S 1 OK OK fg root ksmd

what's this all about ? honestly I don't know exactly this kernel feature. :cyclops:

As far as I understand: it does nothing on my phone ?

If so: Do you recommend to run that KSM-Off-script at boot so that I can eliminate that useless batt drain 'forever' ?

A BIG :good:
[Android Software/Hacking General [Developers Only]] zeppelinrox:
ya it's kernel dependent.

I figured it would be in most kernels since it begain in linux kernel version 2.6 something

but yeah just to be sure you can put that line in 99supercharger or whatever

The purpose of it is to only have one copy of the same information in memory instead of multiple times for different processes.

But the default settings (20 millisecond sleep with only 100 pages to scan each time) in most cases suck up battery with it running pretty much non-stop with a high cpu load.

But if it's being useful, I think it would be okay to leave it enabled but with relaxed settings say have it run every 15 or 30 seconds and process a larger number of pages say 12800 (50 MB)

On high ram devices it can possibly save using about 100 MB of RAM.
[Android Software/Hacking General [Developers Only]] XDAMaxe:
woah, I'd just done that - each day I learn a bit more (never enough :p) - that's your merit :)
[Android Software/Hacking General [Developers Only]] russellvone:
app_36@android:/ $ su

echo -n "$i - "; cat $i; done; echo "" <

/sys/kernel/mm/ksm/full_scans - 5

/sys/kernel/mm/ksm/pages_shared - 373

/sys/kernel/mm/ksm/pages_sharing - 11887

/sys/kernel/mm/ksm/pages_to_scan - 100

/sys/kernel/mm/ksm/pages_unshared - 6054

/sys/kernel/mm/ksm/pages_volatile - 48827

/sys/kernel/mm/ksm/run - 1

/sys/kernel/mm/ksm/sleep_millisecs - 500

root@android:/ #

Battery has been fine, no more, no less, so far but barely been on it today

P.S. 3G Turbocharger option 6(null) is what I've chosen

The top 3 are option 6

The 2nd group of 3 are option 5

Ect, ect,....
[Android Software/Hacking General [Developers Only]] russellvone:
The bottom three are stock, no 3g turbocharger
[Android Software/Hacking General [Developers Only]] defiant07:
I'm late to the game, but still wanna play...got 'No such file or directory'...how anticlimactic.

Nope. live wallpaper=lag...deleted from system long ago.
[Android Software/Hacking General [Developers Only]] zeppelinrox:
ya try them all... reboot between changes... run each one about 5 times.

KSM works but you'd get batter battery life with:

echo 15000 > /sys/kernel/mm/ksm/sleep_millisecs

echo 12800 > /sys/kernel/mm/ksm/pages_to_scan

Or at least test those to see if you notice a difference over the course of a day.

BTW those numbers show you're saving 46 mb of ram (11887/256)

Dontcha hate when that happens? :p

What kernel version do you have?

It would be available to kernels 2.6.32 and up - but I guess not all devs enable it. http://en.wikipedia.org/wiki/Kernel_SamePage_Merging_(KSM)

And the idea about live wallpaper is for it to be killed if you don't see it so you can have your cake and eat it too - for those that cant live without live wallpaper that is lol :p
[Android Software/Hacking General [Developers Only]] defiant07:
It's version 3.0.8 (weidi@brn-weidi #56).

The engineer must of left it out...I have the /sys/kernel/mm directory, but it's empty...they neglected a lot of stuff...all they had to do to allow for full usb api was add a permission xml, but for whatever reason they wanna make you add it manually :silly:.

Not that I really care, but wouldn't killing LW kinda make the launcher seem like it's redrawing and cause lag?
[Android Software/Hacking General [Developers Only]] hisname:
I am on kernel 3.4.0 and I have no directory found. this is a stocked based kernel. do you want me to test it on AOSP based kernel?
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Not really.

When you turn the screen on, if the wallpaper doesn't start up right away, it shows a black background until it does get going.

It restarts pretty quick tho.

edit: btw what happens if you do:

echo 1 > /sys/kernel/mm/ksm/run

what error?

sure.

do it, do it, do it, do it , do it - do it if you wannaaaah :) (guess the song kids lol)

======================

I'm adding the battery friendly KSM tweak but dunno if I feel like adding a full fledged option to enable or disable it (if the files exist, of course)

Adding options is such a PITA... but that's what makes V6 what it is I guess :p

But then again, it will be yet another tweak that others will start doing like so many others that I was the first to do... lol

edit: to hell with it... I'll just put it in since I'm 25% there already.

damn I wanted to have an update out read soon too :p
[Android Software/Hacking General [Developers Only]] defiant07:
Ahh.

I get - sh: cannot create /sys/kernel/mm/ksm/run: No such file of directory.
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Ah OK.

Just wanted to be sure that you're SOL :p
[Android Software/Hacking General [Developers Only]] hisname:
u0_a72@android:/ $ su

u0_a72@android:/ # for i in /sys/kernel/mm/ksm/*; do echo ""; echo -n "$i - "; cat $i; done; echo ""

/sys/kernel/mm/ksm/full_scans - 0

/sys/kernel/mm/ksm/pages_shared - 0

/sys/kernel/mm/ksm/pages_sharing - 0

/sys/kernel/mm/ksm/pages_to_scan - 100

/sys/kernel/mm/ksm/pages_unshared - 0

/sys/kernel/mm/ksm/pages_volatile - 0

/sys/kernel/mm/ksm/run - 0

/sys/kernel/mm/ksm/sleep_millisecs - 20

u0_a72@android:/ #

Kernel 2.6.39.4

Root box(AOSP)
[Android Software/Hacking General [Developers Only]] gu5t3r:
Main problem with uksm for me was that it was working after screen is off for amount of time before phone goes to sleep...

So I made this service script to turn off uksm when screen off and turn on when screen on...

uksm_service

#!/sbin/busybox sh
exec > /dev/null 2>&1
BB=/sbin/busybox

uksm_service()
{
while :; do
$BB cat /sys/power/wait_for_fb_wake;
$BB echo 1 > /sys/kernel/mm/uksm/run
$BB cat /sys/power/wait_for_fb_sleep;
$BB echo 0 > /sys/kernel/mm/uksm/run
done
}

USP="`$BB pgrep -f '.*uksm_service.*' | $BB grep -v "$$" | $BB tr '[:space:]' ' '`"
if [ -n "$USP" ]; then kill -9 $USP; fi; unset USP;

uksm_service & exit 0;

I use options:

hash_strength 129

min_scan_ratio 129

scan_batch_pages 10000

sleep_millisecs 100

trash_threshold 50

Saved memory in MB is calculated Saved_MB=(pages_sharing-pages_shared)*4/1024

or easier Saved_MB=(pages_sharing-pages_shared)/256
[Android Software/Hacking General [Developers Only]] zeppelinrox:
disabled on that one.

uksm?

Oh why must things get complicated when you show up? lol

So you don't have a ksm folder then?

Ya been dividing pages/256 since I wrote the OP lol
[Android Software/Hacking General [Developers Only]] gu5t3r:
XD

Wedgess implemented UltraKSM in LuPuS kernels =)

UKSM demo
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Right... so everybody please play again with an updated card.

A second chance to get lucky!

for i in /sys/kernel/mm/*ksm*/*; do echo ""; echo -n "$i - "; cat $i; done; echo ""
[Android Software/Hacking General [Developers Only]] hisname:
u0_a185@android:/ $ su

root@android:/ # for i in /sys/kernel/mm/*ksm*/*; do echo ""; do echo ""; echo -n "$i - "; cat $i; done; echo ""

/sys/kernel/mm/*ksm*/* - sh: cat: /sys/kernel/mm/*ksm*/*: No such file or directory

root@android:/ #
[Android Software/Hacking General [Developers Only]] VnnAmed:
Check if you have ksm or uksm. If it's the second option the just add u in directory patch.

My output:

u0_a40@android:/ $ su
; echo -n "$i - "; cat $i; done; echo "" <

/sys/kernel/mm/uksm/abundant_threshold - 10

/sys/kernel/mm/uksm/cpu_governor - [full] medium low quiet

/sys/kernel/mm/uksm/cpu_ratios - 20 40 MAX/4 MAX/1

/sys/kernel/mm/uksm/ema_per_page_time - 90922

/sys/kernel/mm/uksm/eval_intervals - 1000 500 200 50

/sys/kernel/mm/uksm/full_scans - 4

/sys/kernel/mm/uksm/hash_strength - 64

/sys/kernel/mm/uksm/max_cpu_percentage - 95

/sys/kernel/mm/uksm/pages_scanned - 30102

/sys/kernel/mm/uksm/pages_shared - 66

/sys/kernel/mm/uksm/pages_sharing - 1102

/sys/kernel/mm/uksm/pages_unshared - 12724

/sys/kernel/mm/uksm/run - 1

/sys/kernel/mm/uksm/sleep_millisecs - 100

/sys/kernel/mm/uksm/sleep_times - 2615

/sys/kernel/mm/uksm/thrash_threshold - 50

u0_a40@android:/ #

BTW I'm having problem with supercharging lately. I only get to 50% then it re-applies and over and over again. Tried re-supercharging, re-generating, usnig 19.4 wraithdu etc. Finally got it to work nicely on boot by de-supercharging to 0% and then supercharging but it kept going only for a while. Also i don't have Log_Supercgarger while it's there for KAK. Ran and Boot in zip.
[Android Software/Hacking General [Developers Only]] zeppelinrox:
youre being a pain in the ass if that's a different kernel from the previous output without saying that's its different.

You're being a pita, aren't you?

thanks I'll look later
[Android Software/Hacking General [Developers Only]] Daniel D.:
/sys/kernel/mm/uksm/full_scans - 224

/sys/kernel/mm/uksm/hash_strength - 96

/sys/kernel/mm/uksm/min_scan_ratio - 1

/sys/kernel/mm/uksm/pages_scanned - 2689814

/sys/kernel/mm/uksm/pages_shared - 1164

/sys/kernel/mm/uksm/pages_sharing - 12283

/sys/kernel/mm/uksm/pages_unshared - 70008

/sys/kernel/mm/uksm/run - 1

/sys/kernel/mm/uksm/scan_batch_pages - 7500

/sys/kernel/mm/uksm/sleep_millisecs - 60

/sys/kernel/mm/uksm/sleep_times - 46619

/sys/kernel/mm/uksm/thrash_threshold - 50
[Android Software/Hacking General [Developers Only]] hisname:
:rolleyes:

It's a different kernel. happy?
[Android Software/Hacking General [Developers Only]] gu5t3r:
[MENTION=3357461]zeppelinrox[/MENTION]

http://kerneldedup.org/en/projects/uksm/

There are two versions of uksm, 0.1.1.x from LuPuS kernels (ported by CTCaer)

The one above (with cpu_governor option) is second, version 0.1.2 I believe...
[Android Software/Hacking General [Developers Only]] hoholee12:
i've been wondering, what does ".*" do?
[Android Software/Hacking General [Developers Only]] gu5t3r:
it's regex

'.' Matches any single character

'*' Matches the preceding element zero or more times

'.*' matches anything

USP="`$BB pgrep -f '.*uksm_service.*' | $BB grep -v "$$" | $BB tr '[:space:]' ' '`"
if [ -n "$USP" ]; then kill -9 $USP; fi; unset USP;

this part kills all instances of uksm_service script on execution except current one, so it can exist only one instance at the time
[Android Software/Hacking General [Developers Only]] zeppelinrox:
oh I love it when users throw curve balls with info that makes no sense.

thanks.

I'll stick with messing with sleep and size tho lol

wildcard.

.*meh is everything up to and including meh
[Android Software/Hacking General [Developers Only]] defiant07:
I'm used to it, lol...its a recurrent theme in life...well mine at least :D

I like trying even though I already know its a losing battle...got 'No such file or directory,' but we already knew that would happen :silly:...maybe that's why I'm often SOL, lol
[Android Software/Hacking General [Developers Only]] Daniel D.:
I don't understand so much from these things and don't want to go too deep, but will your settings/supercharger delete/deactivate the uskm init.d script of the Lupus kernel to change the values?
[Android Software/Hacking General [Developers Only]] zeppelinrox:
never give up lol

it would be optional.

I'd only change the sleep millecs and how many pages get scanned at a time.

Please do this:

top -n 30 | grep ksm

It will stop after 30 seconds.

Post the output
[Android Software/Hacking General [Developers Only]] Daniel D.:
bin/sh" <
root@android:/mnt/sdcard # su
| grep ksm <
112 2 root SWN 0 0.0 0.5 [uksmd]
112 2 root RWN 0 0.0 34.3 [uksmd]
112 2 root SWN 0 0.0 33.3 [uksmd]
112 2 root SWN 0 0.0 31.6 [uksmd]
112 2 root RWN 0 0.0 37.9 [uksmd]
112 2 root RWN 0 0.0 33.4 [uksmd]
112 2 root SWN 0 0.0 11.6 [uksmd]
4401 4358 root S 764 0.2 0.2 grep ksm
112 2 root SWN 0 0.0 0.2 [uksmd]
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Try again.

And do it right
[Android Software/Hacking General [Developers Only]] VnnAmed:
I was looking around for something that could cause my problem with supercharging. Got some mount issues that went away when mounted system as a rw in script manager and this. Should I post some more logs/my settings?
[Android Software/Hacking General [Developers Only]] cx-11:
Here you go

Mem: 321676K used, 42008K free, 0K shrd, 172K buff, 39836K cached

112 2 root SWN 0 0.0 0.2 [uksmd]

112 2 root SWN 0 0.0 0.4 [uksmd]

112 2 root SWN 0 0.0 0.6 [uksmd]

112 2 root SWN 0 0.0 0.2 [uksmd]

112 2 root SWN 0 0.0 14.5 [uksmd]

112 2 root SWN 0 0.0 3.1 [uksmd]

root@android:/mnt/sdcard #
[Android Software/Hacking General [Developers Only]] zeppelinrox:
OK I wasn't familiar with that version of top.

Did you do the -n switch? Its only outputting once.

I managed to get similar formatting with busybox top in batch mode...

root@android:/ # busybox top -bn 10 | grep ksm
2160 27730 root S 1284 0.0 0.0 grep ksm
60 2 root SWN 0 0.0 0.0 [ksmd]
60 2 root SWN 0 0.0 0.1 [ksmd]
2160 27730 root S 1284 0.0 0.0 grep ksm
2160 27730 root S 1284 0.0 0.0 grep ksm
60 2 root SWN 0 0.0 0.0 [ksmd]
2160 27730 root S 1284 0.0 0.0 grep ksm
60 2 root SWN 0 0.0 0.0 [ksmd]
60 2 root SWN 0 0.0 4.8 [ksmd]
2160 27730 root S 1284 0.0 0.0 grep ksm
2160 27730 root S 1284 0.0 0.0 grep ksm
60 2 root SWN 0 0.0 0.0 [ksmd]
2160 27730 root S 1284 0.0 0.0 grep ksm
60 2 root SWN 0 0.0 0.0 [ksmd]
60 2 root SWN 0 0.0 24.4 [ksmd]
2160 27730 root S 1284 0.0 0.0 grep ksm
2160 27730 root S 1284 0.0 0.0 grep ksm
60 2 root SWN 0 0.0 0.0 [ksmd]
2160 27730 root S 1284 0.0 0.0 grep ksm
60 2 root SWN 0 0.0 0.0 [ksmd]

Second last column is CPU %

mines sleeps sometimes.

But it don't look like it sleeps for you guys.

Daniel has is using 30% CPU constantly it seems and yours could be better :p

So instead, do:

busybox top -bn 10 | grep ksm
[Android Software/Hacking General [Developers Only]] defiant07:
I assume the lost 50% is due to minfree/adj...it sounds like an issue I used to have...it could be conflicting init.d script...look in other scripts with lower priorities for the sleep command...if found give them a higher priority than SC or edit them so as to eliminate the sleep command.

There's a remount related bug in the recharge routine/re-generator he mentioned awhile back...it remounts ro in the middle of recharge...I think Zep already sniffed it out or is currently working to correct it :good:.