您尚未登录。

楼主 # 2023-10-13 15:50:46

zllfdd
会员
注册时间: 2022-06-25
已发帖子: 25
积分: 25

t113-s3 内存问题

什么应用都没有距,用free查看内存,只剩下25M,感觉捉襟见肘。
有没有方面能调整系统占用的内存?

free命令:

             total       used       free     shared    buffers     cached
Mem:        107104      81244      25860         76       3200      52968
-/+ buffers/cache:      25076      82028
Swap:            0          0          0

ps命令:

PID   USER     COMMAND
    1 root     init
    2 root     [kthreadd]
    3 root     [rcu_gp]
    4 root     [rcu_par_gp]
    7 root     [kworker/u4:0-ev]
    8 root     [mm_percpu_wq]
    9 root     [ksoftirqd/0]
   10 root     [rcu_preempt]
   11 root     [migration/0]
   12 root     [cpuhp/0]
   13 root     [cpuhp/1]
   14 root     [migration/1]
   15 root     [ksoftirqd/1]
   16 root     [kworker/1:0-eve]
   18 root     [kdevtmpfs]
   19 root     [kworker/u4:1-ev]
   21 root     [rcu_tasks_kthre]
   33 root     [kworker/0:1-eve]
  568 root     [oom_reaper]
  569 root     [writeback]
  603 root     [kblockd]
  744 root     [ion_system_heap]
  767 root     [watchdogd]
  862 root     [cfg80211]
  865 root     [kswapd0]
  971 root     [vsync proc 0]
  972 root     [vsync proc 1]
 1075 root     [uas]
 1118 root     [kworker/0:2-rcu]
 1141 root     [rc0]
 1164 root     [irq/38-mmc2]
 1169 root     [irq/39-mmc0]
 1213 root     [ipv6_addrconf]
 1221 root     [krfcommd]
 1224 root     [printk]
 1246 root     [irq/163-3-003d]
 1276 root     [goodix_wq]
 1289 root     [mmc_complete]
 1293 root     [kworker/1:1H-kb]
 1294 root     [kworker/0:1H-kb]
 1305 root     [kworker/1:2H]
 1306 root     [jbd2/mmcblk0p5-]
 1307 root     [ext4-rsv-conver]
 1313 root     [kworker/0:2H]
 1325 root     /sbin/syslogd -n
 1329 root     /sbin/klogd -n
 1347 root     dbus-daemon --system
 1371 root     [irq/172-usb_id]
 1376 root     /usr/sbin/dropbear -R
 1387 root     /usr/sbin/telnetd -F
 1393 root     /usr/sbin/tftpd -c -l -s /var/lib/tftpboot
 1439 root     -sh
 2465 root     [kworker/1:1-eve]
 2467 root     [kworker/1:2-eve]
 2468 root     ps

离线

#1 2023-10-13 17:05:02

Arm2048
会员
注册时间: 2023-10-12
已发帖子: 7
积分: 23

Re: t113-s3 内存问题

#! /bin/bash
echo "Clean buff/cache start..."
free -h
cd /proc/sys/vm
echo 1 > drop_caches
echo 2 > drop_caches
echo 3 > drop_caches
echo "Clean buff/cache end..."
free -h

离线

#2 2023-10-13 17:07:16

Arm2048
会员
注册时间: 2023-10-12
已发帖子: 7
积分: 23

Re: t113-s3 内存问题

试一下行不行?
请教您都运行啥了? 很好奇内置的128MB日常够不够用?

据说又出了S4,内置256MB;

离线

楼主 #3 2023-10-13 17:31:34

zllfdd
会员
注册时间: 2022-06-25
已发帖子: 25
积分: 25

Re: t113-s3 内存问题

Arm2048 说:

#! /bin/bash
echo "Clean buff/cache start..."
free -h
cd /proc/sys/vm
echo 1 > drop_caches
echo 2 > drop_caches
echo 3 > drop_caches
echo "Clean buff/cache end..."
free -h

非常感谢,现在可以是这样,

             total       used       free     shared    buffers     cached
Mem:        107104      30992      76112         76       1220       5640
-/+ buffers/cache:      24132      82972
Swap:            0          0          0

busybox的 free 命令输出格式和标准linux下的格式不太一样,把我搞晕了。
现在明白了,可用内存应该是free+cached 两者之和。

应用程序可以跑起来,我担心空闲内存太小会出现问题,现在看来应该没有问题。

最近编辑记录 zllfdd (2023-10-13 17:34:39)

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn