Advertisement
Guest User

Untitled

a guest
May 28th, 2013
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.31 KB | None | 0 0
  1. login as: root
  2. root@xxx.xxx.xxx.xxx's password:
  3. Linux arm 3.8.13-bone18 #1 SMP Wed May 15 13:48:09 MST 2013 armv7l
  4.  
  5. The programs included with the Debian GNU/Linux system are free software;
  6. the exact distribution terms for each program are described in the
  7. individual files in /usr/share/doc/*/copyright.
  8.  
  9. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
  10. permitted by applicable law.
  11. Last login: Thu Jan 6 15:34:30 2000 from 192.168.254.165
  12. root@arm:~# top
  13. top - 03:17:57 up 6 days, 10:17, 3 users, load average: 0.51, 0.60, 0.58
  14. Tasks: 73 total, 1 running, 72 sleeping, 0 stopped, 0 zombie
  15. %Cpu(s): 59.9 us, 2.7 sy, 0.0 ni, 37.0 id, 0.0 wa, 0.0 hi, 0.3 si, 0.0 st
  16. KiB Mem: 507832 total, 98624 used, 409208 free, 10704 buffers
  17. KiB Swap: 0 total, 0 used, 0 free, 61756 cached
  18.  
  19. PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
  20. 3748 xxxxxxx 20 0 1168 264 212 S 59.9 0.1 18:41.04 load-test
  21. 3609 root 20 0 2664 1108 784 R 1.6 0.2 5:34.29 top
  22. 3 root 20 0 0 0 0 S 0.3 0.0 0:03.17 ksoftirqd/0
  23. 1 root 20 0 1684 644 540 S 0.0 0.1 0:25.24 init
  24. 2 root 20 0 0 0 0 S 0.0 0.0 0:00.36 kthreadd
  25. 5 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/0:0H
  26. 7 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/u:0H
  27. 8 root rt 0 0 0 0 S 0.0 0.0 0:00.00 migration/0
  28. 9 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_bh
  29. 10 root 20 0 0 0 0 S 0.0 0.0 0:18.14 rcu_sched
  30. 11 root rt 0 0 0 0 S 0.0 0.0 0:11.55 watchdog/0
  31. 12 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 khelper
  32. 13 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kdevtmpfs
  33. 14 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 netns
  34. 16 root 20 0 0 0 0 S 0.0 0.0 0:00.26 bdi-default
  35. 17 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kintegrityd
  36. 18 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kblockd
  37. root@arm:~# cpufreq-info
  38. cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
  39. Report errors and bugs to cpufreq@vger.kernel.org, please.
  40. analyzing CPU 0:
  41. driver: generic_cpu0
  42. CPUs which run at the same hardware frequency: 0
  43. CPUs which need to have their frequency coordinated by software: 0
  44. maximum transition latency: 300 us.
  45. hardware limits: 300 MHz - 1000 MHz
  46. available frequency steps: 300 MHz, 600 MHz, 800 MHz, 1000 MHz
  47. available cpufreq governors: conservative, ondemand, userspace, powersave, performance
  48. current policy: frequency should be within 300 MHz and 1000 MHz.
  49. The governor "ondemand" may decide which speed to use
  50. within this range.
  51. current CPU frequency is 300 MHz (asserted by call to hardware).
  52. cpufreq stats: 300 MHz:nan%, 600 MHz:nan%, 800 MHz:nan%, 1000 MHz:nan%
  53.  
  54.  
  55. load-test code:
  56.  
  57. #include <stdio.h>
  58. #include <unistd.h>
  59.  
  60. int main(int argc, char **argv)
  61. {
  62. unsigned int index = 0;
  63. unsigned int mSeconds = 500;
  64. int returnCode;
  65.  
  66. while(1)
  67. {
  68. if((++index % 10240) == 0 ){
  69. returnCode = usleep(mSeconds);
  70. index = 0;
  71. }
  72. }
  73.  
  74. return 0;
  75. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement