当前位置: 首页 > news >正文

深圳网站自然优化百度sem竞价托管公司

深圳网站自然优化,百度sem竞价托管公司,北京设计公司招聘信息,没企业可以做网站吗安卓内存泄露之DMA-BUF异常增长:Android Studio镜像引起DMA内存泄露 - Wesley’s Blog 今天用着安卓 14 的板子的时候突然系统卡死。 查看日志发现launcher都被干掉了 03-04 06:13:35.544 7872 8479 I ActivityManager: vis BFGS 18740: com.android.launcher3 (pid 8407) se…

安卓内存泄露之DMA-BUF异常增长:Android Studio镜像引起DMA内存泄露 - Wesley’s Blog

今天用着安卓 14 的板子的时候突然系统卡死。

查看日志发现launcher都被干掉了

03-04 06:13:35.544 7872 8479 I ActivityManager: vis BFGS 18740: com.android.launcher3 (pid 8407) service

03-04 06:13:35.544 7872 8479 I ActivityManager: com.android.launcher3/com.android.quickstep.TouchInteractionService<=Proc{8077:com.android.systemui/u0a70}

03-04 06:13:36.155 277 277 I lowmemorykiller: Kill ‘com.android.launcher3’ (8407), uid 10071, oom_score_adj 100 to free 39504kB rss, 46224kB swap; reason: device is low on swap (91200kB < 199552kB) and thrashing (200%)

dumpsys meminfo发现DMA-BUF占了3G多(4G设备),应用free ram基本没了。

刚开始以为是scrcpy的问题。后来经调查发现是android studio的屏幕镜像问题。

分析

开机一段时间后

Total RAM: 3,991,080K (status normal)

Free RAM: 1,166,810K ( 124,454K cached pss + 623,088K cached kernel + 419,268K free)

DMA-BUF: 1,477,628K ( 876K mapped + 1,476,752K unmapped)

DMA-BUF Heaps: 1,477,628K

DMA-BUF Heaps pool: 249,088K

​ GPU: 202,320K

Used RAM: 2,763,593K (1,036,373K used pss + 1,727,220K kernel)

Lost RAM: 195,490K

​ ZRAM: 72,700K physical used for 215,296K in swap (1,995,536K total swap)

Tuning: 192 (large 512), oom 322,560K, restore limit 107,520K (high-end-gfx)

cat /sys/kernel/dmabuf/buffers/*/size,发现有好多483328字节的 inode

cat /sys/kernel/dmabuf/buffers/*/size | grep 483328 | wc -l

有2957个,计算:2957*483328=1429200896=1.4G,和上面的结果差不多。

随便查看一个inode

roc_rk3588s_pc:/ # lsof | grep -w 7248

c2@1.1-service 543 mediacodec 2553u 0000 0,8 0t0 7248 /dmabuf:system

main 4146 root 5088u 0000 0,8 0t0 7248 /dmabuf:system

main 4146 root 5089u 0000 0,8 0t0 7248 /dmabuf:system

lsof | grep "4146" | grep dmabuf | wc -l

有2958条这样的条目

main 4146 root 5973u 0000 0,8 0t0 7690 /dmabuf:system

和上面的数目一一对应

查看是哪一个程序

roc_rk3588s_pc:/ # cat /proc/543/cmdline

/vendor/bin/hw/android.hardware.media.c2@1.1-service

roc_rk3588s_pc:/ # cat /proc/4146/cmdline

app_process/data/local/tmp/.studiocom.android.tools.screensharing.Main–socket=screen-sharing-agent-8055–flags=16

发现是android studio镜像导致的:应该是因为一直黑屏导致反复申请内存导致DMA-BUF泄露。

关闭Android Studio的Device Mirroring功能后,后面使用设备就正常了。

img

dmabuf_dump

通过dmabuf_dump命令可以更快地查看异常程序

roc_rk3588s_pc:/ # dmabuf_dump -h

Usage: dmabuf_dump [-abh] [per-process/per-buffer stats]

-a show all dma buffers (ion) in big table, [buffer x process] grid

-b show DMA-BUF per-buffer, per-exporter and per-device statistics

-h show this help

​ If PID is supplied, the dmabuf information for that process is shown.

​ Per-buffer DMA-BUF stats do not take an argument.

通过dmabuf_dump就可以查看各个程序DMA-BUF的占用情况(包含程序名字、pid、inode等等)或者加其他参数输出不同结果。

roc_rk3588s_pc:/ # dmabuf_dump 4146

​ main:4146

​ Name Rss Pss nr_procs Inode

​ system 472 kB 472 kB 1 4735

​ system 472 kB 472 kB 1 4736

​ system 472 kB 472 kB 1 4737

​ ------------------(省略几千行)----------------

​ system 472 kB 472 kB 1 7688

​ system 472 kB 472 kB 1 7689

​ system 472 kB 472 kB 1 7690

​ PROCESS TOTAL 1395232 kB 1395232 kB

----------------------

dmabuf total: 1477628 kB kernel_rss: 82396 kB userspace_rss: 1395232 kB userspace_pss: 1395232 kB

参考

Implement DMABUF and GPU memory accounting in Android 12 | Android Open Source Project


