2017-10-01 21:40:56
[  176.700091] vif: Could not allocate 40960 bytes percpu data
[  263.762812] percpu: allocation failed, size=16384 align=32 atomic=0, alloc from reserved chunk failed
[  263.762829] CPU: 0 PID: 717 Comm: insmod Tainted: P        W  O    4.9.51-1300 #69
[  263.762831] Hardware name: VMware, Inc. VMware Virtual Platform/440BX Desktop Reference Platform, BIOS 6.00 07/31/2013
[  263.762836]  0000000000000000 ffffffffad22516b ffff9cb3bb410d98 ffff9cb3bb7fe640
[  263.762843]  ffffffffad737c20 ffffffffad106b11 ffff9cb337532e18 00000000000007f8
[  263.762848]  0000000000000246 0000000000000020 ffffb3b540fdf2c8 ffffb3b540f99880
[  263.762853] Call Trace:
[  263.762888]  [<ffffffffad22516b>] ? dump_stack+0x47/0x5c
[  263.762899]  [<ffffffffad106b11>] ? pcpu_alloc+0x581/0x600
[  263.762907]  [<ffffffffad03a608>] ? module_alloc+0x78/0xc0
[  263.762913]  [<ffffffffad0acfd7>] ? load_module+0xb17/0x20c0
[  263.762918]  [<ffffffffad11b714>] ? map_vm_area+0x34/0x50
[  263.762923]  [<ffffffffad11c189>] ? __vmalloc_node_range+0x149/0x210
[  263.762926]  [<ffffffffad0ae63d>] ? SyS_init_module+0xbd/0x140
[  263.762929]  [<ffffffffad0ae6a6>] ? SyS_init_module+0x126/0x140
[  263.762943]  [<ffffffffad589ae0>] ? entry_SYSCALL_64_fastpath+0x13/0x94
[  263.762947] vif: Could not allocate 16384 bytes percpu data
~ #
http://www.360doc.com/content/15/0916/18/97538_499571595.shtml

ko中如何有如下:
DEFINE_PER_CPU(int[0x1000], my_per_cpu);
则报如上:oops
改为:
static PER_CPU(int[0x1000], my_per_cpu);
则不在报

另:

[  741.983460] percpu: allocation failed, size=8216 align=32 atomic=0, alloc from reserved chunk failed
[  741.983463] CPU: 0 PID: 958 Comm: insmod Tainted: P        W  O    4.9.51-1300 #162
[  741.983464] Hardware name: VMware, Inc. VMware Virtual Platform/440BX Desktop Reference Platform, BIOS 6.00 07/31/2013
[  741.983466]  0000000000000000 ffffffffb122516b ffff96fa5d810d98 ffff96fa5dbfe700
[  741.983468]  ffffffffb1737c68 ffffffffb1106b11 000000005a03b9e0 00000000000005d0
[  741.983469]  0000000000000246 0000000000000020 ffffb541c10fd1a0 ffffb541c10af200
[  741.983470] Call Trace:
[  741.983478]  [<ffffffffb122516b>] ? dump_stpcpu_allocack+0x47/0x5c
[  741.983482]  [<ffffffffb1106b11>] ? +0x581/0x600
[  741.983485]  [<ffffffffb103a608>] ? module_alloc+0x78/0xc0
[  741.983487]  [<ffffffffb10acfd7>] ? load_module+0xb17/0x20c0
[  741.983488]  [<ffffffffb111b714>] ? map_vm_area+0x34/0x50
[  741.983490]  [<ffffffffb111c189>] ? __vmalloc_node_range+0x149/0x210
[  741.983490]  [<ffffffffb10ae63d>] ? SyS_init_module+0xbd/0x140
[  741.983491]  [<ffffffffb10ae6a6>] ? SyS_init_module+0x126/0x140
[  741.983495]  [<ffffffffb1589ba0>] ? entry_SYSCALL_64_fastpath+0x13/0x94
[  741.983496] percpu: Could not allocate 8216 bytes percpu data
~ #

2017-11-9 17:50:04

[    0.000000] setup_percpu: NR_CPUS:64 nr_cpumask_bits:64 nr_cpu_ids:8 nr_node_ids:1
[    0.000000] percpu: Embedded 32 pages/cpu @ffff9909bfa00000 s92696 r8192 d30184 u262144
[    0.000000] pcpu-alloc: s92696 r8192 d30184 u262144 alloc=1*2097152        
[    0.000000] pcpu-alloc: [0] 0 1 2 3 4 5 6 7

解法:

修改linux/percpu.h

原:#define PERCPU_MODULE_RESERVE        (8 << 10)

现:#define PERCPU_MODULE_RESERVE        (16 << 10)

