xfs
[Top] [All Lists]

XFS: possible memory allocation deadlock in kmem_alloc

To: xfs@xxxxxxxxxxx
Subject: XFS: possible memory allocation deadlock in kmem_alloc
From: baotiao <baotiao@xxxxxxxxx>
Date: Mon, 30 May 2016 12:45:07 +0800
Delivered-to: xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:subject:message-id:date:to:mime-version; bh=0QHIdaqF1kWFBLPhLeW1EWp9CxTYy1/NV1LtdiLzs/A=; b=IgYoCKDSsCJxkBm3DoFwAQb1znuMQ06A4HbD2bolG5IK0SzCY9gSMZeXVPX/R0//kT Geov+yWP1vmyTydDx1AN1E2nNRMd0QgFlUGT7n1Z5UzuYgiHqcn40K8sgVDvKnsE27de syEPaKwYpcke46Lf8YMdfyHZOqnlLRuBgDXftnDMS/WOXhes82iABbFjoZ30l7jTOERu l+70wG9QKs7a9tulT91E5+jYRt2q5yKnknqsg/Q5EhOCcg/4jtZWdm2vzhrn1oBDogLH jo1o3BFM2UnNGaQ5EwDPG+bKWsMhYSkr83nwgwYiCYHEyOxsEXe1cfQtQQsxbOGU10Nk yclw==
Hello. 

we have experience this problem many time, and we try many ways to solve this problem, but always failed.

such as sync && echo 3 > /proc/sys/vm/drop_caches to free more memory, however, after a while, the message come again.

the dmesg show:
May 30 12:35:51 w-openstack21 kernel: XFS: possible memory allocation deadlock in kmem_alloc (mode:0x250)
May 30 12:35:53 w-openstack21 kernel: XFS: possible memory allocation deadlock in kmem_alloc (mode:0x250)
May 30 12:35:55 w-openstack21 kernel: XFS: possible memory allocation deadlock in kmem_alloc (mode:0x250)
May 30 12:35:57 w-openstack21 kernel: XFS: possible memory allocation deadlock in kmem_alloc (mode:0x250)
May 30 12:35:59 w-openstack21 kernel: XFS: possible memory allocation deadlock in kmem_alloc (mode:0x250)

our kernel version is 3.10.0-327.4.5.el7.x86_64

we think this is the kernel memory fragmentation problem, when dmesg show the error message, we check the buddyinfo

[root@w-openstack21 /home/xusiliang]# cat /proc/buddyinfo
Node 0, zone      DMA      1      0      1      0      2      1      1      0      1      1      3
Node 0, zone    DMA32   2190   1898   1367    583    284     81     21      8      5      0      4
Node 0, zone   Normal  85195  90572  56688  32379  16793   5568    930    230    184     11      0
Node 1, zone   Normal  95799 127034  94363  49321  21555   5239    225      2      2      0      0

and I think the kernel have enough free memory
[root@w-openstack21 /home/xusiliang]# free -m
              total        used        free      shared  buff/cache   available
Mem:          64269       50357       11802          65        2109       11757
Swap:         32255         347       31908

This machine is running for qemu,  the file is qemu qcow file type

[root@w-openstack20 /data/nova/instances/7898b630-c4ef-49ab-9ce9-3735e090c282]# file disk
disk: QEMU QCOW Image (v3), has backing file (path /data/nova/instances/_base/3f27393376152ac352b2d85703011e38517e), 429496729600 bytes

we also use xfs_db to check the fragmentation

[root@w-openstack20 /home/xusiliang]# xfs_db -r /dev/mapper/VolGroup00-LogVol04
xfs_db> frag

actual 48421430, ideal 20716, fragmentation factor 99.96%


How can I solve this problem, what do you suggest me to do?

thank you

<Prev in Thread] Current Thread [Next in Thread>