主题 : NanoPi-NEO Out of memory 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 134979
精华: 0
发帖: 3
金钱: 15 两
威望: 3 点
贡献值: 0 点
综合积分: 6 分
注册时间: 2017-10-10
最后登录: 2017-10-12
楼主  发表于: 2017-10-10 19:42

 NanoPi-NEO Out of memory

开发板:     NanoPi-NEO v1.31
TFCard:    SanDisk 16G c10 卡 (烧写系统能正常进去)
OS:           nanopi-neo_ubuntu-core-xenial_3.4.39_20170908.img

现象:         进入到系统之后,sudo apt-get update 时, 出现 Out of menory 现象.


开机:
复制代码
  1. Ubuntu 16.04.2 LTS NanoPi-NEO ttyS0
  2. Default Login:
  3. Username = pi
  4. Password = pi
  5. NanoPi-NEO login: pi (automatic login)
  6. Last login: Thu Mar 23 04:22:08 UTC 2017 on tty1
  7. _____     _                _ _       _____ _     _____ ____
  8. |  ___| __(_) ___ _ __   __| | |_   _| ____| |   | ____/ ___|
  9. | |_ | '__| |/ _ \ '_ \ / _` | | | | |  _| | |   |  _|| |    
  10. |  _|| |  | |  __/ | | | (_| | | |_| | |___| |___| |__| |___
  11. |_|  |_|  |_|\___|_| |_|\__,_|_|\__, |_____|_____|_____\____|
  12.                                 |___/                        
  13. Welcome to Ubuntu 16.04.2 LTS 3.4.39-h3
  14. System load:   2.18             Up time:       53 sec
  15. Memory usage:  15 % of 241Mb    IP:            
  16. CPU temp:      53°C          
  17. Usage of /:    10% of 15G    
  18. * Documentation: http://wiki.friendlyarm.com/
  19. * Forum: http://www.friendlyarm.com/Forum/
  20. pi@NanoPi-NEO:~$
  21. pi@NanoPi-NEO:~$


正常连接到wifi
复制代码
  1. root@NanoPi-NEO:/home/pi# nmcli dev wifi
  2. *  SSID                    MODE   CHAN  RATE       SIGNAL  BARS  SECURITY  
  3.    Caiii                   Infra  6     54 Mbit/s  100     ▂▄▆█  WPA2      
  4.    share3                  Infra  13    54 Mbit/s  82      ▂▄▆█  WPA1 WPA2
  5.    share                   Infra  1     54 Mbit/s  72      ▂▄▆_  WPA1 WPA2
  6.    pzb                     Infra  11    54 Mbit/s  62      ▂▄▆_  WPA1 WPA2
  7.    --                      Infra  1     54 Mbit/s  49      ▂▄__            
  8.    DIRECT-n1-魅蓝 note 22  Infra  11    54 Mbit/s  49      ▂▄__  WPA2      
  9.    hy                      Infra  1     54 Mbit/s  45      ▂▄__  WPA1 WPA2
  10.    share2                  Infra  11    54 Mbit/s  39      ▂▄__  WPA1 WPA2


update失败
复制代码
  1. root@NanoPi-NEO:/home/pi# apt-get update
  2. Hit:1 http://ports.ubuntu.com xenial InRelease    
  3. 0% [Waiting for headers][  396.002335] Out of memory: Kill process 1261 (apt-get) score 105 or sacrifice child
  4. [  396.011068] Killed process 1261 (apt-get) total-vm:39788kB, anon-rss:31584kB, file-rss:1832kB
  5. Get:2 http://ports.ubuntu.com xenial-security InRelease [102 kB]
  6. Get:3 http://ports.ubuntu.com xenial-updates InRelease [102 kB]
  7. Get:4 http://ports.ubuntu.com xenial-backports InRelease [102 kB]              
  8. Get:5 http://ports.ubuntu.com xenial-security/main armhf Packages [298 kB]    
  9. Get:6 http://ports.ubuntu.com xenial-security/main Translation-en [159 kB]    
  10. Get:7 http://ports.ubuntu.com xenial-security/restricted armhf Packages [4,680 B]
  11. Get:8 http://ports.ubuntu.com xenial-security/restricted Translation-en [2,432 B]
  12. Get:9 http://ports.ubuntu.com xenial-security/universe armhf Packages [162 kB]
  13. Get:10 http://ports.ubuntu.com xenial-security/universe Translation-en [89.9 kB]
  14. Get:11 http://ports.ubuntu.com xenial-security/multiverse armhf Packages [1,444 B]
  15. Get:12 http://ports.ubuntu.com xenial-updates/main armhf Packages [560 kB]    
  16. Get:13 http://ports.ubuntu.com xenial-updates/main Translation-en [267 kB]    
  17. Get:14 http://ports.ubuntu.com xenial-updates/restricted armhf Packages [4,712 B]
  18. Get:15 http://ports.ubuntu.com xenial-updates/restricted Translation-en [2,692 B]
  19. Get:16 http://ports.ubuntu.com xenial-updates/universe armhf Packages [481 kB]
  20. Get:17 http://ports.ubuntu.com xenial-updates/universe Translation-en [218 kB]
  21. Get:18 http://ports.ubuntu.com xenial-updates/multiverse armhf Packages [11.1 kB]
  22. Get:19 http://ports.ubuntu.com xenial-updates/multiverse Translation-en [7,544 B]
  23. Get:20 http://ports.ubuntu.com xenial-backports/main armhf Packages [4,852 B]  
  24. Get:21 http://ports.ubuntu.com xenial-backports/main Translation-en [3,220 B]  
  25. Get:22 http://ports.ubuntu.com xenial-backports/universe armhf Packages [5,896 B]
  26. Get:23 http://ports.ubuntu.com xenial-backports/universe Translation-en [3,060 B]
  27. Fetched 2,593 kB in 1min 12s (35.7 kB/s)    
  28. [  470.507207] Out of memory: Kill process 1237 (apt-get) score 112 or sacrifice child
  29. [  470.515997] Killed process 1237 (apt-get) total-vm:41528kB, anon-rss:33728kB, file-rss:1324kB
  30. Killed
  31. root@NanoPi-NEO:/home/pi# df -h
  32. Filesystem      Size  Used Avail Use% Mounted on
  33. udev             40M     0   40M   0% /dev
  34. tmpfs            25M  2.8M   22M  12% /run
  35. /dev/mmcblk0p2   15G  1.4G   14G  10% /
  36. tmpfs           121M     0  121M   0% /dev/shm
  37. tmpfs           5.0M  4.0K  5.0M   1% /run/lock
  38. tmpfs           121M     0  121M   0% /sys/fs/cgroup
  39. /dev/mmcblk0p1   40M   15M   26M  37% /boot
  40. tmpfs            25M     0   25M   0% /run/user/1000
  41. root@NanoPi-NEO:/home/pi#
  42. root@NanoPi-NEO:/home/pi#
  43. root@NanoPi-NEO:/home/pi# free
  44.               total        used        free      shared  buff/cache   available
  45. Mem:         246992       40012      162716        2812       44264      159088
  46. Swap:             0           0           0
  47. root@NanoPi-NEO:/home/pi# free -h
  48.               total        used        free      shared  buff/cache   available
  49. Mem:           241M         38M        158M        2.7M         43M        155M
  50. Swap:            0B          0B          0B
[ 此帖被jkzxc在2017-10-10 19:50重新编辑 ]