From: Eric Sandeen <sandeen@sandeen.net>
To: "Darrick J. Wong" <darrick.wong@oracle.com>,
Chris Holcombe <cholcombe@box.com>
Cc: linux-xfs@vger.kernel.org
Subject: Re: XFS: possible memory allocation deadlock in kmem_alloc
Date: Mon, 4 Nov 2019 18:31:21 -0600 [thread overview]
Message-ID: <c677bc5b-aa27-5f9b-65bd-5f03e4c06d7b@sandeen.net> (raw)
In-Reply-To: <20191105000138.GT4153244@magnolia>
On 11/4/19 6:01 PM, Darrick J. Wong wrote:
> On Mon, Nov 04, 2019 at 03:38:12PM -0800, Chris Holcombe wrote:
>> After upgrading from scientific linux 6 -> centos 7 i'm starting to
>> see a sharp uptick in dmesg lines about xfs having a possible memory
>> allocation deadlock. All the searching I did through previous mailing
>> list archives and blog posts show all pointing to large files having
>> too many extents.
>> I don't think that is the case with these servers so I'm reaching out
>> in the hopes of getting an answer to what is going on. The largest
>> file sizes I can find on the servers are roughly 15GB with maybe 9
>> extents total. The vast majority small with only a few extents.
>> I've setup a cron job to drop the cache every 5 minutes which is
>> helping but not eliminating the problem. These servers are dedicated
>> to storing data that is written through nginx webdav. AFAIK nginx
>> webdav put does not use sparse files.
>>
>> Some info about the servers this issue is occurring on:
>>
>> nginx is writing to 82TB filesystems:
>> xfs_info /dev/sdb1
>> meta-data=/dev/sdb1 isize=512 agcount=82, agsize=268435424 blks
>> = sectsz=4096 attr=2, projid32bit=1
>> = crc=1 finobt=0 spinodes=0
>> data = bsize=4096 blocks=21973302784, imaxpct=1
>> = sunit=16 swidth=144 blks
>> naming =version 2 bsize=65536 ascii-ci=0 ftype=1
>> log =internal bsize=4096 blocks=521728, version=2
>> = sectsz=4096 sunit=1 blks, lazy-count=1
>> realtime =none extsz=4096 blocks=0, rtextents=0
>>
>> xfs_db -r /dev/sdb1
>> xfs_db> frag
>> actual 6565, ideal 5996, fragmentation factor 8.67%
>> Note, this number is largely meaningless.
>> Files on this filesystem average 1.09 extents per file
>>
>> I see dmesg lines with various size numbers in the line:
>> [6262080.803537] XFS: nginx(2514) possible memory allocation deadlock
>> size 50184 in kmem_alloc (mode:0x250)
>
> Full kernel logs, please. There's not enough info here to tell what's
> trying to grab a 50K memory buffer.
a kernel uname -a would be groovy too so we have some idea what you're running.
-Eric
> --D
>
next prev parent reply other threads:[~2019-11-05 0:31 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-04 23:38 XFS: possible memory allocation deadlock in kmem_alloc Chris Holcombe
2019-11-05 0:01 ` Darrick J. Wong
2019-11-05 0:31 ` Eric Sandeen [this message]
[not found] ` <CAC752AmahECFry9x=pvqDkwQUj1PEJjoWGa2KFG1uaTzT1Bbnw@mail.gmail.com>
2019-11-05 4:21 ` Eric Sandeen
2019-11-05 16:25 ` Chris Holcombe
2019-11-05 17:11 ` Eric Sandeen
2019-11-05 19:53 ` Chris Holcombe
2019-11-05 20:08 ` Eric Sandeen
[not found] ` <CAC752AnZ4biDGk6V17URQm5YVp=MwZBhiMH8=t733zaypxUsmA@mail.gmail.com>
2019-11-05 20:47 ` Eric Sandeen
[not found] ` <CAC752A=y9PMEQ1e4mXskha1GFeKXWi8PsdBW-nX40pgFCYp1Uw@mail.gmail.com>
2019-11-05 21:23 ` Eric Sandeen
-- strict thread matches above, loose matches on Subject: below --
2016-05-30 4:45 baotiao
2016-05-30 5:04 ` Dave Chinner
2016-05-30 8:48 ` baotiao
2016-05-30 9:20 ` Carlos Maiolino
2016-05-31 2:43 ` 陈宗志
2016-05-31 3:10 ` Dave Chinner
2016-05-31 11:00 ` 陈宗志
2016-05-31 12:14 ` Carlos Maiolino
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c677bc5b-aa27-5f9b-65bd-5f03e4c06d7b@sandeen.net \
--to=sandeen@sandeen.net \
--cc=cholcombe@box.com \
--cc=darrick.wong@oracle.com \
--cc=linux-xfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).