![]() |
2007-08-24
, 19:26
|
|
Posts: 341 |
Thanked: 68 times |
Joined on Aug 2007
|
#42
|
import os import sys import time import commands while(True): time.sleep(20) res = commands.getoutput('top -b -n 1') lines = res.split('\n') for i in range(len(lines)): if ("COMMAND" in lines[i]): logfile = open('cpu.log', 'a') logfile.write('\n') logfile.write('---------------------------------->\n') logfile.write('\n') logfile.write(lines[i+1] + '\n') logfile.write(lines[i+2] + '\n') logfile.close()
![]() |
2007-08-25
, 04:20
|
Posts: 72 |
Thanked: 2 times |
Joined on Jul 2007
|
#43
|
I just had this little script running for a day and notices that "OMAP McSPI/0" takes a lot of cpu time...
Code:import os import sys import time import commands while(True): time.sleep(20) res = commands.getoutput('top -b -n 1') lines = res.split('\n') for i in range(len(lines)): if ("COMMAND" in lines[i]): logfile = open('cpu.log', 'a') logfile.write('\n') logfile.write('---------------------------------->\n') logfile.write('\n') logfile.write(lines[i+1] + '\n') logfile.write(lines[i+2] + '\n') logfile.close()
![]() |
2007-08-27
, 12:36
|
Posts: 3,841 |
Thanked: 1,079 times |
Joined on Nov 2006
|
#44
|
![]() |
2007-09-05
, 00:02
|
Posts: 3,401 |
Thanked: 1,255 times |
Joined on Nov 2005
@ London, UK
|
#45
|
![]() |
2007-09-05
, 09:42
|
Posts: 3,841 |
Thanked: 1,079 times |
Joined on Nov 2006
|
#46
|
![]() |
2007-09-25
, 14:30
|
Posts: 73 |
Thanked: 3 times |
Joined on Sep 2007
@ USA
|
#47
|
![]() |
2007-09-25
, 15:19
|
Posts: 3,841 |
Thanked: 1,079 times |
Joined on Nov 2006
|
#48
|
![]() |
2007-09-26
, 13:51
|
Posts: 10 |
Thanked: 2 times |
Joined on Sep 2007
|
#49
|
![]() |
2007-09-26
, 14:06
|
Posts: 3,841 |
Thanked: 1,079 times |
Joined on Nov 2006
|
#50
|
Here's a link to the source i found. I'm not really sure what it is though. Maybe someone with more knowledge could shed some light on it. I seen a "turbo_mode" function in the source. Something to do with the clock of the processor maybe. Just a shot in the dark :P
P.S. Looks like it also might be just a patch.
How did you find this? I don't recall seeing it in the osso-cpu task manager