ADB shell - how to make output wider? - General Questions and Answers

Hello, I decided that I will analyse running processes and figure out why is my battery not lasting more then half a day usually. For that I figured maybe running
adb shell top
will work. I could send this to a file and later make some analysis of the results. The problem is that it looks like this
Code:
800%cpu 10%user 0%nice 17%sys 772%idle 1%iow 0%irq 0%sirq 0%host
←[7m PID USER PR NI VIRT RES SHR S[%CPU] %MEM TIME+ ARGS ←[0m
28364 system 20 0 2.2G 83M 61M S 15.3 2.4 1:08.09 com.samsung.and+
31155 u0_a193 20 0 2.1G 69M 40M S 4.6 2.0 6:00.62 com.facebook.or+
30834 shell 20 0 11M 4.3M 3.3M R 2.3 0.1 0:00.85 top
3246 system 12 -8 1.6G 14M 11M S 2.3 0.4 249:18.01 surfaceflinger
26367 system 10 -10 2.7G 106M 89M S 1.3 3.0 1:14.78 com.samsung.and+
22515 root 20 0 0 0 0 S 1.3 0.0 0:03.16 [kworker/u16:4]
3825 system 10 -10 3.4G 182M 81M S 1.0 5.2 572:07.02 system_server
971 root 20 0 0 0 0 S 1.0 0.0 151:39.30 [kswapd0]
29785 u0_a209 20 0 1.7G 67M 52M S 0.3 1.9 0:03.20 com.microsoft.o+
21383 root 0 -20 0 0 0 S 0.3 0.0 0:00.84 [kworker/1:0H]
20039 u0_a213 20 0 2.9G 56M 47M S 0.3 1.6 9:15.59 com.digibites.a+
3132 logd 30 10 31M 13M 836K S 0.3 0.3 25:29.47 logd
679 root 20 0 0 0 0 S 0.3 0.0 5:34.54 [kcompactd0]
13 root RT 0 0 0 0 S 0.3 0.0 2:00.01 [migration/1]
30749 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 [kworker/u17:2]
30699 u0_a379 20 0 2.2G 98M 82M S 0.0 2.8 0:00.95 org.androworks.+
30670 advmodem 20 0 2.2G 74M 65M S 0.0 2.1 0:00.33 com.samsung.and+
30661 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 [kworker/0:0H]
30652 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 [kworker/7:2H]
30651 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 [kworker/5:0H]
the process names are cut. Is there a way to make top command write wider columns? Linux top knows -w but adb top does not.
Seems like running -b makes it wide enough but it shows all processes and not just the top few which would be enough.
I can see that it's also formatted wrong and the column headers don't match the values below. Jeez...

Related

[Q] Android 4.0.4 and high cpu usage of system_server with autorotate on

Hi,
i have nexus S with IMM76D_deodexed. I had preciously 4.0.3, then 4.0.4 - IMM26. Now IMM76D, CWM.
With IMM76D I hoped all will be solved, but not.
before updating to IMM76D I did:
back to factory reset
format SD card
clean Dalvik
clean /system except /boot
Now i think, I'm only one, who has infamous autotate high cpu usage bug
- without autorotate (cpu usage is normal):
Code:
top -m 100 -d 1 -n 1 | head -20
User 0%, System 3%, IOW 0%, IRQ 0%
User 0 + Nice 0 + Sys 4 + Idle 99 + IOW 0 + IRQ 0 + SIRQ 0 = 103
PID PR CPU% S #THR VSS RSS PCY UID Name
11891 0 7% R 1 1000K 396K bg root top
11867 0 0% S 1 0K 0K fg root kworker/0:0
11814 0 0% S 11 273628K 23708K bg app_70 com.google.android.maps.mytracks
132 0 0% S 81 369556K 45464K fg system system_server
330 0 0% S 25 294536K 29760K fg radio com.android.phone
8 0 0% S 1 0K 0K fg root sync_supers
9 0 0% S 1 0K 0K fg root bdi-default
10 0 0% S 1 0K 0K fg root kblockd
11 0 0% S 1 0K 0K fg root khubd
12 0 0% S 1 0K 0K fg root kinteractiveup
14 0 0% S 1 0K 0K fg root kswapd0
15 0 0% S 1 0K 0K fg root fsnotify_mark
16 0 0% S 1 0K 0K fg root crypto
with autorotate - system_server
Code:
top -m 100 -d 1 -n 1 | head -20
User 7%, System 12%, IOW 0%, IRQ 0%
User 6 + Nice 2 + Sys 13 + Idle 85 + IOW 0 + IRQ 0 + SIRQ 0 = 106
PID PR CPU% S #THR VSS RSS PCY UID Name
132 0 14% S 81 369572K 45768K fg system system_server
12030 0 5% R 1 1004K 400K bg root top
200 0 3% S 17 285416K 33964K fg system com.android.systemui
78 0 2% S 8 42944K 16884K fg system /system/bin/surfaceflinger
290 0 0% S 1 2464K 636K fg wifi /system/bin/wpa_supplicant
223 0 0% S 1 0K 0K fg root dhd_dpc
11939 0 0% S 1 0K 0K fg root kworker/0:1
10 0 0% S 1 0K 0K fg root kblockd
11 0 0% S 1 0K 0K fg root khubd
12 0 0% S 1 0K 0K fg root kinteractiveup
14 0 0% S 1 0K 0K fg root kswapd0
15 0 0% S 1 0K 0K fg root fsnoti
again top with Threads
Code:
User 5%, System 12%, IOW 0%, IRQ 0%
User 15 + Nice 3 + Sys 39 + Idle 254 + IOW 0 + IRQ 0 + SIRQ 0 = 311
PID TID PR CPU% S VSS RSS PCY UID Thread Proc
132 146 0 7% D 369572K 45768K fg system system_server system_server
12028 12028 0 4% R 1192K 588K bg root top top
132 166 0 2% S 369572K 45768K fg system er$SensorThread system_server
132 148 0 2% S 369572K 45768K fg system er.ServerThread system_server
132 147 0 1% S 369572K 45768K fg system SensorService system_server
200 200 0 0% S 285416K 33964K fg system ndroid.systemui com.android.systemui
11864 11864 0 0% S 0K 0K fg root kworker/u:2
11939 11939 0 0% S 0K 0K fg root kworker/0:1
78 111 0 0% S 42944K 16884K fg system SurfaceFlinger /system/bin/surfaceflinger
132 187 0 0% S 369572K 45768K fg system WifiService system_server
What should i do?
edit:
strace is writing following block repeatedly like crazy
strace -f -T -v -p 132
Code:
(Timeout) <0.000037>
[pid 147] write(103, "h\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0pe\34d\2340\0\0\354\337\267?>\205\[email protected]\275"..., 104 <unfinished ...>
[pid 166] <... epoll_wait resumed> ) = 1 <0.031740>
[pid 166] read(102, "h\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0pe\34d\2340\0\0\354\337\267?>\205\[email protected]\275"..., 104) = 104 <0.000034>
[pid 166] clock_gettime(CLOCK_MONOTONIC, {53448, 257720074}) = 0 <0.000030>
[pid 166] write(46, "W"..., 1) = 1 <0.000278>
[pid 166] read(102, 0x519ebb80, 104) = -1 EAGAIN (Resource temporarily unavailable) <0.000032>
[pid 166] epoll_wait(0x6a, 0x519eb9f0, 0x10, 0xffffffff <unfinished ...>
[pid 148] <... epoll_wait resumed> ) = 1 <0.029798>
[pid 148] read(45, "W"..., 16) = 1 <0.000038>
[pid 148] clock_gettime(CLOCK_MONOTONIC, {53448, 261245950}) = 0 <0.000035>
[pid 148] getpid() = 132 <0.000090>
[pid 148] getuid32() = 1000 <0.000029>
[pid 148] epoll_wait(0x2f, 0x50787a90, 0x10, 0) = 0 <0.000032>
[pid 148] clock_gettime(CLOCK_MONOTONIC, {53448, 263335575}) = 0 <0.000276>
[pid 148] epoll_wait(0x2f, 0x50787a90, 0x10, 0xa6d7 <unfinished ...>
[pid 147] <... write resumed> ) = 104 <0.008302>
[pid 147] poll([{fd=37, events=POLLIN}, {fd=38, events=POLLIN}, {fd=42, events=POLLIN}, {fd=43, events=POLLIN}, {fd=41, events=POLLIN}], 5, -1 <unfinished ...>
[pid 146] <... write resumed> ) = 16 <0.012667>
[pid 146] ioctl(39, 0x80066108, 0x50587ec0) = 0 <0.016268>
[pid 146] write(36, "\0\0\0\0\0\0\0\0\2\0\0\0]\1\0\0"..., 16) = 16 <0.000044>
[pid 146] write(36, "\0\0\0\0\0\0\0\0\2\0\1\0J\0\0\0"..., 16) = 16 <0.000300>
[pid 146] write(36, "\0\0\0\0\0\0\0\0\2\0\2\0G\1\0\0"..., 16) = 16 <0.000039>
[pid 146] write(36, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 16 <unfinished ...>
[pid 147] <... poll resumed> ) = 1 ([{fd=42, revents=POLLIN}]) <0.021342>
[pid 147] read(42, "\310\320\0\0\352P\4\0\2\0\0\0]\1\0\0\310\320\0\0\333T\4\0\2\0\1\0J\0\0\0\310"..., 512) = 64 <0.000039>
[pid 147] poll([{fd=37, events=POLLIN}, {fd=38, events=POLLIN}, {fd=42, events=POLLIN}, {fd=43, events=POLLIN}, {fd=41, events=POLLIN}], 5, 0) = 0
Hey dude,
No, you are not the only one with the auto-rotate bug. I have it too, but im on stock, non rooted ICS 4.0.4 for the Nexus S. But I can't help you either
Just wanted you to know that you are not alone.
what are the symptoms of this bug? every since i loaded 4.0.4, my phone seems to be eating up battery like crazy, also freezing up and shutting off randomly. sounds like it could be my problem.
should i just disable the auto-rotate setting for now?
00Hensley said:
what are the symptoms of this bug? every since i loaded 4.0.4, my phone seems to be eating up battery like crazy, also freezing up and shutting off randomly. sounds like it could be my problem.
should i just disable the auto-rotate setting for now?
Click to expand...
Click to collapse
It's worth a try, you can't damage anything if you do
I've been using the attached patch (against the stock ICS 3.0 kernel source, but should apply to any Nexus S 2.6.35 ICS or 3.0 kernel), which throttles the orientation sensor device and reduces system_server CPU usage to a more reasonable 2-3% (similar to Gingerbread).
Thanks for confirmation.
based on the confirmation there is new bug from me:
xxxttp://code.google.com/p/android/issues/detail?id=29965
For quick autorotate on and off i'm using quick app:
xxxttps://play.google.com/store/apps/details?id=com.friedflow.autorotate&feature=order_history
Thanks for the kernel patch... but i think, i will not building kernel...
i don't understand, why these bugs are not fixed yet... Like USB slow file transfer...
steven676 said:
I've been using the attached patch (against the stock ICS 3.0 kernel source, but should apply to any Nexus S 2.6.35 ICS or 3.0 kernel), which throttles the orientation sensor device and reduces system_server CPU usage to a more reasonable 2-3% (similar to Gingerbread).
Click to expand...
Click to collapse
How's this patching working out for you? Any side effects to watch out for? Also, did you find anything more refined along the way?
Thanks!
InstigatorX said:
How's this patching working out for you? Any side effects to watch out for? Also, did you find anything more refined along the way?
Click to expand...
Click to collapse
I've been carrying this patch since December with absolutely no ill effects, and given that it works, I haven't bothered to look for better solutions ...
steven676 said:
I've been carrying this patch since December with absolutely no ill effects, and given that it works, I haven't bothered to look for better solutions ...
Click to expand...
Click to collapse
Any hints how to apply this patch?

[Q] High Ram use ??!!

hi
i have china mobile called x310e has 1 gb ram and ICS 4.0.3 .. clone of x310e HTC windows phone .. but it's has ICS
the phone is good to me but i notice something
the free ram is around 200 mb in best case .. from 1gb ram
i dont know if this normal .. so that why i asked
i rooted the device and installed ssh on it
i typed "top" command and this is what i got ..
NB all my apps just take 75 MB
User 1%, System 3%, IOW 0%, IRQ 0%
User 3 + Nice 1 + Sys 10 + Idle 294 + IOW 0 + IRQ 0 + SIRQ 1 = 309
PID PR CPU% S #THR VSS RSS PCY UID Name
19889 0 1% R 1 1016K 416K fg root top
18556 0 0% S 1 1216K 256K fg root /data/data/br.com.bott.droidsshd/files/bin/dropbear
18367 0 0% S 1 0K 0K fg root tx_thread
48 0 0% S 1 0K 0K fg root mmcqd/0
237 0 0% S 81 403620K 66080K fg system system_server
137 0 0% S 1 1124K 440K fg root /system/bin/mobile_log_d
16697 0 0% S 10 289056K 31016K bg system com.android.settings
56 0 0% S 1 320K 172K fg root /sbin/ueventdworkqu
80 0 0% S 1 0K 0K fg root cfg80211
81 0 0% S 1 880K 236K fg system /system/bin/servicemanager
82 0 0% S 3 4184K 548K fg root /system/bin/vold
84 0 0% S 1 732K 220K fg root /system/bin/ccci_mdinit
1 0 0% S 1 632K 488K fg root /init
88 0 0% S 2 2884K 344K fg root /system/bin/netdiag
89 0 0% S 2 2148K 396K fg root /system/bin/mobile_log_d
90 0 0% S 3 3100K 292K fg root /system/bin/debuggerd
92 0 0% S 7 46844K 21476K fg system /system/bin/surfaceflinger
93 0 0% S 4 269936K 21292K fg root zygote
94 0 0% S 3 3040K 348K fg root /system/bin/hald
95 0 0% S 2 19416K 2344K fg drm /system/bin/drmserver
96 0 0% S 12 56712K 6664K fg root /system/bin/mediaserver
97 0 0% S 1 972K 360K fg system /system/bin/mtkGD
98 0 0% S 1 1388K 236K fg bluetoot /system/bin/dbus-daemon
99 0 0% S 1 900K 296K fg root /system/bin/installd
100 0 0% S 1 1832K 448K fg keystore /system/bin/keystore
101 0 0% S 4 6144K 464K fg root /system/bin/mtk_agpsd
102 0 0% S 1 736K 244K fg system /system/bin/6620_launcher
104 0 0% S 2 4528K 464K fg root /system/bin/dm_agent_binder
105 0 0% S 2 4188K 500K fg bluetoot /system/bin/mtkbt
106 0 0% S 1 7164K 780K fg system /system/bin/mdpd
108 0 0% S 2 4520K 448K fg root /system/bin/GoogleOtaBinder
110 0 0% S 2 14284K 1520K fg root /system/bin/em_svr
111 0 0% S 2 4476K 432K fg root /system/bin/nvram_agent_binder
112 0 0% S 2 4512K 440K fg root /system/bin/nvram_backup_binder
120 0 0% S 1 752K 284K fg root /system/bin/memsicd
134 0 0% S 1 2956K 2272K fg root /system/bin/mobile_log_d
135 0 0% S 1 1132K 448K fg root /system/bin/mobile_log_d
136 0 0% S 1 1148K 464K fg root /system/bin/mobile_log_d
138 0 0% S 1 1124K 376K fg root /system/bin/mobile_log_d
163 0 0% S 1 0K 0K fg root pvr_workqueue
166 0 0% S 1 0K 0K fg root mtklfb
311 0 0% S 14 304156K 44644K fg system com.android.systemui
438 0 0% S 39 329860K 43676K fg radio com.android.phone
448 0 0% S 9 279944K 21940K fg app_39 com.mediatek.bluetooth
463 0 0% S 9 278384K 21348K fg app_12 com.google.hfapservice
995 0 0% S 10 279252K 23440K fg radio com.mediatek.mobilelog
16197 0 0% S 1 298124K 23464K fg app_83 berserker.android.apps.sshdroid
16493 0 0% S 16 358064K 99580K fg app_31 com.android.launcher
16563 0 0% S 28 311480K 32672K bg app_24 com.google.process.gapps
16608 0 0% S 13 285064K 28500K bg app_14 android.process.media
16638 0 0% S 1 1128K 364K fg root /system/bin/ccci_fsd
16651 0 0% S 14 14240K 488K fg root /system/bin/gsm0710muxd
16652 0 0% S 1 1232K 448K fg root /system/bin/mdlogger
16722 0 0% S 19 22172K 984K fg radio /system/bin/rild
16965 0 0% S 10 281748K 30364K fg app_30 com.android.inputmethod.latin
17318 0 0% S 1 1368K 392K fg shell /system/bin/aee_aed
18372 0 0% S 1 736K 288K fg log /system/bin/logwrapper
18374 0 0% S 1 2472K 896K fg wifi /system/bin/wpa_supplicant
18376 0 0% S 1 740K 300K fg log /system/bin/logwrapper
18377 0 0% S 1 972K 416K fg dhcp /system/bin/dhcpcd
18557 0 0% S 1 764K 368K fg root -sh
18563 0 0% S 11 282412K 24152K bg app_24 com.google.android.gsf.login
18738 0 0% S 9 278380K 23356K fg radio com.mediatek.mdlogger
19106 0 0% S 1 0K 0K fg root kworker/u:2
19113 0 0% S 15 288948K 29388K bg app_72 com.whatsapp
19242 0 0% S 1 0K 0K fg root kworker/u:3
19296 0 0% S 17 292528K 28944K bg app_11 com.google.android.apps.maps:NetworkLocationService
19330 0 0% S 20 295784K 30860K bg app_11 com.google.android.apps.maps:LocationFriendService
19350 0 0% S 15 296460K 29340K bg app_2 com.android.contacts
19365 0 0% S 14 325248K 48676K bg app_2 android.process.acore
19385 0 0% S 1 0K 0K fg root kworker/0:3
19473 0 0% S 15 297296K 53908K bg app_20 com.android.gallery3d
19554 0 0% S 14 290904K 31284K bg app_17 com.mediatek.filemanager
19584 0 0% S 11 281316K 24744K bg app_36 com.google.android.apps.uploader
19634 0 0% S 16 287628K 27488K bg app_59 com.google.android.talk
19667 0 0% S 9 278356K 23784K bg radio com.android.ActivityNetwork
19679 0 0% S 14 298144K 42288K bg app_37 com.android.mms
19750 0 0% S 19 294672K 30960K bg app_11 com.google.android.apps.maps
19768 0 0% S 1 0K 0K fg root kworker/0:0
19876 0 0% S 10 279424K 24128K bg system com.mediatek.atci.service
87 0 0% S 6 8432K 1096K fg root /system/bin/netd
Click to expand...
Click to collapse
i delete some lines cuz it's has zero use of ram and cpu
waiting the response
murad052 said:
hi
i have china mobile called x310e i phone is good to me but i notice somthing
the free ram is around 200 mb in best case
i dont know if this normal .. so that why i asked
i rooted the device and installed ssh on it
i typed "top" command and this is what i got ..
i delete some lines cuz it's has zero use of ram and cpu
waiting the response
Click to expand...
Click to collapse
That model number is for the HTC Titan, which is a Windows Phone 7 phone...
But anyways, assuming you're on Android, free RAM is wasted RAM. Just because your RAM is filled with apps you're not using doesn't mean they're actually running. And you have to remember the OS itself takes up memory as well. It's the way Linux works; don't worry, it's a very efficient OS.
this is screen shot
but it's abnormal i think .. i used to have orginal s2 and it's show much of ram than this one
Any update
Sent from my X310e using XDA

[APP][4.0+] Usemon - System monitor, adreno gpu usage&clock 5.2

I have really missed graphs of system status from android. I wanted something like you have in task manager on windows, or widgets on my KDE desktop. When I found nothing like that, I decided to write one, here it is.
Usemon is a simple application for monitoring usage of system resources. It displays graphs of CPU, RAM, and network usage. (For dual and quad core devices per core stats are supported.) No root needed. It is extremly lightweight, because it gets these data directly from the kernel. It can show permanent statusbar notifications of these too (when enabled). It support devices running android 4.0 and higher, thanks to that it integrates well into the holo themed system.
Features
• Monitor CPU, RAM, disk, network, battery, cpu temperature usage.
• Draws graphs of these.
• Graphs can be shown in notifications too, custom notification can be made
Links:
• Amazon appstore
• Google play
Changelog:
• 5.2
• Adreno GPU monitoring (tested on adreno 200,205,305,320)
• 5.03
• Google play services latest version crashes switched to older one
• 5.02
• Fix update problem
• 5.01
• (PRO) CPU temperature
• (PRO) Notifcation Builder
• 4.05
• Data will be cleared on boot and forced exit
• 4.00
• Battery notification and floating window
• 3.99
• Initial support for battery monitoring
• 3.13
• Bug fixes
• 3.12
• Additional optimizations
• 3.11
• Optimized graph rendering​
Nice idea, unfortunately it crashes on start-up for me. Running Carbon rom on a Canadian Note 2.
Sent from my SAMSUNG-SGH-I317 using Tapatalk 4 Beta
FC on my HTC one running 4.2.2 renovate r84
Program starts and crashes a few moments after.
Sent from my HTC One using Tapatalk 2
Works great!!! Looks Great!!!
Verizon Galaxy SIII d2vzw
LiquidSmooth v2.8
Sent from my SCH-I535 using Tapatalk 2
Works Great on SlimBean Build 7 Hercules.
potential to be a great app. recent version is FC'ing however
I'm extremly sorry for FC's. It seems currently there's a problem with dual cores (I was too lazy to test it on them). When I get home on Saturday I will fix it. It should be quite obvius to fix.
Sent from my GT-I8150 using xda app-developers app
New version
Fixed force close problems (at least I hope they're fixed). It haven't occured on my devices, but I guess cores get disabled by the kernel, and that messes up the reading, know when a core is disabled (no entry in /proc/stat, but the device exists) its usage will be zero.
Still FC on liquidrom 2.8 i9300 !
Sent from my GT-I9300 using xda app-developers app
WiwiPouPou said:
Still FC on liquidrom 2.8 i9300 !
Sent from my GT-I9300 using xda app-developers app
Click to expand...
Click to collapse
Does it FC on startup? If so can you post your /proc/stat?
Edit: I see a report on dev console, same problem, surely it is not disabled cores. Added a new version, it won't crash but cpu usage will be 0.
iattilagy said:
Does it FC on startup? If so can you post your /proc/stat?
Edit: I see a report on dev console, same problem, surely it is not disabled cores. Added a new version, it won't crash but cpu usage will be 0.
Click to expand...
Click to collapse
At startup yes!
[email protected]:/ $ su
[email protected]:/ # cat /proc/stat
cpu 54612 9145 51763 1270305 7823 6 895 0 0 0
cpu0 36992 3683 38908 264567 3469 3 872 0 0 0
intr 4307074 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 13103 0 7814 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 191815 0 215968 32261 3801 0 249112 0 0 0 0 15343 0 0 0 0 13388 71891 875088 0 482 0 0 0 0 0 0 0 0 0 3734 0 0 0 0 0 0 0 462 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 30513 30511 30500 30488 79079 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3264 0 0 0 0 0 35226 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 9 1 0 0 0 0 219 0 1879 0 0 0 7 2 198 0 0 0 0 0 12908 0 4 0 0 0 0 0 0 0 1 0 0 0 13904 0 0 0 0 0 0 0 26 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4 0 0 0 0 2 0 0 0 2 0 0 0 0 0 0 0 2 2 0 0 1 1 0 0 0 0 172 219 0 0 219 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
ctxt 8578844
btime 1373727550
processes 70105
procs_running 6
procs_blocked 0
softirq 2236292 4209 781802 6036 5153 4209 4209 925680 83002 1288 420704
[email protected]:/ #
Sent from my GT-I9300 using xda app-developers app
WiwiPouPou said:
At startup yes!
[email protected]:/ $ su
[email protected]:/ # cat /proc/stat
cpu 54612 9145 51763 1270305 7823 6 895 0 0 0
cpu0 36992 3683 38908 264567 3469 3 872 0 0 0
intr 4307074 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 13103 0 7814 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 191815 0 215968 32261 3801 0 249112 0 0 0 0 15343 0 0 0 0 13388 71891 875088 0 482 0 0 0 0 0 0 0 0 0 3734 0 0 0 0 0 0 0 462 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 30513 30511 30500 30488 79079 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3264 0 0 0 0 0 35226 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 9 1 0 0 0 0 219 0 1879 0 0 0 7 2 198 0 0 0 0 0 12908 0 4 0 0 0 0 0 0 0 1 0 0 0 13904 0 0 0 0 0 0 0 26 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4 0 0 0 0 2 0 0 0 2 0 0 0 0 0 0 0 2 2 0 0 1 1 0 0 0 0 172 219 0 0 219 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
ctxt 8578844
btime 1373727550
processes 70105
procs_running 6
procs_blocked 0
softirq 2236292 4209 781802 6036 5153 4209 4209 925680 83002 1288 420704
[email protected]:/ #
Sent from my GT-I9300 using xda app-developers app
Click to expand...
Click to collapse
Thank you very much. With latest version (1.12) it is fixed. Problem is that cores are getting disabled by system (at the time of 'catting' you had only one runnig), I haven't noticed that on my devices.
New version
Updated: new features
• CPU freq page - displays current cpu frequency
• Solid color mode: blue and white only, can be enabled in settings
• Fixed force close on setting resolution or interval
Some more feature you should add like.....
1 disable notification bar icone.
2 cpu frequence on one row.
Sent from my GT-I9000 using Tapatalk 4 Beta
Cool application!
Some suggestions.
It would be great to have the notifications dynamic, so that we can see the current usage without pulling the notification bar down.
It would also be useful in that scenario to be able to have different configs for notification bar (perhaps only one thing, like cpu usage), and different config for graphs in the pull down notificaiton (like cpu usage and ram usage).
Small bug: Clicking on the ram usage graph in the notification pull down doesn't do anything while clicking the cpu usage takes us to the app.
Question: how expensive is running the notifications? I've got a single core (!) desire HD and every MHz counts
Cool app, makes me feel more at home with my device. I would suggest to incorporate a "wakelock" type of graph to show which apps are waking the device in "number of times the app caused a wakelock" and/or "time held awake"
To see wakelock statistics in a nice GUI graphically would just be awesome since apps like better battery stats lack it
It's working
--SGS i9000, CM 10.1.2~Nightlies, Semaphore 3 Kernel
Awesome app. Runs great! 5 Star Left in Play store.
Galaxy S3
Liquid Smooth 2.8
Very useful app, and it's very light on battery usage! I second the suggestion to have an option to remove the notification icon and an option to make the icons dynamic.
damac said:
Cool application!
Some suggestions.
It would be great to have the notifications dynamic, so that we can see the current usage without pulling the notification bar down.
It would also be useful in that scenario to be able to have different configs for notification bar (perhaps only one thing, like cpu usage), and different config for graphs in the pull down notificaiton (like cpu usage and ram usage).
Small bug: Clicking on the ram usage graph in the notification pull down doesn't do anything while clicking the cpu usage takes us to the app.
Question: how expensive is running the notifications? I've got a single core (!) desire HD and every MHz counts
Click to expand...
Click to collapse
Thanks, dynamic icons are a good idea I will try to implement them.
I will work on some better notification configuring method, 'notification builder'.
I've got a galalaxy w, that's my primary target. On high loads I haven't experienced any drawback. When the device is in deep sleep notifcations won't run (and will not wake it up).

Repartitioning internal memory

Hey guys,
So i've searched but can't seem to get my terms correct or what im about to ask hasnt been answered... I have a tablet its based on an rk3188 chip which is armv7 and it's running android 4.2.2 with locked bootloader and no custom recovery or access to fastboot... I'm curious to know can i repartition the nand flash, more specifically the /data and /mnt/sdcard one to allocate more space to /data and two to change file system type of mnt to something that isnt as restrictive as vfat? I can access adb while the device is powered off but charging without the system running. I will be posting an output of 'busybox ls -alh /dev/block/mtd/by-name/' so you guys can see how the blocks are setup currently. If you need more info please tell me.
[email protected]:/ # busybox ls -alh /dev/block/mtd/by-name/
total 0
drwxr-xr-x 2 0 0 240 May 16 19:01 .
drwxr-xr-x 3 0 0 60 May 16 19:01 ..
lrwxrwxrwx 1 0 0 20 May 16 19:01 backup -> /dev/block/mtdblock4lrwxrwxrwx 1 0 0 20 May 16 19:01 boot -> /dev/block/mtdblock2
lrwxrwxrwx 1 0 0 20 May 16 19:01 cache -> /dev/block/mtdblock5
lrwxrwxrwx 1 0 0 20 May 16 19:01 kernel -> /dev/block/mtdblock1lrwxrwxrwx 1 0 0 20 May 16 19:01 kpanic -> /dev/block/mtdblock7lrwxrwxrwx 1 0 0 20 May 16 19:01 misc -> /dev/block/mtdblock0
lrwxrwxrwx 1 0 0 20 May 16 19:01 recovery -> /dev/block/mtdblock3
lrwxrwxrwx 1 0 0 20 May 16 19:01 system -> /dev/block/mtdblock8lrwxrwxrwx 1 0 0 20 May 16 19:01 user -> /dev/block/mtdblock9
lrwxrwxrwx 1 0 0 20 May 16 19:01 userdata -> /dev/block/mtdblock6
[email protected]:/ #

Use adb shell on device, top command not work

Hello
I need to get the cpu usage from my device (Lenovo Tab M8, Android os) and send it via http-request to my server.
I test it with my smartphone.
I found the app macrodroid, which can automatically send data via http-reuest. So the first step is done.
After a long searching i found the "adb shell" app. So i can test my shell command. So the second step is done
I want to use the command "top -n 1" because my devices are not rooted and i got alway "permission denied" with other commands.
The top command show a output.
THERE IS THE PROBLEM:
if i use the top command on my smarthpohne, i don't got a correct output. The %idle is always same like %cpu
if i connect my phone to my pc and run it in the windows command, it shows the correct data.
for example:
the output on the phone:
Code:
[s[999C[999B[6n[u[H[J[?25l[H[J[s[999C[999B[6n[uTasks: 2 total, 1 running, 1 sleeping, 0 stopped, 0 zombie Mem: 3.5G total, 3.4G used, 129M free, 39M buffers Swap: 2.0G total, 1.6G used, 396M free, 1.1G cached800%cpu 0%user 0%nice 0%sys 800%idle 0%iow 0%irq 0%sirq 0%host[7m PID USER PR NI VIRT RES SHR S[%CPU] %MEM TIME+ ARGS [0m[1m 7831 u0_a357 10 -10 36M 3.7M 3.0M R 4.0 0.1 0:00.00 top -n 1[m 7717 u0_a357 10 -10 33M 2.9M 2.4M S 0.0 0.0 0:00.01 sh[?25h[0m[1000;1H[K[?25h[?25h[0m[1000;1H[K
output on the pc:
Code:
Mem: 3.5G total, 3.4G used, 93M free, 40M buffers
Swap: 2.0G total, 1.6G used, 380M free, 1.0G cached
800%cpu 82%user 0%nice 124%sys 594%idle 0%iow 0%irq 0%sirq 0%host
←[7m PID USER PR NI VIRT RES SHR S[%CPU] %MEM TIME+ ARGS ←[0m
2305 u0_a357 10 -10 25G 258M 164M S 64.7 7.1 23:29.96 com.arlosoft.ma+
517 system 5 -15 1.7G 20M 14M S 44.1 0.5 207:08.58 surfaceflinger
←[mm 7844 shell 20 0 36M 4.3M 3.3M R 23.5 0.1 0:00.10 top -n 1
983 system 18 -2 12G 273M 130M S 17.6 7.5 595:30.94 system_server
←[mm 276 root RT 0 0 0 0 R 17.6 0.0 53:19.28 [decon0]
7843 root 20 0 0 0 0 S 11.7 0.0 0:00.20 [kworker/0:1]
488 system -3 -15 506M 4.3M 3.6M S 11.7 0.1 45:01.04 android.hardwar+
7385 root 0 -20 0 0 0 S 8.8 0.0 0:02.53 [kworker/u17:3]
7807 root 20 0 0 0 0 S 2.9 0.0 0:00.90 [kworker/3:2]
7542 root 20 0 0 0 0 S 2.9 0.0 0:00.00 [kworker/4:0]
2291 root 20 0 0 0 0 S 2.9 0.0 0:02.05 [kworker/u16:2]
2188 root 20 0 0 0 0 S 2.9 0.0 0:02.93 [kworker/u16:0]
7088 u0_a237 10 -10 7.4G 159M 75M S 2.9 4.3 95:05.07 com.samsung.and+
1365 radio 20 0 5.7G 43M 30M S 2.9 1.2 40:36.23 com.android.pho+
496 wifi 20 0 63M 2.8M 2.6M S 2.9 0.0 6:31.76 android.hardwar+
7757 u0_a239 20 0 4.9G 93M 79M S 0.0 2.5 0:00.32 com.samsung.and+
7745 u0_a62 20 0 4.9G 88M 74M S 0.0 2.4 0:00.17 com.sec.android+
7717 u0_a357 10 -10 33M 2.9M 2.4M S 0.0 0.0 0:00.01 sh
7628 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 [kbase_event]
←[?25h←[0m←[1000;1H←[K←[?25h←[?25h←[0m←[1000;1H←[Kstarlte:/ $ 0
how can i get this output on my device???
is it so difficult or is my question not good?
:-( i think there is no solution....

Categories

Resources