android系统进程简要分析
16lz
2021-01-26
在android上利用ps aux命令打印出来的进程id与分析结果
WCHAN列的含义: 当前进程正在阻塞的内核函数名称和地址
USER PID PPID VSIZE RSS WCHAN PC NAME root 1 0 4532 1188 ep_poll 00004d549a S /init 盘古进程,其它用户进程的祖先进程 root 2 0 0 0 kthreadd 0000000000 S kthreadd 由idle进程创建,运行在内核空间,负责所有内核线程的调度和管理 root 3 2 0 0 smpboot_th 0000000000 S ksoftirqd/0 监测软中断的内核线程 root 4 2 0 0 worker_thr 0000000000 S kworker/0:0 第0个CPU的第0个工作进程 root 5 2 0 0 worker_thr 0000000000 S kworker/0:0H 第0个cpu的第0H工作进程 root 6 2 0 0 worker_thr 0000000000 S kworker/u4:0 u代表的是unbound,即未与CPU绑定的进程 root 7 2 0 0 smpboot_th 0000000000 S migration/0 用于在不同的CPU间迁移 root 8 2 0 0 rcu_gp_kth 0000000000 S rcu_preempt 读写更新 抢占器 root 9 2 0 0 rcu_gp_kth 0000000000 S rcu_bh root 10 2 0 0 rcu_gp_kth 0000000000 S rcu_sched 读写更新 调度 root 11 2 0 0 smpboot_th 0000000000 S migration/1 root 12 2 0 0 smpboot_th 0000000000 S ksoftirqd/1 root 14 2 0 0 worker_thr 0000000000 S kworker/1:0H root 15 2 0 0 rescuer_th 0000000000 S khelper 用于调用内核模块的用户空间实现 root 16 2 0 0 worker_thr 0000000000 S kworker/u4:1 root 300 2 0 0 rescuer_th 0000000000 S writeback root 302 2 0 0 rescuer_th 0000000000 S bioset block i/o管理
root 304 2 0 0 rescuer_th 0000000000 S kblockd 用于卸载和影响ios延迟/吞吐率
root 397 2 0 0 rescuer_th 0000000000 S ata_sff ata是ide接口 sff是 2.5寸硬盘的意思
root 408 2 0 0 hub_thread 0000000000 S khubd root 417 2 0 0 rescuer_th 0000000000 S md Multiple Devices driver for Linux
root 426 2 0 0 worker_thr 0000000000 S kworker/0:1 root 427 2 0 0 rescuer_th 0000000000 S cfg80211 configure 802.11协议, 配置wifi的进程
root 537 2 0 0 kswapd 0000000000 S kswapd0 内存管理中的页交换
root 600 2 0 0 fsnotify_m 0000000000 S fsnotify_mark 文件系统通知标记进程
root 620 2 0 0 rescuer_th 0000000000 S crypto 加密子进程
root 640 2 0 0 worker_thr 0000000000 S kworker/1:1 root 744 2 0 0 rescuer_th 0000000000 S iscsi_eh SCSI是指一种硬件接口标准,与sata用在微型机上不同,一般出现在服务器(小型机)的硬盘上,性能高,安卓很明显没有这种接口,为什么有启动这个进程呢?
root 758 2 0 0 scsi_error 0000000000 S scsi_eh_0 创建一个scsi_eh进程,这进程在ubuntu上也存在
root 761 2 0 0 scsi_error 0000000000 S scsi_eh_1 root 775 2 0 0 worker_thr 0000000000 S kworker/1:2 root 800 2 0 0 rescuer_th 0000000000 S uether 不知何用,在ubuntu进程上不存在
root 818 2 0 0 rescuer_th 0000000000 S dm_bufio_cache dm是指 RAID and LVM drivers 缓冲io root 849 2 0 0 rescuer_th 0000000000 S binder 大名鼎鼎的binder进程,android进程间通信的核心
root 868 2 0 0 rescuer_th 0000000000 S deferwq defer work queue 开启延迟设备检测 root 881 1 4272 744 poll_sched 00004bfb8a S /sbin/ueventd 事件后台进程 root 1189 2 0 0 worker_thr 0000000000 S kworker/1:1H root 1190 2 0 0 kjournald2 0000000000 S jbd2/vda-8 journal block device2 vda-8是设备名称 root 1191 2 0 0 rescuer_th 0000000000 S ext4-dio-unwrit ext4文件系统相关进程 root 1192 2 0 0 worker_thr 0000000000 S kworker/0:1H root 1193 2 0 0 kjournald2 0000000000 S jbd2/vdb-8 journal block device2 vdb-8是设备名称 root 1194 2 0 0 rescuer_th 0000000000 S ext4-dio-unwrit root 1198 2 0 0 kjournald2 0000000000 S jbd2/vdc-8 journal block device2 vdc-8是设备名称 root 1199 2 0 0 rescuer_th 0000000000 S ext4-dio-unwrit 紫色是由init进程创建出来的进程 一共有21个进程 这些进程都是在system/core/rootdir/init.rc中配置的
logd 1200 1 14452 3428 sigsuspend 7ff9f0a198a7 S /system/bin/logd 日志进程
root 1201 1 14424 3340 hrtimer_na 7fb867a8c2a7 S /system/bin/vold volume daemon volume是外部存储设备的意思 root 1204 1 4364 532 ep_poll 000044e01a S /sbin/healthd 安卓特有的 健康(电池)管理进程 root 1205 1 5972 1384 ep_poll 7f0535a6636a S /system/bin/lmkd lowmemorykillerdaemon 低内存杀手 system 1206 1 5920 1528 binder_thr 7efefcbb5607 S /system/bin/servicemanager binder服务的订阅查询服务进程 system 1207 1 58212 4436 ep_poll 7f51015cd36a S /system/bin/surfaceflinger 与ui有关的进程 root 1213 2 0 0 kauditd_th 0000000000 S kauditd 内核审核守护进程 shell 1216 1 6108 1604 n_tty_read 7fcfcab6da27 S /system/bin/sh 从init进程派生一个shell进程出来? root 1217 1 12116 436 poll_sched 0000445daa S /sbin/adbd adb后台进程 root 1219 1 18392 2476 hrtimer_na 7fd18ecdf2a7 S /system/bin/netd 网络相关进程
root 1220 1 4168 1152 __skb_recv 00f7543343 S /system/bin/debuggerd 调试器 root 1221 1 6064 1348 __skb_recv 7f7010619bea S /system/bin/debuggerd64
radio 1222 1 11212 1984 hrtimer_na 7f0791d462a7 S /system/bin/rild radio interface layer daemon 通信层后台 drm 1223 1 16484 3972 binder_thr 00f73aaa06 S /system/bin/drmserver 数字版权管理进程 media 1224 1 134920 10000 binder_thr 00f6f4da06 S /system/bin/mediaserver root 1225 1 5764 1324 unix_strea 7f0f5585aa27 S /system/bin/installd 负责安装应用程序的进程 keystore 1229 1 9824 2656 binder_thr 7f9be1356607 S /system/bin/keystore 证书管理 root 1230 1 1264956 63756 poll_sched 7f2296d6ab4a S zygote64 //这是第一个客户进程,server_server进程和zygote64进程通信以创建其它的app进程 root 1231 1 1253588 53328 poll_sched 00f7323270 S zygote 它好像没用 system 1236 1 9240 2352 binder_thr 7fb476a27607 S /system/bin/gatekeeperd 锁屏幕处理进程 root 1239 1 5780 1352 hrtimer_na 7f26315342a7 S /system/xbin/perfprofd perf profile collection daemon 性能搜集进程 system 1240 1 10248 2552 binder_thr 7fe325dfd607 S /system/bin/fingerprintd 指纹进程 system 1573 1230 1410504 91100 ep_poll 7f2296d6a36a S system_server 大名鼎鼎的system_server进程,ams,pms等服务都运行在这个进程 media_rw 1656 1201 9440 2016 inotify_re 7f75425a6a27 S /system/bin/sdcard 它由vold进程创建的
u0_a14 1687 1230 1337636 86544 ep_poll 7f2296d6a36a S com.android.systemui 系统状态栏进程 media_rw 1734 1201 9440 2016 inotify_re 7fa299b93a27 S /system/bin/sdcard 它由vold进程创建的,不明白为什么会创建2个sdcard进程
u0_a33 1888 1230 1284376 43328 ep_poll 7f2296d6a36a S com.android.inputmethod.latin 输入法进程 u0_a6 1903 1230 1277164 39824 ep_poll 7f2296d6a36a S android.process.media 媒体进程 radio 1912 1230 1298720 51496 ep_poll 7f2296d6a36a S com.android.phone telephony通话服务进程 是一个app u0_a3 1984 1230 1283044 45560 ep_poll 7f2296d6a36a S android.process.acore contactsprovider进程 u0_a24 2129 1230 1278068 35972 ep_poll 7f2296d6a36a S com.android.deskclock 闹钟进程 u0_a43 2145 1230 1272576 31620 ep_poll 7f2296d6a36a S com.android.quicksearchbox 快速搜索框进程 system 2159 1230 1286404 31796 ep_poll 7f2296d6a36a S com.android.settings 设置进程 u0_a20 2185 1230 1281032 34544 ep_poll 7f2296d6a36a S com.android.calendar 日历进程 packages/apps/Calendar u0_a1 2204 1230 1274268 35960 ep_poll 7f2296d6a36a S com.android.providers.calendar 日历提供器进程packages/providers/CalendarProvider u0_a8 2297 1230 1310228 63772 ep_poll 7f2296d6a36a S com.android.launcher3 启动器进程,即桌面 u0_a28 2326 1230 1290128 39684 ep_poll 7f2296d6a36a S com.android.email 邮件服务进程 u0_a46 2368 1230 1287232 46820 ep_poll 7f2296d6a36a S com.android.messaging 短消息进程 root 3054 1217 6108 1672 sigsuspend 7faf6f0918a7 S /system/bin/sh shell终端进程 root 3058 3054 5780 1304 0 7fcd6aa76a27 R ps 显示这个信息的ps进程
存在分析不完善和错误欢迎交流!
WCHAN列的含义: 当前进程正在阻塞的内核函数名称和地址
USER PID PPID VSIZE RSS WCHAN PC NAME root 1 0 4532 1188 ep_poll 00004d549a S /init 盘古进程,其它用户进程的祖先进程 root 2 0 0 0 kthreadd 0000000000 S kthreadd 由idle进程创建,运行在内核空间,负责所有内核线程的调度和管理 root 3 2 0 0 smpboot_th 0000000000 S ksoftirqd/0 监测软中断的内核线程 root 4 2 0 0 worker_thr 0000000000 S kworker/0:0 第0个CPU的第0个工作进程 root 5 2 0 0 worker_thr 0000000000 S kworker/0:0H 第0个cpu的第0H工作进程 root 6 2 0 0 worker_thr 0000000000 S kworker/u4:0 u代表的是unbound,即未与CPU绑定的进程 root 7 2 0 0 smpboot_th 0000000000 S migration/0 用于在不同的CPU间迁移 root 8 2 0 0 rcu_gp_kth 0000000000 S rcu_preempt 读写更新 抢占器 root 9 2 0 0 rcu_gp_kth 0000000000 S rcu_bh root 10 2 0 0 rcu_gp_kth 0000000000 S rcu_sched 读写更新 调度 root 11 2 0 0 smpboot_th 0000000000 S migration/1 root 12 2 0 0 smpboot_th 0000000000 S ksoftirqd/1 root 14 2 0 0 worker_thr 0000000000 S kworker/1:0H root 15 2 0 0 rescuer_th 0000000000 S khelper 用于调用内核模块的用户空间实现 root 16 2 0 0 worker_thr 0000000000 S kworker/u4:1 root 300 2 0 0 rescuer_th 0000000000 S writeback root 302 2 0 0 rescuer_th 0000000000 S bioset block i/o管理
root 304 2 0 0 rescuer_th 0000000000 S kblockd 用于卸载和影响ios延迟/吞吐率
root 397 2 0 0 rescuer_th 0000000000 S ata_sff ata是ide接口 sff是 2.5寸硬盘的意思
root 408 2 0 0 hub_thread 0000000000 S khubd root 417 2 0 0 rescuer_th 0000000000 S md Multiple Devices driver for Linux
root 426 2 0 0 worker_thr 0000000000 S kworker/0:1 root 427 2 0 0 rescuer_th 0000000000 S cfg80211 configure 802.11协议, 配置wifi的进程
root 537 2 0 0 kswapd 0000000000 S kswapd0 内存管理中的页交换
root 600 2 0 0 fsnotify_m 0000000000 S fsnotify_mark 文件系统通知标记进程
root 620 2 0 0 rescuer_th 0000000000 S crypto 加密子进程
root 640 2 0 0 worker_thr 0000000000 S kworker/1:1 root 744 2 0 0 rescuer_th 0000000000 S iscsi_eh SCSI是指一种硬件接口标准,与sata用在微型机上不同,一般出现在服务器(小型机)的硬盘上,性能高,安卓很明显没有这种接口,为什么有启动这个进程呢?
root 758 2 0 0 scsi_error 0000000000 S scsi_eh_0 创建一个scsi_eh进程,这进程在ubuntu上也存在
root 761 2 0 0 scsi_error 0000000000 S scsi_eh_1 root 775 2 0 0 worker_thr 0000000000 S kworker/1:2 root 800 2 0 0 rescuer_th 0000000000 S uether 不知何用,在ubuntu进程上不存在
root 818 2 0 0 rescuer_th 0000000000 S dm_bufio_cache dm是指 RAID and LVM drivers 缓冲io root 849 2 0 0 rescuer_th 0000000000 S binder 大名鼎鼎的binder进程,android进程间通信的核心
root 868 2 0 0 rescuer_th 0000000000 S deferwq defer work queue 开启延迟设备检测 root 881 1 4272 744 poll_sched 00004bfb8a S /sbin/ueventd 事件后台进程 root 1189 2 0 0 worker_thr 0000000000 S kworker/1:1H root 1190 2 0 0 kjournald2 0000000000 S jbd2/vda-8 journal block device2 vda-8是设备名称 root 1191 2 0 0 rescuer_th 0000000000 S ext4-dio-unwrit ext4文件系统相关进程 root 1192 2 0 0 worker_thr 0000000000 S kworker/0:1H root 1193 2 0 0 kjournald2 0000000000 S jbd2/vdb-8 journal block device2 vdb-8是设备名称 root 1194 2 0 0 rescuer_th 0000000000 S ext4-dio-unwrit root 1198 2 0 0 kjournald2 0000000000 S jbd2/vdc-8 journal block device2 vdc-8是设备名称 root 1199 2 0 0 rescuer_th 0000000000 S ext4-dio-unwrit 紫色是由init进程创建出来的进程 一共有21个进程 这些进程都是在system/core/rootdir/init.rc中配置的
logd 1200 1 14452 3428 sigsuspend 7ff9f0a198a7 S /system/bin/logd 日志进程
root 1201 1 14424 3340 hrtimer_na 7fb867a8c2a7 S /system/bin/vold volume daemon volume是外部存储设备的意思 root 1204 1 4364 532 ep_poll 000044e01a S /sbin/healthd 安卓特有的 健康(电池)管理进程 root 1205 1 5972 1384 ep_poll 7f0535a6636a S /system/bin/lmkd lowmemorykillerdaemon 低内存杀手 system 1206 1 5920 1528 binder_thr 7efefcbb5607 S /system/bin/servicemanager binder服务的订阅查询服务进程 system 1207 1 58212 4436 ep_poll 7f51015cd36a S /system/bin/surfaceflinger 与ui有关的进程 root 1213 2 0 0 kauditd_th 0000000000 S kauditd 内核审核守护进程 shell 1216 1 6108 1604 n_tty_read 7fcfcab6da27 S /system/bin/sh 从init进程派生一个shell进程出来? root 1217 1 12116 436 poll_sched 0000445daa S /sbin/adbd adb后台进程 root 1219 1 18392 2476 hrtimer_na 7fd18ecdf2a7 S /system/bin/netd 网络相关进程
root 1220 1 4168 1152 __skb_recv 00f7543343 S /system/bin/debuggerd 调试器 root 1221 1 6064 1348 __skb_recv 7f7010619bea S /system/bin/debuggerd64
radio 1222 1 11212 1984 hrtimer_na 7f0791d462a7 S /system/bin/rild radio interface layer daemon 通信层后台 drm 1223 1 16484 3972 binder_thr 00f73aaa06 S /system/bin/drmserver 数字版权管理进程 media 1224 1 134920 10000 binder_thr 00f6f4da06 S /system/bin/mediaserver root 1225 1 5764 1324 unix_strea 7f0f5585aa27 S /system/bin/installd 负责安装应用程序的进程 keystore 1229 1 9824 2656 binder_thr 7f9be1356607 S /system/bin/keystore 证书管理 root 1230 1 1264956 63756 poll_sched 7f2296d6ab4a S zygote64 //这是第一个客户进程,server_server进程和zygote64进程通信以创建其它的app进程 root 1231 1 1253588 53328 poll_sched 00f7323270 S zygote 它好像没用 system 1236 1 9240 2352 binder_thr 7fb476a27607 S /system/bin/gatekeeperd 锁屏幕处理进程 root 1239 1 5780 1352 hrtimer_na 7f26315342a7 S /system/xbin/perfprofd perf profile collection daemon 性能搜集进程 system 1240 1 10248 2552 binder_thr 7fe325dfd607 S /system/bin/fingerprintd 指纹进程 system 1573 1230 1410504 91100 ep_poll 7f2296d6a36a S system_server 大名鼎鼎的system_server进程,ams,pms等服务都运行在这个进程 media_rw 1656 1201 9440 2016 inotify_re 7f75425a6a27 S /system/bin/sdcard 它由vold进程创建的
u0_a14 1687 1230 1337636 86544 ep_poll 7f2296d6a36a S com.android.systemui 系统状态栏进程 media_rw 1734 1201 9440 2016 inotify_re 7fa299b93a27 S /system/bin/sdcard 它由vold进程创建的,不明白为什么会创建2个sdcard进程
u0_a33 1888 1230 1284376 43328 ep_poll 7f2296d6a36a S com.android.inputmethod.latin 输入法进程 u0_a6 1903 1230 1277164 39824 ep_poll 7f2296d6a36a S android.process.media 媒体进程 radio 1912 1230 1298720 51496 ep_poll 7f2296d6a36a S com.android.phone telephony通话服务进程 是一个app u0_a3 1984 1230 1283044 45560 ep_poll 7f2296d6a36a S android.process.acore contactsprovider进程 u0_a24 2129 1230 1278068 35972 ep_poll 7f2296d6a36a S com.android.deskclock 闹钟进程 u0_a43 2145 1230 1272576 31620 ep_poll 7f2296d6a36a S com.android.quicksearchbox 快速搜索框进程 system 2159 1230 1286404 31796 ep_poll 7f2296d6a36a S com.android.settings 设置进程 u0_a20 2185 1230 1281032 34544 ep_poll 7f2296d6a36a S com.android.calendar 日历进程 packages/apps/Calendar u0_a1 2204 1230 1274268 35960 ep_poll 7f2296d6a36a S com.android.providers.calendar 日历提供器进程packages/providers/CalendarProvider u0_a8 2297 1230 1310228 63772 ep_poll 7f2296d6a36a S com.android.launcher3 启动器进程,即桌面 u0_a28 2326 1230 1290128 39684 ep_poll 7f2296d6a36a S com.android.email 邮件服务进程 u0_a46 2368 1230 1287232 46820 ep_poll 7f2296d6a36a S com.android.messaging 短消息进程 root 3054 1217 6108 1672 sigsuspend 7faf6f0918a7 S /system/bin/sh shell终端进程 root 3058 3054 5780 1304 0 7fcd6aa76a27 R ps 显示这个信息的ps进程
存在分析不完善和错误欢迎交流!
更多相关文章
- Android判断、创建和删除快捷方式
- Android(安卓)自定义Spinner显示条目与下拉框的布局
- Android源码(7) --- Binder(1) Linux IPC 机制
- Android中使用SQLiteOpenHelper对SQLite数据库进行增删改查
- Android(安卓)Framework 源码之旅 —— 正识Binder
- Context和SQLiteOpenHelper创建数据库
- Android下 SQLite的使用
- Android一些知识点汇总
- 使用Android(安卓)Studio创建Android项目