导航

    全志在线开发者论坛

    • 注册
    • 登录
    • 搜索
    • 版块
    • 话题
    • 在线文档
    • 社区主页

    求助:t113 网页文件上传报oom错误

    其它全志芯片讨论区
    2
    4
    2189
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • Q
      qqqlb LV 6 最后由 编辑

      网页上传文件的时候,当文件比较大的时候,会报oom错误。

      [  254.140450] interface invoked oom-killer: gfp_mask=0xcc0(GFP_KERNEL), order=0, oom_score_adj=0
      [  254.140546] CPU: 1 PID: 1600 Comm: interface Tainted: G           O      5.4.61 #3198
      [  254.140553] Hardware name: Generic DT based system
      [  254.140585] [<c010e2e4>] (unwind_backtrace) from [<c010a8f0>] (show_stack+0x10/0x14)
      [  254.140603] [<c010a8f0>] (show_stack) from [<c0788c9c>] (dump_stack+0x7c/0x98)
      [  254.140621] [<c0788c9c>] (dump_stack) from [<c01955c0>] (dump_header+0x68/0x240)
      [  254.140637] [<c01955c0>] (dump_header) from [<c01959fc>] (oom_kill_process+0x84/0x2b8)
      [  254.140653] [<c01959fc>] (oom_kill_process) from [<c01963c4>] (out_of_memory+0x328/0x380)
      [  254.140670] [<c01963c4>] (out_of_memory) from [<c01c4580>] (__alloc_pages_nodemask+0x768/0x8c4)
      [  254.140690] [<c01c4580>] (__alloc_pages_nodemask) from [<c01ceee8>] (slob_new_pages.constprop.5+0x14/0x68)
      [  254.140706] [<c01ceee8>] (slob_new_pages.constprop.5) from [<c01cf7a0>] (kmem_cache_alloc+0x9c/0xac)
      [  254.140723] [<c01cf7a0>] (kmem_cache_alloc) from [<c01e2660>] (getname_flags+0x20/0x12c)
      [  254.140740] [<c01e2660>] (getname_flags) from [<c01d3e34>] (do_sys_open+0x40/0x164)
      [  254.140755] [<c01d3e34>] (do_sys_open) from [<c0101000>] (ret_fast_syscall+0x0/0x54)
      [  254.140765] Exception stack(0xc4377fa8 to 0xc4377ff0)
      [  254.140778] 7fa0:                   00f7e788 00000000 ffffff9c 00f7e788 00000241 000001b6
      [  254.140791] 7fc0: 00f7e788 00000000 00000004 00000142 00000001 00000001 00000094 00118a0c
      [  254.140801] 7fe0: 00000142 beb5c520 b69cfda3 b695eb96
      [  254.140809] Mem-Info:
      [  254.140829] active_anon:13342 inactive_anon:4054 isolated_anon:0
      [  254.140829]  active_file:403 inactive_file:254 isolated_file:32
      [  254.140829]  unevictable:0 dirty:0 writeback:0 unstable:0
      [  254.140829]  slab_reclaimable:0 slab_unreclaimable:3402
      [  254.140829]  mapped:603 shmem:13933 pagetables:354 bounce:0
      [  254.140829]  free:3106 free_pcp:0 free_cma:2067
      [  254.140849] Node 0 active_anon:53368kB inactive_anon:16216kB active_file:1612kB inactive_file:1016kB unevictable:0kB isolated(anon):0kB isolated(file):128kB mapped:2412kB dirty:0kB writeback:0kB shmem:55732kB writeback_tmp:0kB unstable:0kB all_unreclaimable? no
      [  254.140871] Normal free:12424kB min:7168kB low:7936kB high:8704kB active_anon:53368kB inactive_anon:16216kB active_file:1352kB inactive_file:1200kB unevictable:0kB writepending:0kB present:131072kB managed:110396kB mlocked:0kB kernel_stack:1160kB pagetables:1416kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:8268kB
      [  254.140879] lowmem_reserve[]: 0 0
      [  254.140889] Normal: 298*4kB (UMC) 138*8kB (UMC) 71*16kB (UMC) 33*32kB (UMC) 17*64kB (UMC) 12*128kB (MC) 6*256kB (C) 4*512kB (C) 0*1024kB 1*2048kB (C) 0*4096kB = 12744kB
      [  254.140933] Free pages count per migrate typeat order:     0      1      2      3      4      5      6      7      8      9     10 
      [  254.140958] zone   Normal, type    Unmovable    167     92     37     16      5      0      0      0      0      0      0 
      [  254.141027] zone   Normal, type      Movable    130     36     17      6      4      1      0      0      0      0      0 
      [  254.141072] zone   Normal, type  Reclaimable      0      0      0      0      0      0      0      0      0      0      0 
      [  254.141096] zone   Normal, type          CMA      1     10     17     11      8     11      6      4      0      1      0 
      [  254.141129] zone   Normal, type   HighAtomic      0      0      0      0      0      0      0      0      0      0      0 
      [  254.141294] zone   Normal, type      Isolate      0      0      0      0      0      0      0      0      0      0      0 
      [  254.141371] 14607 total pagecache pages
      [  254.141388] 0 pages in swap cache
      [  254.141396] Swap cache stats: add 0, delete 0, find 0/0
      [  254.141408] Free swap  = 0kB
      [  254.141423] Total swap = 0kB
      [  254.141435] 32768 pages RAM
      [  254.141440] 0 pages HighMem/MovableOnly
      [  254.141447] 5169 pages reserved
      [  254.141458] 4096 pages cma reserved
      [  254.141472] Tasks state (memory values in pages):
      [  254.141482] [  pid  ]   uid  tgid total_vm      rss pgtables_bytes swapents oom_score_adj name
      [  254.141510] [   1068]     0  1068     2373       92    10240        0         -1000 udevd
      [  254.141524] [   1453]   998  1453      609       45    10240        0             0 dbus-daemon
      [  254.141536] [   1457]   997  1457      451       40    10240        0             0 rpcbind
      [  254.141548] [   1461]     0  1461      672       22    10240        0             0 syslogd
      [  254.141560] [   1464]     0  1464      672       33     8192        0             0 klogd
      [  254.141625] [   1493]     0  1493      672       23    10240        0             0 udhcpd
      [  254.141638] [   1495]     0  1495      967       74    10240        0         -1000 sshd
      [  254.141650] [   1500]     0  1500     7774      578    26624        0             0 httpd
      [  254.141662] [   1501]     0  1501      527       21    10240        0             0 rotatelogs
      [  254.141675] [   1502]     0  1502      440       18    10240        0             0 vsftpd
      [  254.141687] [   1504]     0  1504     7807      572    24576        0             0 httpd
      [  254.141699] [   1507]     0  1507     7807      572    24576        0             0 httpd
      [  254.141711] [   1509]     0  1509     7807      572    24576        0             0 httpd
      [  254.141725] [   1513]     0  1513      359       20     8192        0             0 hciattach
      [  254.141739] [   1550]     0  1550      919       71    10240        0             0 bluetoothd
      [  254.141752] [   1586]     0  1586      863      145     8192        0             0 nmbd
      [  254.141765] [   1592]     0  1592     1305      177    12288        0             0 smbd
      [  254.141778] [   1594]     0  1594     1305      177    12288        0             0 smbd
      [  254.141790] [   1595]     0  1595     5723       69    16384        0             0 btServer
      [  254.141803] [   1596]     0  1596      788       30    10240        0             0 interface_monit
      [  254.141814] [   1600]     0  1600     8374      324    32768        0             0 interface
      [  254.141826] [   1610]     0  1610      672       15    10240        0             0 getty
      [  254.141839] [   1642]     0  1642      768       22    10240        0             0 monitor
      [  254.141851] [   1653]     0  1653     3692      439    12288        0             0 oem_unicore
      [  254.141863] [   1688]     0  1688     1150       76    12288        0             0 hostapd
      [  254.141875] [   1692]     0  1692     5217       16    16384        0             0 gprs
      [  254.141888] [   1693]     0  1693     2877       43    10240        0             0 cmd
      [  254.141900] [   1729]     0  1729     5581      157    16384        0             0 imu2
      [  254.141912] [   1736]     0  1736      917       68    10240        0             0 uhf-combine
      [  254.141924] [   1751]     0  1751     7240       55    18432        0             0 rtcm_decode
      [  254.141936] [   1752]     0  1752      813       44    10240        0             0 serial2
      [  254.141948] [   1763]     0  1763      789       50    10240        0             0 hub
      [  254.141960] [   1764]     0  1764      823       44    10240        0             0 cmd
      [  254.141972] [   1766]     0  1766      813       69    10240        0             0 serial2
      [  254.141984] [   1775]     0  1775     2862       47    10240        0             0 server
      [  254.141996] [   1776]     0  1776      826       45    10240        0             0 cmd
      [  254.142008] [   1785]     0  1785     8932       28    18432        0             0 btNep
      [  254.142020] [   1811]     0  1811     7823      665    24576        0             0 httpd
      [  254.142032] [   1814]     0  1814     7807      573    24576        0             0 httpd
      [  254.142044] [   1886]     0  1886      967       86    10240        0             0 sshd
      [  254.142056] [   1893]     0  1893      672       28    10240        0             0 sh
      [  254.142069] [   1952]     0  1952     7807      570    24576        0             0 httpd
      [  254.142082] [   2221]     0  2221     7774      543    24576        0             0 httpd
      [  254.142094] [   2287]     0  2287     7774      543    24576        0             0 httpd
      [  254.142107] [   2293]     0  2293     7774      543    24576        0             0 httpd
      [  254.142119] [   2294]     0  2294     7774      543    24576        0             0 httpd
      [  254.142131] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),task=httpd,pid=1811,uid=0
      [  254.142171] Out of memory: Killed process 1811 (httpd) total-vm:31292kB, anon-rss:2560kB, file-rss:0kB, shmem-rss:100kB, UID:0 pgtables:24kB oom_score_adj:0
      root@rtkdev:~# 
      

      有哪位大佬遇到过吗?有什么解决的办法吗?

      1 条回复 最后回复 回复 引用 分享 0
      • YuzukiTsuru
        柚木 鉉 LV 9 最后由 YuzukiTsuru 编辑

        t113 网页文件上传记得分片存入存储,oom是内存用完了

        Q 1 条回复 最后回复 回复 引用 分享 0
        • Q
          qqqlb LV 6 @YuzukiTsuru 最后由 编辑

          @yuzukitsuru 谢谢大佬。还有个报错,知道是什么问题吗?🙏

          [ 1113.186039] kworker/u4:1: page allocation failure: order:0, mode:0xa20(GFP_ATOMIC), nodemask=(null)
          [ 1113.196258] CPU: 0 PID: 4001 Comm: kworker/u4:1 Tainted: G           O      5.4.61 #3572
          [ 1113.205250] Hardware name: Generic DT based system
          [ 1113.210699] Workqueue: brcmf_wq/mmc1:0001:1 brcmf_sdio_dataworker [brcmfmac]
          [ 1113.218558] [<c010e2e4>] (unwind_backtrace) from [<c010a8f0>] (show_stack+0x10/0x14)
          [ 1113.227172] [<c010a8f0>] (show_stack) from [<c0788c9c>] (dump_stack+0x7c/0x98)
          [ 1113.235208] [<c0788c9c>] (dump_stack) from [<c01c3d28>] (warn_alloc+0xa0/0x154)
          [ 1113.243340] [<c01c3d28>] (warn_alloc) from [<c01c41d4>] (__alloc_pages_nodemask+0x3bc/0x8c4)
          [ 1113.252727] [<c01c41d4>] (__alloc_pages_nodemask) from [<c01c4748>] (page_frag_alloc+0x4c/0x14c)
          [ 1113.262505] [<c01c4748>] (page_frag_alloc) from [<c05dbc5c>] (__netdev_alloc_skb+0x100/0x164)
          [ 1113.272011] [<c05dbc5c>] (__netdev_alloc_skb) from [<bf0005c8>] (brcmu_pkt_buf_get_skb+0x18/0x38 [brcmutil])
          [ 1113.283064] [<bf0005c8>] (brcmu_pkt_buf_get_skb [brcmutil]) from [<bf01df04>] (brcmf_sdio_dataworker+0x5a8/0x1b60 [brcmfmac])
          [ 1113.295733] [<bf01df04>] (brcmf_sdio_dataworker [brcmfmac]) from [<c012f4f4>] (process_one_work+0x16c/0x20c)
          [ 1113.306669] [<c012f4f4>] (process_one_work) from [<c012fb00>] (worker_thread+0x230/0x2d4)
          [ 1113.315768] [<c012fb00>] (worker_thread) from [<c013428c>] (kthread+0x114/0x11c)
          [ 1113.323995] [<c013428c>] (kthread) from [<c01010e8>] (ret_from_fork+0x14/0x2c)
          [ 1113.332022] Exception stack(0xc58a1fb0 to 0xc58a1ff8)
          [ 1113.337636] 1fa0:                                     00000000 00000000 00000000 00000000
          [ 1113.346729] 1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
          [ 1113.355820] 1fe0: 00000000 00000000 00000000 00000000 00000013 00000000
          [ 1113.363330] Mem-Info:
          [ 1113.365906] active_anon:4309 inactive_anon:131 isolated_anon:0
          [ 1113.365906]  active_file:6063 inactive_file:6124 isolated_file:0
          [ 1113.365906]  unevictable:0 dirty:1168 writeback:0 unstable:0
          [ 1113.365906]  slab_reclaimable:0 slab_unreclaimable:4622
          [ 1113.365906]  mapped:4266 shmem:178 pagetables:289 bounce:0
          [ 1113.365906]  free:3452 free_pcp:21 free_cma:1177
          [ 1113.402503] Node 0 active_anon:17236kB inactive_anon:524kB active_file:24252kB inactive_file:24496kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:17064kB dirty:4672kB writeback:0kB shmem:712kB writeback_tmp:0kB unstable:0kB all_unreclaimable? no
          [ 1113.428279] Normal free:13808kB min:1320kB low:1648kB high:1976kB active_anon:17236kB inactive_anon:524kB active_file:24252kB inactive_file:24536kB unevictable:0kB writepending:4672kB present:131072kB managed:110396kB mlocked:0kB kernel_stack:1096kB pagetables:1156kB bounce:0kB free_pcp:84kB local_pcp:24kB free_cma:4708kB
          [ 1113.460072] lowmem_reserve[]: 0 0
          [ 1113.463798] Normal: 367*4kB (UMC) 249*8kB (UMC) 148*16kB (UMC) 86*32kB (UMC) 11*64kB (MC) 8*128kB (UMC) 2*256kB (C) 0*512kB 1*1024kB (C) 1*2048kB (C) 0*4096kB = 13892kB
          [ 1113.480629] Free pages count per migrate typeat order:     0      1      2      3      4      5      6      7      8      9     10 
          [ 1113.493836] zone   Normal, type    Unmovable      1      3      1      4      0      1      0      0      0      0      0 
          [ 1113.506181] zone   Normal, type      Movable    363    245    140     73     10      2      0      0      0      0      0 
          [ 1113.518655] zone   Normal, type  Reclaimable      0      0      0      0      0      0      0      0      0      0      0 
          [ 1113.531018] zone   Normal, type          CMA      3      1      7      9      1      5      2      0      1      1      0 
          [ 1113.543378] zone   Normal, type   HighAtomic      0      0      0      0      0      0      0      0      0      0      0 
          [ 1113.555722] zone   Normal, type      Isolate      0      0      0      0      0      0      0      0      0      0      0 
          [ 1113.568071] 12377 total pagecache pages
          [ 1113.572385] 0 pages in swap cache
          [ 1113.576187] Swap cache stats: add 0, delete 0, find 0/0
          [ 1113.582053] Free swap  = 0kB
          [ 1113.585280] Total swap = 0kB
          [ 1113.588512] 32768 pages RAM
          [ 1113.591633] 0 pages HighMem/MovableOnly
          [ 1113.595932] 5169 pages reserved
          [ 1113.599445] 4096 pages cma reserved
          [ 1113.604562] brcmfmac: brcmf_sdio_rxglom: bcm_pkt_buf_get_skb failed, num 6 len 1532
          [ 1113.613613] brcmfmac: brcmf_sdio_hdparse: HW header length too long
          [ 1113.621467] brcmfmac: brcmf_sdio_rxfail: terminate frame
          
          YuzukiTsuru 1 条回复 最后回复 回复 引用 分享 0
          • YuzukiTsuru
            柚木 鉉 LV 9 @qinlinbin 最后由 编辑

            @qinlinbin 网卡的问题

            1 条回复 最后回复 回复 引用 分享 0
            • 1 / 1
            • First post
              Last post

            Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

            行为准则 | 用户协议 | 隐私权政策