* [SPDK] How to create large capacity (1GB+) malloc disk
@ 2017-03-06 9:07 Wenhua Liu
0 siblings, 0 replies; 3+ messages in thread
From: Wenhua Liu @ 2017-03-06 9:07 UTC (permalink / raw
To: spdk
[-- Attachment #1: Type: text/plain, Size: 711 bytes --]
Hi,
Does anybody know to create large capacity (1GB+) mallock disk?
I’m running SPDK NVMF target in virtual controller mode. I tried to create 2 malloc disks(Malloc0 and Malloc1) with 2GB capacity but failed with the following message. I also tried 1GB and also failed.
blockdev_malloc.c: 396:create_malloc_disk: ***ERROR*** spdk_zmalloc failed
Once I changed to 512MB, it worked.
I’m running SPDK in a Ubuntu 16.04 system with 12GB memory.
[Malloc]
NumberOfLuns 2
LunSizeInMB 2048
[Subsystem2]
NQN nqn.2016-06.io.spdk:cnode2
Core 0
Mode Virtual
Listen RDMA 12.12.12.100:4420
SN SPDK00000000000001
Namespace Malloc0
Namespace Malloc1
Thanks,
-Wenhua
[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 4433 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [SPDK] How to create large capacity (1GB+) malloc disk
@ 2017-03-06 9:28 Liu, Changpeng
0 siblings, 0 replies; 3+ messages in thread
From: Liu, Changpeng @ 2017-03-06 9:28 UTC (permalink / raw
To: spdk
[-- Attachment #1: Type: text/plain, Size: 1199 bytes --]
Hi Wenhua,
First you should make sure your system has enough 2MB huge pages:
e.g.: echo 8192 >/proc/sys/vm/nr_hugepages
then you can try start the nvmf application with parameter –s 4096, which means 4GB memory for the application.
From: SPDK [mailto:spdk-bounces(a)lists.01.org] On Behalf Of Wenhua Liu
Sent: Monday, March 6, 2017 5:07 PM
To: Storage Performance Development Kit <spdk(a)lists.01.org>
Subject: [SPDK] How to create large capacity (1GB+) malloc disk
Hi,
Does anybody know to create large capacity (1GB+) mallock disk?
I’m running SPDK NVMF target in virtual controller mode. I tried to create 2 malloc disks(Malloc0 and Malloc1) with 2GB capacity but failed with the following message. I also tried 1GB and also failed.
blockdev_malloc.c: 396:create_malloc_disk: ***ERROR*** spdk_zmalloc failed
Once I changed to 512MB, it worked.
I’m running SPDK in a Ubuntu 16.04 system with 12GB memory.
[Malloc]
NumberOfLuns 2
LunSizeInMB 2048
[Subsystem2]
NQN nqn.2016-06.io.spdk:cnode2
Core 0
Mode Virtual
Listen RDMA 12.12.12.100:4420
SN SPDK00000000000001
Namespace Malloc0
Namespace Malloc1
Thanks,
-Wenhua
[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 45240 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [SPDK] How to create large capacity (1GB+) malloc disk
@ 2017-03-06 16:48 Wenhua Liu
0 siblings, 0 replies; 3+ messages in thread
From: Wenhua Liu @ 2017-03-06 16:48 UTC (permalink / raw
To: spdk
[-- Attachment #1: Type: text/plain, Size: 1623 bytes --]
Hi Changpeng,
Thanks for the information. This works.
Regards,
-Wenhua
From: SPDK <spdk-bounces(a)lists.01.org> on behalf of "Liu, Changpeng" <changpeng.liu(a)intel.com>
Reply-To: Storage Performance Development Kit <spdk(a)lists.01.org>
Date: Monday, March 6, 2017 at 1:28 AM
To: Storage Performance Development Kit <spdk(a)lists.01.org>
Subject: Re: [SPDK] How to create large capacity (1GB+) malloc disk
Hi Wenhua,
First you should make sure your system has enough 2MB huge pages:
e.g.: echo 8192 >/proc/sys/vm/nr_hugepages
then you can try start the nvmf application with parameter –s 4096, which means 4GB memory for the application.
From: SPDK [mailto:spdk-bounces(a)lists.01.org] On Behalf Of Wenhua Liu
Sent: Monday, March 6, 2017 5:07 PM
To: Storage Performance Development Kit <spdk(a)lists.01.org>
Subject: [SPDK] How to create large capacity (1GB+) malloc disk
Hi,
Does anybody know to create large capacity (1GB+) mallock disk?
I’m running SPDK NVMF target in virtual controller mode. I tried to create 2 malloc disks(Malloc0 and Malloc1) with 2GB capacity but failed with the following message. I also tried 1GB and also failed.
blockdev_malloc.c: 396:create_malloc_disk: ***ERROR*** spdk_zmalloc failed
Once I changed to 512MB, it worked.
I’m running SPDK in a Ubuntu 16.04 system with 12GB memory.
[Malloc]
NumberOfLuns 2
LunSizeInMB 2048
[Subsystem2]
NQN nqn.2016-06.io.spdk:cnode2
Core 0
Mode Virtual
Listen RDMA 12.12.12.100:4420
SN SPDK00000000000001
Namespace Malloc0
Namespace Malloc1
Thanks,
-Wenhua
[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 7810 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-03-06 16:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-06 9:28 [SPDK] How to create large capacity (1GB+) malloc disk Liu, Changpeng
-- strict thread matches above, loose matches on Subject: below --
2017-03-06 16:48 Wenhua Liu
2017-03-06 9:07 Wenhua Liu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.