Project

General

Profile

Actions

Bug #47661

closed

Cannot allocate memory appears when using io_uring osd

Added by Jiang Yu over 3 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

Source:
Community (user)
Tags:
Backport:
pacific, octopus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
ceph-ansible
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Hello everyone,
When I use ubuntu 20.04, try to use bluestore, and experiment with nvme io_uring, the problem of Cannot allocate memory appears.

Kernel version:
root@test:~# uname -a
Linux test 5.4.0-48-generic #52-Ubuntu SMP Thu Sep 10 10:58:49 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

ceph version 15.2.5

My steps are as follows:
1. clone ceph, Modify CMakeLists.txt
include(CMakeDependentOption)
CMAKE_DEPENDENT_OPTION(WITH_LIBURING "Build with liburing library support" ON
"WITH_BLUESTORE;HAVE_LIBAIO" OFF)
set(HAVE_LIBURING ${WITH_LIBURING})
2.Execute ./make-debs.sh
3.Use ceph-ansible 5.0 branch to deploy an osd ceph
4.Stop the ceph process, modify /etc/ceph.conf, bluestore_ioring = true
5.Restart the ceph service, and osd Cannot allocate memory appears.
Is my step wrong?

osd log:
2020-09-27T07:23:37.355+0000 7fb8fb328dc0 0 set uid:gid to 64045:64045 (ceph:ceph)
2020-09-27T07:23:37.355+0000 7fb8fb328dc0 0 ceph version 15.2.5-1-g4b2918df4b (4b2918df4b5f89cae6d6377ff9bdc4d95f87b9e9) octopus (stable), process ceph-osd, pid 731734
2020-09-27T07:23:37.355+0000 7fb8fb328dc0 0 pidfile_write: ignore empty --pid-file
2020-09-27T07:23:37.355+0000 7fb8fb328dc0 1 bdev create path /var/lib/ceph/osd/ceph-0/block type kernel
2020-09-27T07:23:37.387+0000 7fb8fb328dc0 1 bdev(0x563828664000 /var/lib/ceph/osd/ceph-0/block) open path /var/lib/ceph/osd/ceph-0/block
2020-09-27T07:23:37.387+0000 7fb8fb328dc0 -1 bdev(0x563828664000 /var/lib/ceph/osd/ceph-0/block) _aio_start io_setup(2) failed: (12) Cannot allocate memory
2020-09-27T07:23:37.387+0000 7fb8fb328dc0 0 starting osd.0 osd_data /var/lib/ceph/osd/ceph-0 /var/lib/ceph/osd/ceph-0/journal
2020-09-27T07:23:37.399+0000 7fb8fb328dc0 0 load: jerasure load: lrc load: isa
2020-09-27T07:23:37.399+0000 7fb8fb328dc0 1 bdev create path /var/lib/ceph/osd/ceph-0/block type kernel
2020-09-27T07:23:37.431+0000 7fb8fb328dc0 1 bdev(0x563828664000 /var/lib/ceph/osd/ceph-0/block) open path /var/lib/ceph/osd/ceph-0/block
2020-09-27T07:23:37.431+0000 7fb8fb328dc0 -1 bdev(0x563828664000 /var/lib/ceph/osd/ceph-0/block) _aio_start io_setup(2) failed: (12) Cannot allocate memory
2020-09-27T07:23:37.431+0000 7fb8fb328dc0 0 osd.0:0.OSDShard using op scheduler ClassedOpQueueScheduler(queue=WeightedPriorityQueue, cutoff=196)
2020-09-27T07:23:37.431+0000 7fb8fb328dc0 0 osd.0:1.OSDShard using op scheduler ClassedOpQueueScheduler(queue=WeightedPriorityQueue, cutoff=196)
2020-09-27T07:23:37.431+0000 7fb8fb328dc0 0 osd.0:2.OSDShard using op scheduler ClassedOpQueueScheduler(queue=WeightedPriorityQueue, cutoff=196)
2020-09-27T07:23:37.431+0000 7fb8fb328dc0 0 osd.0:3.OSDShard using op scheduler ClassedOpQueueScheduler(queue=WeightedPriorityQueue, cutoff=196)
2020-09-27T07:23:37.431+0000 7fb8fb328dc0 0 osd.0:4.OSDShard using op scheduler ClassedOpQueueScheduler(queue=WeightedPriorityQueue, cutoff=196)
2020-09-27T07:23:37.431+0000 7fb8fb328dc0 1 bluestore(/var/lib/ceph/osd/ceph-0) _mount path /var/lib/ceph/osd/ceph-0
2020-09-27T07:23:37.431+0000 7fb8fb328dc0 1 bdev create path /var/lib/ceph/osd/ceph-0/block type kernel
2020-09-27T07:23:37.459+0000 7fb8fb328dc0 1 bdev(0x563828664000 /var/lib/ceph/osd/ceph-0/block) open path /var/lib/ceph/osd/ceph-0/block
2020-09-27T07:23:37.459+0000 7fb8fb328dc0 -1 bdev(0x563828664000 /var/lib/ceph/osd/ceph-0/block) _aio_start io_setup(2) failed: (12) Cannot allocate memory
2020-09-27T07:23:37.459+0000 7fb8fb328dc0 -1 osd.0 0 OSD:init: unable to mount object store
2020-09-27T07:23:37.459+0000 7fb8fb328dc0 -1 ** ERROR: osd init failed: (12) Cannot allocate memory


Files

syslog (631 KB) syslog Jiang Yu, 09/27/2020 10:11 AM
ceph-osd.0.log (113 KB) ceph-osd.0.log Jiang Yu, 09/27/2020 10:11 AM

Related issues 3 (0 open3 closed)

Has duplicate Ceph - Bug #48872: KernelDevice.cc: 556: ceph_abort_msg("got unexpected error from io_getevents")Duplicate

Actions
Copied to bluestore - Backport #49038: pacific: Cannot allocate memory appears when using io_uring osdResolvedsinguliere _Actions
Copied to bluestore - Backport #49039: octopus: Cannot allocate memory appears when using io_uring osdResolvedActions
Actions

Also available in: Atom PDF