Could not allocate 40960 bytes percpu data的更多相关文章

  1. [未解决:快速滑动collectionveiw请求数据崩溃]:unable to allocate 6553600 bytes for bitmap data

    崩溃:unable to allocate 6553600 bytes for bitmap data

  2. Permanent data region free space insufficient to allocate 64792 bytes of memory

    TT0802: Database permanent space exhaustedTT6220: Permanent data region free space insufficient to a ...

  3. linux 下tomcat出现 Native memory allocation (malloc) failed to allocate 1915224064 bytes for committing reserved memory问题

    ## There is insufficient memory for the Java Runtime Environment to continue.# Native memory allocat ...

  4. Fatal error: Allowed memory size of 524288000 bytes exhausted (tried to allocate 64 bytes) in D

    Fatal error: Allowed memory size of 524288000 bytes exhausted (tried to allocate 64 bytes) in D 从数据库 ...

  5. PHP运行错最有效解决办法Fatal error: Out of memory (allocated 786432) (tried to allocate 98304 bytes) in H:\freehost\zhengbao2\web\includes\lib_common.php on line 744

    原文 PHP运行错最有效解决办法Fatal error: Out of memory (allocated 6029312) Fatal error: Out of memory (allocated ...

  6. (转载)PHP的内存限制 Allowed memory size of 134217728 bytes exhausted (tried to allocate 1099 bytes) in

    (转载)http://blog.csdn.net/beyondlpf/article/details/7794028 Fatal error: Allowed memory size of 13421 ...

  7. ORA-04030: out of process memory when trying to allocate 152 bytes (Logminer LCR c,krvtadc)

    今天使用LogMiner找回误更新的数据时,查询v$logmnr_contents时,遇到了"ORA-04030: out of process memory when trying to ...

  8. PHP的内存限制 Allowed memory size of 134217728 bytes exhausted (tried to allocate 1099 bytes) in

    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 1099 bytes) in   Fa ...

  9. Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2611816 bytes)

    一段PHP程序执行报错: Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 261181 ...

随机推荐

  1. tomcat8.5之后版本,远程无法登录管理页面

    转载自http://jingyan.baidu.com/article/1612d500b56fa1e20e1eeed2.html 服务器采用的是linux系统. 安装tomcat在服务器上后,客户端 ...

  2. topcoder srm 335 div1

    problem1 link 直接模拟即可. import java.util.*; import java.math.*; import static java.lang.Math.*; public ...

  3. UML(统一建模语言)是通用的可视化标准建模语言。由构造块、公共机制、构架三部分组成。

    UML UML(统一建模语言)是通用的可视化标准建模语言.由构造块.公共机制.构架三部分组成. 1.构造块:包括基本的UML建模元素(类.接口.用例等).关系(关联关系.依赖关系.泛化关系.实现关系) ...

  4. # bzoj2215: [Poi2011]Conspiracy 2-sat

    bzoj2215: [Poi2011]Conspiracy 2-sat 链接 https://www.lydsy.com/JudgeOnline/problem.php?id=2215 思路 一个点的 ...

  5. luogu P5105 不强制在线的动态快速排序

    前言 考试的时候居然想错了区间贡献,mdzz 思路 题目看着很方啊,难道要树套树? 但数据范围提醒我们,是nlogn的复杂度 Sort(S)的定义是不是很鬼畜 但我们不动脑子的打表容易发现 连续区间[ ...

  6. ZOJ 4027 Sequence Swapping(DP)题解

    题意:一串括号,每个括号代表一个值,当有相邻括号组成()时,可以交换他们两个并得到他们值的乘积,问你最大能得到多少 思路:DP题,注定想得掉头发. 显然一个左括号( 的最远交换距离由他右边的左括号的最 ...

  7. c# 之 Microsoft.Practices.EnterpriseLibrary连接Oracle

    首先下载Microsoft Enterprise Library 5.0:http://www.microsoft.com/en-us/download/details.aspx?id=15104,这 ...

  8. HDU 5649 DZY Loves Sorting(二分答案+线段树/线段树合并+线段树分割)

    题意 一个 \(1\) 到 \(n\) 的全排列,\(m\) 种操作,每次将一段区间 \([l,r]\) 按升序或降序排列,求 \(m\) 次操作后的第 \(k\) 位. \(1 \leq n \le ...

  9. Derek解读Bytom源码-protobuf生成比原核心代码

    作者:Derek 简介 Github地址:https://github.com/Bytom/bytom Gitee地址:https://gitee.com/BytomBlockchain/bytom ...

  10. EPPlus实战篇——Excel读取

    .net core 项目 可以从excel读取任何类型(T)的数据,只要T中的field的[Display(Name = "1233")]中的name==excel column ...