Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
codebyter
Old
(Last edited by codebyter; 1st March 2011 at 04:08 PM.)
#1  
Junior Member - OP
Thanks Meter 1
Posts: 13
Join Date: Feb 2011
Default [Q] Dual Core /proc/stats

I've been working on building a dual core cpu meter for the atrix. I have a very very basic APK that reads your /proc/stats and displays it. I have noticed that on launch cpu 1 shows up and exists but after a few ticks, it's no longer there... I'm not saying that the phone isn't using it. I'd simply like to know why it's disappearing.. Sorry in advance if I posted in the wrong forum.

Edit: Is it safe to assume that since the core isnt being shown in the proc stats at certain intervals that the core is being put into a sort of 'standby' mode until a thread is passed to it? If so, could I default that core to 0% cpu usage when not shown.
Attached Files
File Type: zip CB Dual Core Meter.zip - [Click for QR Code] (13.4 KB, 34 views)
 
mister_al
Old
#2  
Member
Thanks Meter 2
Posts: 76
Join Date: Feb 2011
Location: Courtice
Just a thought - do something to up your CPU, maybe spawn a couple processes to eat up some CPU cycles and see what happens?
 
bugsfix
Old
#3  
Junior Member
Thanks Meter 0
Posts: 19
Join Date: Apr 2010
Quote:
Originally Posted by mister_al View Post
Just a thought - do something to up your CPU, maybe spawn a couple processes to eat up some CPU cycles and see what happens?

To max out kernel CPU time
cat /dev/zero > /dev/null
 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...