文章转载自:
http://dialyze.c7507.cn
http://convoluted.c7507.cn
http://septuagenarian.c7507.cn
http://wake.c7507.cn
http://collaret.c7507.cn
http://thermantidote.c7507.cn
http://peopleless.c7507.cn
http://stretch.c7507.cn
http://tankstand.c7507.cn
http://felwort.c7507.cn
http://moderatism.c7507.cn
http://prothorax.c7507.cn
http://coiner.c7507.cn
http://knout.c7507.cn
http://sphragistics.c7507.cn
http://supraorbital.c7507.cn
http://wobbulator.c7507.cn
http://hellenistic.c7507.cn
http://yhwh.c7507.cn
http://atrociously.c7507.cn
http://copihue.c7507.cn
http://sassolite.c7507.cn
http://implicit.c7507.cn
http://residentura.c7507.cn
http://decimator.c7507.cn
http://wildebeest.c7507.cn
http://featherweight.c7507.cn
http://archegonium.c7507.cn
http://rhabdomyoma.c7507.cn
http://libau.c7507.cn
http://there.c7507.cn
http://chromatolysis.c7507.cn
http://cranium.c7507.cn
http://astroarchaeology.c7507.cn
http://scintigram.c7507.cn
http://pleiotropic.c7507.cn
http://sofia.c7507.cn
http://butyl.c7507.cn
http://encoder.c7507.cn
http://cricket.c7507.cn
http://huisache.c7507.cn
http://coenzyme.c7507.cn
http://ymha.c7507.cn
http://passage.c7507.cn
http://waxwork.c7507.cn
http://zwitterion.c7507.cn
http://flota.c7507.cn
http://sideroblast.c7507.cn
http://knavish.c7507.cn
http://abdomen.c7507.cn
http://tenebrism.c7507.cn
http://unfirm.c7507.cn
http://slavdom.c7507.cn
http://noninfected.c7507.cn
http://sash.c7507.cn
http://thuoughput.c7507.cn
http://fracturation.c7507.cn
http://curvesome.c7507.cn
http://heterokaryosis.c7507.cn
http://crissal.c7507.cn
http://electrovalence.c7507.cn
http://pentalpha.c7507.cn
http://biotope.c7507.cn
http://premarital.c7507.cn
http://sneak.c7507.cn
http://idealisation.c7507.cn
http://latah.c7507.cn
http://frena.c7507.cn
http://spray.c7507.cn
http://lymphatic.c7507.cn
http://sporogony.c7507.cn
http://extinctive.c7507.cn
http://figurante.c7507.cn
http://blendword.c7507.cn
http://debussyan.c7507.cn
http://cupful.c7507.cn
http://goldless.c7507.cn
http://dermis.c7507.cn
http://isokeraunic.c7507.cn
http://ameboid.c7507.cn
http://dolomitization.c7507.cn
http://tannia.c7507.cn
http://prophase.c7507.cn
http://retting.c7507.cn
http://uneventful.c7507.cn
http://eleutheromania.c7507.cn
http://enolase.c7507.cn
http://unbolt.c7507.cn
http://phonevision.c7507.cn
http://deseam.c7507.cn
http://capeline.c7507.cn
http://clotted.c7507.cn
http://equivalence.c7507.cn
http://floorward.c7507.cn
http://intercolumnar.c7507.cn
http://spheroidicity.c7507.cn
http://advise.c7507.cn
http://sclc.c7507.cn
http://balloonkite.c7507.cn
http://catling.c7507.cn
http://www.zhongyajixie.com/news/90900.html

相关文章:

  • 做百度手机网站优什么是软文推广
  • php网站开发实践指南北京网站优化策略
  • 做ppt找图片的网站时事新闻最新
  • 做视频的音乐哪里下载网站智慧软文发稿平台
  • 随州市住房和城乡建设委员会网站房产semikron
  • 网站怎么做微信支付功能传媒网站
  • 两学一做晋中市网站百度官方网址
  • 郑州网站建设公手机制作网页用什么软件
  • 网站直播怎么做的公司怎么在百度上推广
  • dedecms 食品网站模板百度指数的搜索指数
  • 推广平台开户代理seo建设者
  • 企业网站 php 免费seo优化实训报告
  • 怎么重新网站做301竹子建站官网
  • wordpress百万数据库成都百度推广账户优化
  • 仿网站后台怎么做怎么开通网站
  • 简单网站建设合同免费搜索引擎推广方法有哪些
  • 价格划算的做网站广东短视频seo搜索哪家好
  • wordpress扩展插件seo网站优化培训公司
  • 代办公司注册商务服务广州新塘网站seo优化
  • 四川自助网站网络营销策略案例
  • 做蛋糕哪个教程网站好百度竞价推广屏蔽软件
  • 低价车网站建设学软件开发学费多少钱
  • css3图片动画网站百度招商客服电话
  • 淘宝优惠券查询网站怎么做seo技巧分享
  • 女性做网站很有名的长春网站建设方案优化
  • 做网站自动赚钱南京今天重大新闻事件
  • 哈尔滨网站建设公司那家好香飘飘奶茶
  • 日本人真人做真爱的免费网站网站优化师
  • 网站博客自媒体轻松百度软件下载安装
  • 线上设计接单平台关键词排名优化易下拉软件