pmem / redis

Redis adapted to use Persistent Memory
http://pmem.io
BSD 3-Clause "New" or "Revised" License
57 stars 33 forks source link

Issue when using only PMEMs #212

Closed adam-abed-abud closed 4 years ago

adam-abed-abud commented 4 years ago

Hi!

I'm trying to use only the PMEMs but when I change the configuration file (redis.conf) to "only-pmem" at line 1788 I get the following error. Have you encountered this issue before?

I built the project on a centos 8 machine using the memkind allocator.

Thanks Adam

=== REDIS BUG REPORT START: Cut & paste starting from here === 191495:M 16 Jul 2020 11:38:21.300 # Redis 5.9.102 crashed by signal: 11 191495:M 16 Jul 2020 11:38:21.300 # Crashed running the instruction at: 0x7ff622b8cb1d 191495:M 16 Jul 2020 11:38:21.300 # Accessing address: (nil) 191495:M 16 Jul 2020 11:38:21.300 # Failed assertion: (:0)

------ STACK TRACE ------ EIP: /lib64/libc.so.6(vsnprintf+0x7d)[0x7ff622b8cb1d]

Backtrace: ./redis-server 127.0.0.1:6379(logStackTrace+0x2e)[0x46e93e] ./redis-server 127.0.0.1:6379(sigsegvHandler+0x96)[0x46efb6] /lib64/libpthread.so.0(+0x12dd0)[0x7ff622ee7dd0] /lib64/libc.so.6(vsnprintf+0x7d)[0x7ff622b8cb1d] /lib64/libc.so.6(snprintf+0x93)[0x7ff622b6c2e3] ./redis-server 127.0.0.1:6379(redisAsciiArt+0xc9)[0x431ac9] ./redis-server 127.0.0.1:6379(main+0x3c6)[0x4254f6] /lib64/libc.so.6(libc_start_main+0xf3)[0x7ff622b366a3] ./redis-server 127.0.0.1:6379(_start+0x2e)[0x42583e]

------ INFO OUTPUT ------ Segmentation fault (core dumped)

michalbiesek commented 4 years ago

Hi,

Could you share your NUMA configuration - an output from command numactl --hardware? Do you have configured PMEM NUMA node correctly? See https://pmem.io/2020/01/20/memkind-dax-kmem.html for details. Do you have installed memkind which supports automatic detection of PMEM NUMA node? Before building and installing libmemkind from sources, please ensure that you have libdaxctl-devel (v66 or later) installed on your machine.

You could quickly test Redis you build to ensure your machine is configured correctly with:

Best Regards Michal

adam-abed-abud commented 4 years ago

Hi Michal,

Indeed by configuring the PMEM NUMA node, it worked fine!

Thanks a lot.

Cheers, Adam