80,492
社区成员
发帖
与我相关
我的任务
分享我从头说吧。(手机是红米k20pro 12+512G, 系统版本是miui12.5.6,root过的,以下这些操作都需要权限)
我在手机上装了smb服务端,在win10上访问,对几k的小文件,显示占用1M,而我手机里这个目录里有上千个这样的文件(知乎上搞的短文),windows上通常占用空间不是它实际的大小,这个跟磁盘分区时的最小块有关,安卓的分区多半是linux的分区格式,也是这个道理,于是我就想着看看手机上这个设置的多少,查找资料,用
tune2fs -l /dev/block/sda31 得到了,8192,大概是win10的文件浏览器看共享文件的问题,这个问题算是解决了,但是在tune2fs返回的信息里有这么一条:
Lifetime writes: 419 TB,
这个翻译过来就是ssd的写入量了,我手机是512g的容量,从拿到我最多都没放超过一半空间,怎么写入量会这么大,按照tlc通常1000上下的写入循环,这已经800多了,就觉得很不对劲,用
cat /sys/fs/ext4/sda31/lifetime_write_kbytes 得到相对准确的数字,
time2=$(date "%y%m/%d-%H:%M:%S")
lifetime=`su -c cat /sys/fs/ext4/sda31/lifetime_write_kbytes`
K=$(expr $lifetime % 1024)
lifetime=$(expr $lifetime / 1024)
M=$(expr $lifetime % 1024)
lifetime=$(expr $lifetime / 1024)
G=$(expr $lifetime % 1024)
T=$(expr $lifetime / 1024)
printf "Lifetime writes in %s: %dT %dG %dM %dK\n" "$time2" "$T" "$G" "$M" "$K"
得到易度的数字,结果就是这样了
Lifetime writes in 2026/07/28-16:51:36: 425T 899G 426M 810K
Lifetime writes in 2026/07/28-16:57:50: 425T 899G 611M 130K
Lifetime writes in 2026/07/28-16:58:59: 425T 899G 669M 434K
Lifetime writes in 2026/07/28-17:02:12: 425T 899G 828M 186K
Lifetime writes in 2026/07/28-17:59:00: 425T 902G 603M 722K
Lifetime writes in 2026/07/28-18:59:01: 425T 907G 497M 594K
Lifetime writes in 2026/07/28-19:59:01: 425T 913G 794M 554K
Lifetime writes in 2026/07/28-20:59:02: 425T 919G 663M 506K
Lifetime writes in 2026/07/28-21:59:03: 425T 924G 252M 362K
Lifetime writes in 2026/07/28-22:59:04: 425T 929G 21M 606K
Lifetime writes in 2026/07/28-23:59:05: 425T 934G 974M 226K
Lifetime writes in 2026/07/29-00:01:03: 425T 935G 131M 870K
Lifetime writes in 2026/07/29-01:01:04: 425T 940G 945M 642K
Lifetime writes in 2026/07/29-02:01:04: 425T 965G 204M 606K
Lifetime writes in 2026/07/29-03:01:05: 426T 209G 889M 958K
Lifetime writes in 2026/07/29-04:01:05: 426T 241G 918M 726K
Lifetime writes in 2026/07/29-05:01:06: 426T 278G 678M 10K
Lifetime writes in 2026/07/29-06:01:07: 426T 305G 966M 414K
Lifetime writes in 2026/07/29-07:01:07: 426T 309G 292M 1022K
Lifetime writes in 2026/07/29-08:01:08: 426T 369G 347M 486K
Lifetime writes in 2026/07/29-09:01:09: 426T 372G 627M 890K
Lifetime writes in 2026/07/29-10:01:09: 426T 376G 351M 594K
Lifetime writes in 2026/07/29-11:01:10: 426T 487G 974M 414K
Lifetime writes in 2026/07/29-12:01:10: 426T 490G 976M 450K
Lifetime writes in 2026/07/29-13:01:11: 426T 495G 256M 534K
Lifetime writes in 2026/07/29-14:01:12: 426T 500G 742M 318K
Lifetime writes in 2026/07/29-15:01:12: 426T 505G 933M 842K
Lifetime writes in 2026/07/29-16:01:13: 426T 511G 148M 270K
短短一天写入量竟然增加了500多G
上面是问题的产生,如题,想找到是哪个app干的,我怀疑是快手,因为在晚上2-3点这段时间我运行了快手极速版,但这只是怀疑,而且也不知道怎么查到他写入位置,我看了他的安装目录和数据目录,没有什么大文件,甚至当天生成的文件也没几个。
这问题我觉得有必要解决,甚至怀疑手机用几年就卡顿不行会不会跟这个有关,因为闪存颗粒临近寿命终点时也会产生写入速度明显下降。
先谢谢关注此问题的兄弟姐妹了
(如果发错了板块,麻烦管理员把它挪一下,没有找到合适的板块)