forked from Samsung/TizenRT
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
os/kernel/sched: update cpuload measurement for smp
- This commit calculates cpu load for each core separately whereas previously it was only calculating for one core. This gives the cpu load percentage of each thread for their respective cores. It only prints threads that used the cpu. The previous output when when we tash command as "cpuload" was : TASH>> cpuload Started CPU monitor with interval 5. PID | Pri | 2s | -------------------------------------------------- 0 | 0 | 99.1 | Idle Task 1 | 224 | 0.0 | hpwork 2 | 113 | 0.0 | lpwork 3 | 120 | 0.0 | EHCI Monitor 4 | 110 | 0.0 | LWIP_TCP/IP 5 | 250 | 0.0 | binary_manager 7 | 220 | 0.0 | /dev/mtdblock2 8 | 221 | 0.0 | msg_receiver 9 | 221 | 0.0 | multi_recv_nonblock 10 | 221 | 0.0 | multi_recv_block1 11 | 221 | 0.0 | multi_recv_block2 12 | 180 | 0.0 | /dev/mtdblock4 13 | 100 | 0.0 | uwork 14 | 125 | 0.9 | tash 15 | 100 | 0.0 | CPULoadMonitor -------------------------------------------------- After this commit , output is : Started CPU monitor with interval 5 sec. Non-Zero CPU utilization trend (updated every 5s) -------------------------------------------------- PID | Pri | CPU0 | CPU1 | Avg | -------------------------------------------------- 0 | 0 | 99.9 | 0.0 | 42.8 | CPU0 IDLE 1 | 0 | 0.0 | 100.0 | 57.2 | CPU1 IDLE 11 | 200 | 0.0 | 0.1 | 0.1 | log_dump 20 | 100 | 1.4 | 0.0 | 0.6 | CPULoadMonitor --------------------------------------------------
- Loading branch information
1 parent
faaec07
commit 6253570
Showing
9 changed files
with
200 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.