linux系统报xfs_vm_releasepage警告问题的处理方法

  


  

  

最近的几台机器在同一天的不同时段都出现以下警告信息:

        3月26日20:55:03 host1内核:警告:在fs/xfs/xfs_aops。c: 1045 xfs_vm_releasepage + 0 xcb/0 x100 (xfs) ()   3月26日20:55:03 host1内核模块联系在一起:nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack nf_conntrack iptable_filter ip_tables ebtable_filter ebtables ip6table_   过滤器ip6_tables devlink桥stp llc xt_multiport sunrpc dm_mirror dm_region_hash dm_log dm_mod intel_powerclamp coretemp intel_rapl iosf_mbi kvm_intel kvm irqbypa   党卫军crc32_pclmul ghash_clmulni_intel aesni_intel lrw gf128mul glue_helper ablk_helper cryptd iTCO_wdt iTCO_vendor_support dcdbas ipmi_devintf ipmi_si sg pcspkr ipmi_msg   处理程序shpchp i2c_i801 lpc_ich nfit libnvdimm acpi_power_meter kgwttm (OE) xfs libcrc32c sd_mod crc_t10dif crct10dif_generic crct10dif_pclmul crct10dif_common crc32c_i   游戏内ntel mgag200 drm_kms_helper syscopyarea sysfillrect sysimgblt ptp fb_sys_fops ttm pps_core dca ahci drm i2c_algo_bit libahci megaraid_sas i2c_core libata   3月26日20:55:03 host1内核:fj[最后卸载:nf_defrag_ipv4]   3月26日20:55:03 host1内核:CPU: PID: 224通讯:kswapd0污染:G OE - - - - - - - - - - - - 3.10.0-514.21.2.el7。x86_64 # 1   3月26日20:55:03 host1内核:硬件名称:戴尔PowerEdge R640/0W23H8, BIOS 1.3.7 02/08/2018   3月26日20:55:03 host1内核:0000000000000000 00000000 e02a0d05 ffff88103c7ebaa0 ffffffff81687073   3月26日20:55:03 host1内核:ffff88103c7ebad8 ffffffff81085cb0 ffffea0000687620 ffffea0000687600   3月26日20:55:03 host1内核:ffff88004a71daf8 ffff88103c7ebda0 ffffea0000687600 ffff88103c7ebae8   3月26日20:55:03 host1内核调用跟踪:   3月26日20:55:03 host1内核:[& lt; ffffffff81687073>] dump_stack x19/0x1b + 0   3月26日20:55:03 host1内核:[& lt; ffffffff81085cb0>] warn_slowpath_common x70/0xb0 + 0   3月26日20:55:03 host1内核:[& lt; ffffffff81085dfa>] warn_slowpath_null + 0 x1a/0 x20   3月26日20:55:03 host1内核:[& lt; ffffffffa038bfdb>] xfs_vm_releasepage + 0 xcb/0 x100 (xfs)   3月26日20:55:03 host1内核:[& lt; ffffffff81180b22>] try_to_release_page x32/0x50 + 0   3月26日20:55:03 host1内核:[& lt; ffffffff81196ad6>] shrink_active_list x3d6/0x3e0 + 0   3月26日20:55:03 host1内核:[& lt; ffffffff81196ed1>] shrink_lruvec x3f1/0x770 + 0   3月26日20:55:03 host1内核:[& lt; ffffffff811972c6>] shrink_zone x76/0x1a0 + 0   3月26日20:55:03 host1内核:[& lt; ffffffff8119857c>] balance_pgdat + 0 x48c x5e0/0   3月26日20:55:03 host1内核:[& lt; ffffffff81198843>] kswapd x173/0x450 + 0   3月26日20:55:03 host1内核:[& lt; ffffffff810b1b20>] & # 63;wake_up_atomic_t + 0 x30/0x30   3月26日20:55:03 host1内核:[& lt; ffffffff811986d0>] & # 63;balance_pgdat + 0 x5e0/0x5e0   3月26日20:55:03 host1内核:[& lt; ffffffff810b0a4f>] kthread + 0 xcf xe0/0   3月26日20:55:03 host1内核:[& lt; ffffffff810b0980>] & # 63;kthread_create_on_node + 0 x140/0x140   3月26日20:55:03 host1内核:[& lt; ffffffff81697698>] ret_from_fork x58/0x90 + 0   3月26日20:55:03 host1内核:[& lt; ffffffff810b0980>] & # 63;kthread_create_on_node + 0 x140/0x140   3月26日20:55:03 host1内核:- - - - - -[结束跟踪24823 c5c7a1ea2be] - - - - - -      

这几台机器的内核及应用程序等崩溃信息由abrtd服务接管,可以通过abrt-cli查看概要信息:

        # abrt-cli列表——自1547518209   id 2181 dce8f72761585cb6a904dbff1806c1315c27   原因:警告:在fs/xfs/xfs_aops。c: 1045 xfs_vm_releasepage + 0 xcb/0 x100 (xfs) ()   时间:2019年3月23日坐下午08:30:45春秋国旅   cmdline: BOOT_IMAGE=/boot/vmlinuz-3.10.0-514.16.1.el7。x86_64根=/dev/sda1 ro crashkernel=汽车网。ifnames=0 biosdevname=0   包:内核   uid: 0(根)   数:1   目录:/var/spool/abrt/oops - 2019 - 03 - 23 - 20:30:45 - 163925 - 0      

内核版本如下:

  
  

Centos7
  Linux host1 3.10.0-514.21.2.el7。x86_64
  

     

  

<强>红帽知识库
  

  

参考红帽知识库文档,xfs的这类警告信息在xfs模块遍历代码路径的时候会打印该信息,不影响主机使用。可升级内核到内核- 3.10.0 - 693。el7版本避免该警告信息,详细参见:redhat -访问2893711

  
  

根源:   

消息信息,他们不会影响系统以消极的方式。他们看到因为XFS模块遍历XFS代码路径。
  

     

<强>代码分析
  

  

红帽知识库中并未提到内存回收的相关信息,不过从堆栈信息来看,像是因为内核回收内存而引起的,查看对应时间点的内存使用情况如下所示:

linux系统报xfs_vm_releasepage警告问题的处理方法