Comments (5)
cat /proc/stat
on my ci20 gives:
# user nice system idle io irq softirq
cpu 890971 212506 266051 254229651 37111 254761780 168504 0 0 0
cpu0 490938 91070 266051 254229651 37111 0 168504 0 0 0
cpu1 400033 121436 0 0 0 254761780 0 0 0 0
I can also put load onto the second CPU and it seems to work - so my guess is it's just the statistics in /proc/stat
that are wrong.
from ci20_linux.
When I check on my otherwise idle system I seem to have pretty high numbers
now it is possible that this is because I am using a kernel compiled on the ci20 itself.
But mostly if you can get it to compile natively it is pretty correct.
root@ci20:~# cat /proc/stat
cpu 5926443 0 167195 10000582 534 4513926 215 0 0 0
cpu0 135934 0 167195 10000582 534 0 215 0 0 0
cpu1 5790509 0 0 0 0 4513926 0 0 0 0
intr 52449682 0 0 20892517 10664052 0 0 0 0 0 0 0 1 0 0 0 0 0 0 60736 0 0 0 0 0 0 0 0 0 0 2 0 0 0 10304438 10304459 0 0 0 0 0 0 0 28 0 115639 106483 0 0 0 0 0 0 0 0 0 0 0 10 0 54 0 0 0 0 33 0 0 0 104 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1126 0 0
ctxt 3294471
btime 1429988114
processes 2762
procs_running 2
procs_blocked 0
softirq 32649405 1 20608894 673 8403 0 0 60781 11097108 0 873545
and still top seems to be saying that I am using a lot of user and high
top - 23:33:49 up 1 day, 4:38, 1 user, load average: 1.01, 1.03, 1.05
Tasks: 75 total, 2 running, 73 sleeping, 0 stopped, 0 zombie
%Cpu(s): 26.2 us, 0.2 sy, 0.0 ni, 49.7 id, 0.0 wa, 24.0 hi, 0.0 si, 0.0 st
KiB Mem: 1024020 total, 106420 used, 917600 free, 8540 buffers
KiB Swap: 2095100 total, 0 used, 2095100 free, 68364 cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1779 root 20 0 3004 1888 1712 R 100.0 0.2 1718:14 rpcbind
2762 root 20 0 3740 2336 1940 R 0.7 0.2 0:00.04 top
1 root 20 0 2636 1576 1472 S 0.0 0.2 0:01.44 init
I should also note that the CPU is not hot and that this is on the Debian image on a SD card with a kernel compiled under the Debian on the SD card, and the two files renamed as per the now closed issue #24 and the u-boot: mkimage.c patched for 64 integers per issue #22
from ci20_linux.
what is your cmdline. I noticed this rpcbind cpu usage would go away with devtmpfs.mount=1 in the cmdline. I thought I had enabled it in the defconfig..
from ci20_linux.
Please note. Due to the way interrupts are wired inside the jz4780.
One cpu will always have to handle the interrupts. That might mess up stats..
from ci20_linux.
Should be solved by 58aab73 as it enables CONFIG_DEVTMPFS_MOUNT=y in defconfig
from ci20_linux.
Related Issues (20)
- build kernel with o=<outside tree build failes issue 3.0.8 HOT 2
- Where PowerVR SGX540 Source code? HOT 2
- ext4load 3.18 kernel boothang HOT 7
- Highmem causes applications to crash HOT 2
- cpu stall during wifi transfers for long duration HOT 1
- Camera not working with Android 4.4.2 and Kernel Version 3.0.8 HOT 2
- Reliable crashes of nodejs HOT 15
- kernel build not 32 bit clean HOT 1
- kernel cannot be built directly on the ci20 HOT 7
- kernel is missing brcmfmac4330 files required by ci20_defconfig HOT 3
- DM9000: sometimes fails to read id. HOT 3
- Unable to build kernel module z4780_drv on v3.18 HOT 7
- CPU usage statistics wrong on second CPU in 3.18 HOT 1
- ci20-3.0.8 install_headers
- OpenGL textures problem HOT 9
- whether this kernel use device tree to init device HOT 1
- fatal error: linux/compiler-gcc6.h: No such file or directory HOT 1
- Board freezes up
- Errors 3.18.3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ci20_linux.