- 浏览: 7862528 次
- 性别:
- 来自: 广州
文章分类
- 全部博客 (2425)
- 软件工程 (75)
- JAVA相关 (662)
- ajax/web相关 (351)
- 数据库相关/oracle (218)
- PHP (147)
- UNIX/LINUX/FREEBSD/solaris (118)
- 音乐探讨 (1)
- 闲话 (11)
- 网络安全等 (21)
- .NET (153)
- ROR和GOG (10)
- [网站分类]4.其他技术区 (181)
- 算法等 (7)
- [随笔分类]SOA (8)
- 收藏区 (71)
- 金融证券 (4)
- [网站分类]5.企业信息化 (3)
- c&c++学习 (1)
- 读书区 (11)
- 其它 (10)
- 收藏夹 (1)
- 设计模式 (1)
- FLEX (14)
- Android (98)
- 软件工程心理学系列 (4)
- HTML5 (6)
- C/C++ (0)
- 数据结构 (0)
- 书评 (3)
- python (17)
- NOSQL (10)
- MYSQL (85)
- java之各类测试 (18)
- nodejs (1)
- JAVA (1)
- neo4j (3)
- VUE (4)
- docker相关 (1)
最新评论
-
xiaobadi:
jacky~~~~~~~~~
推荐两个不错的mybatis GUI生成工具 -
masuweng:
(转)JAVA获得机器码的实现 -
albert0707:
有些扩展名为null
java 7中可以判断文件的contenttype了 -
albert0707:
非常感谢!!!!!!!!!
java 7中可以判断文件的contenttype了 -
zhangle:
https://zhuban.me竹板共享 - 高效便捷的文档 ...
一个不错的网络白板工具
http://blog.yufeng.info/archives/1062
在作网络程序的时候, 经常需要了解interrupts和软中断的平衡情况, 需要知道每秒有多少中断发生,发生在哪个cpu上.
Linux下中断来源可以从 /proc/interrupts 中了解到:
$ cat /proc/interrupts
CPU0 CPU1
0: 247701 250313 IO-APIC-edge timer
1: 501 567 IO-APIC-edge i8042
3: 1 1 IO-APIC-edge
8: 1 0 IO-APIC-edge rtc0
9: 256 240 IO-APIC-fasteoi acpi
12: 1134 1149 IO-APIC-edge i8042
16: 629 554 IO-APIC-fasteoi nvidia
17: 21313 20869 IO-APIC-fasteoi firewire_ohci, eth1
18: 0 0 IO-APIC-fasteoi mmc0
19: 51822 50079 IO-APIC-fasteoi ata_piix, ata_piix
20: 5605 5255 IO-APIC-fasteoi ehci_hcd:usb2, uhci_hcd:usb3, uhci_hcd:usb6
21: 0 0 IO-APIC-fasteoi uhci_hcd:usb4, uhci_hcd:usb7
22: 33 33 IO-APIC-fasteoi ehci_hcd:usb1, uhci_hcd:usb5, uhci_hcd:usb8
45: 337 247 PCI-MSI-edge eth0
46: 441 447 PCI-MSI-edge hda_intel
NMI: 0 0 Non-maskable interrupts
LOC: 169176 174899 Local timer interrupts
SPU: 0 0 Spurious interrupts
PMI: 0 0 Performance monitoring interrupts
PND: 0 0 Performance pending work
RES: 42289 40236 Rescheduling interrupts
CAL: 154 1076 Function call interrupts
TLB: 5838 5365 TLB shootdowns
TRM: 0 0 Thermal event interrupts
THR: 0 0 Threshold APIC interrupts
MCE: 0 0 Machine check exceptions
MCP: 5 5 Machine check polls
ERR: 1
MIS: 0
软中断可以从/proc/softirqs 了解到:
$ cat /proc/softirqs
CPU0 CPU1
HI: 0 0
TIMER: 160508 1170976
NET_TX: 2 2
NET_RX: 3303 3165
BLOCK: 50964 49198
BLOCK_IOPOLL: 0 0
TASKLET: 24743 24284
SCHED: 39483 41848
HRTIMER: 34 40
RCU: 92193 92592
总的中断次数可以从vmstat或者dstat了解到:
$ vmstat
procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu----
r b swpd free buff cache si so bi bo in cs us sy id wa
3 0 0 44160 327144 876600 0 0 894 584 458 2295 11 5 70 15
itop提供了更方便的方式了解,作者Hunz在源码里面写:
It’s quite simple but it does its job.
虽然简单,但是适用:
Ubutun下可以这样安装: apt-get install itop
$ itop
INT NAME RATE MAX
0 [PIC-edge time] 628 Ints/s (max: 628)
1 [PIC-edge i804] 4 Ints/s (max: 4)
17 [PIC-fasteoi fire] 8 Ints/s (max: 22)
19 [PIC-fasteoi ata_] 1 Ints/s (max: 14)
20 [PIC-fasteoi ehci] 25 Ints/s (max: 25)
45 [MSI-edge eth0] 1 Ints/s (max: 1)
他会计算每秒每个中断源中断的次数,看起来比较方便.
在作网络程序的时候, 经常需要了解interrupts和软中断的平衡情况, 需要知道每秒有多少中断发生,发生在哪个cpu上.
Linux下中断来源可以从 /proc/interrupts 中了解到:
$ cat /proc/interrupts
CPU0 CPU1
0: 247701 250313 IO-APIC-edge timer
1: 501 567 IO-APIC-edge i8042
3: 1 1 IO-APIC-edge
8: 1 0 IO-APIC-edge rtc0
9: 256 240 IO-APIC-fasteoi acpi
12: 1134 1149 IO-APIC-edge i8042
16: 629 554 IO-APIC-fasteoi nvidia
17: 21313 20869 IO-APIC-fasteoi firewire_ohci, eth1
18: 0 0 IO-APIC-fasteoi mmc0
19: 51822 50079 IO-APIC-fasteoi ata_piix, ata_piix
20: 5605 5255 IO-APIC-fasteoi ehci_hcd:usb2, uhci_hcd:usb3, uhci_hcd:usb6
21: 0 0 IO-APIC-fasteoi uhci_hcd:usb4, uhci_hcd:usb7
22: 33 33 IO-APIC-fasteoi ehci_hcd:usb1, uhci_hcd:usb5, uhci_hcd:usb8
45: 337 247 PCI-MSI-edge eth0
46: 441 447 PCI-MSI-edge hda_intel
NMI: 0 0 Non-maskable interrupts
LOC: 169176 174899 Local timer interrupts
SPU: 0 0 Spurious interrupts
PMI: 0 0 Performance monitoring interrupts
PND: 0 0 Performance pending work
RES: 42289 40236 Rescheduling interrupts
CAL: 154 1076 Function call interrupts
TLB: 5838 5365 TLB shootdowns
TRM: 0 0 Thermal event interrupts
THR: 0 0 Threshold APIC interrupts
MCE: 0 0 Machine check exceptions
MCP: 5 5 Machine check polls
ERR: 1
MIS: 0
软中断可以从/proc/softirqs 了解到:
$ cat /proc/softirqs
CPU0 CPU1
HI: 0 0
TIMER: 160508 1170976
NET_TX: 2 2
NET_RX: 3303 3165
BLOCK: 50964 49198
BLOCK_IOPOLL: 0 0
TASKLET: 24743 24284
SCHED: 39483 41848
HRTIMER: 34 40
RCU: 92193 92592
总的中断次数可以从vmstat或者dstat了解到:
$ vmstat
procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu----
r b swpd free buff cache si so bi bo in cs us sy id wa
3 0 0 44160 327144 876600 0 0 894 584 458 2295 11 5 70 15
itop提供了更方便的方式了解,作者Hunz在源码里面写:
It’s quite simple but it does its job.
虽然简单,但是适用:
Ubutun下可以这样安装: apt-get install itop
$ itop
INT NAME RATE MAX
0 [PIC-edge time] 628 Ints/s (max: 628)
1 [PIC-edge i804] 4 Ints/s (max: 4)
17 [PIC-fasteoi fire] 8 Ints/s (max: 22)
19 [PIC-fasteoi ata_] 1 Ints/s (max: 14)
20 [PIC-fasteoi ehci] 25 Ints/s (max: 25)
45 [MSI-edge eth0] 1 Ints/s (max: 1)
他会计算每秒每个中断源中断的次数,看起来比较方便.
发表评论
-
windows下自带命令行工具查看CPU资源情况等
2018-06-04 12:53 3048微软提供了不少命令行 ... -
挂载文件系统选项nodiratime、noatime等集合小结
2018-06-02 19:56 2548Linux系统文件有三个主 ... -
Linux如何查看当前占用CPU或内存最多的K个进程
2018-05-20 11:01 3236内存 可以使用以下命令查使用内存最多的K个进程 方法1: p ... -
(转)使用frp实现内网穿透
2018-05-14 13:33 2431https://www.jianshu.com/p/e8e26 ... -
docker小结1
2018-05-11 14:26 4391 通过dockerfile建立一个简单的HELLO.C,然后 ... -
LINUX下EPOLL等不错的文章收藏
2018-04-25 09:35 5091 通俗讲解 异步,非阻塞和 IO 复用 https:/ ... -
Ubuntu中root用户和user用户的相互切换
2018-04-06 12:46 9891)从user用户切换到root用户 不管是用图形模式登录U ... -
ubuntu下Virtualbox虚拟Ubuntu共享文件夹设置
2018-04-06 11:41 9761. 安装增强功能包(Guest Additions) 安装 ... -
Web网站压力及性能测试
2017-10-09 19:59 655https://segmentfault.com/a/1190 ... -
工具推荐:Netdata,Linux性能实时监测工具
2017-07-14 09:10 1147工具推荐:Netdata,Linux性能实时监测工具 http ... -
一个 Linux 下基于 Bash 的文件和数据库监控及备份工具,可发送微信报警通知
2017-07-11 07:07 1618一个 Linux 下基于 Bash 的文件和数据库监控及备份工 ... -
收藏个不错的能发送日志等警告信息等到微信的工具
2017-06-11 10:12 1041发现个将比如报警日志呀之类的提醒信息,发送给微信的好的工具,不 ... -
收藏:nginx教程从入门到精通(ttlsa出品)
2017-02-09 22:53 689http://www.ttlsa.com/nginx/ngin ... -
(转)从dstat理解Linux性能监控体系
2016-08-02 10:27 2524http://calvin1978.blogcn.com/ar ... -
linux下安装SZ,RZ命令
2016-02-26 20:59 1621在 linux 下,一般用secur crt等工具,今天居然 ... -
Clumsy —— 帮你模拟各种网络不稳定的环境,包括掉包
2014-11-14 09:12 1721Clumsy —— 帮你模拟各种网络不稳定的环境,包括掉包、延 ... -
ping+tracerout的unix下网络诊断小工具mtr
2014-07-29 22:04 1569今日才发现,原来linux中可以用ping和tracerout ... -
(转)Apache日志分割
2014-02-25 20:20 1565Apache和Ngix一样,对日志没有进行分割处理,这样很不方 ... -
linux下 cpu频率节能
2014-02-25 13:06 1402参考: http://linux-wiki.cn/wiki/z ... -
(转)最佳日志实践
2014-01-22 23:24 922http://www.bitstech.net/2014/01 ...
相关推荐
今天我们来学习一下 linux 中断处理驱动的编写,本节我们实现的功能是通过开发板上的按键来控制 led 发光二极管
iTOP-4412开发板之嵌入式linux驱动专题 stm32 arma9
iTOP-4412-Linux系统-ssh功能移植到开发板,所需资源,编译完成的库文件
iTOP-4412-LinuxC-摄像头ov5640-500W测试方法.zip iTOP-4412-LinuxC-摄像头ov5640-500W测试方法.zip
移植 u-boot-2020.07 到 iTOP-4412(四)支持中断 https://blog.csdn.net/u012849539/article/details/107700406
使用ITOP记录ITSS运维文档,需要过ITSS三级的可以使用在Windows下完整安装ITOP记录。
基于三星Exynos 4412的Linux开发板的实验教程
iTop,即IT运营门户(IT Operation Portal),是一种开源web应用程序,用于IT环境的日常运营。它基于ITIL最佳实践,而又不拘泥于任何具体流程。它很灵活,可以适应不管是非正式的、务实的流程,还是严格遵循ITIL的...
《iTOP-4412 驱动实验手册》是以“Linux 驱动的入门和提升教程”这一基本思想编 撰而成。无论是以前学习过单片机还是进行过上位机编程的用户,都可以从这本实验手册入手学习 Linux 驱动。
iTop4412 LED设备驱动 自己在Linux内核下编写的LED代码
Customizing iTop 1-0; How to setup authentication with iTop; iTop 1-0 user guide; iTop 1-2 admin guide; iTop Customization; iTop Implementation Guide; Localizing iTop; OQL Reference;
itop初始配置,新建交付模式、服务类型、合同、联系人,以及服务工单/事件如何新建、分配、解决过程演示。
嵌入式开发板iTOP-4412在Ubuntu下配置WIFI方法
iTop-2.1.0-2127 版本2015年1月更新
在iTop4412平台下, 简单地开发了裸机点亮LED得demo工程。亲自验证,没有问题。详情参考博客:https://www.cnblogs.com/w54255787/p/11000682.html
嵌入式Linux实验讯为ITop4412定制内核,并支持NFS文件系统与QT,遇到了各种错误,保姆级教程。 错误列举:1. PL2303TA不支持Windows11。 2. 系统误识别为Android1.0。 3. Android ADB Interface上有叹号。无法成功...
非常不错的三星4412 Linux开发实验手册,里面有31个应用程序实验。是Linux编程入门非常赞的教程,欢迎下载。
itop4412 iTop4412相关模块代码. 加上文档
ITOP4412内核开发资料,可直接参与编译
ITOP4412内核开发资料,可直接参与编译