<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: is_pmem returns 0 from pmem_map_file in Intel® Optane™ Persistent Memory</title>
    <link>https://community.intel.com/t5/Intel-Optane-Persistent-Memory/is-pmem-returns-0-from-pmem-map-file/m-p/1613825#M455</link>
    <description>&lt;P&gt;The underlying function "pmem_is_pmem" returns only true for device dax. Since you are using filesystem dax, this is (unfortunately) not the case:&amp;nbsp;&lt;A href="https://pmem.io/pmdk/manpages/linux/v1.2/libpmem.3/" target="_blank"&gt;https://pmem.io/pmdk/manpages/linux/v1.2/libpmem.3/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jul 2024 11:04:03 GMT</pubDate>
    <dc:creator>Thomas_W_Intel</dc:creator>
    <dc:date>2024-07-10T11:04:03Z</dc:date>
    <item>
      <title>is_pmem returns 0 from pmem_map_file</title>
      <link>https://community.intel.com/t5/Intel-Optane-Persistent-Memory/is-pmem-returns-0-from-pmem-map-file/m-p/1612602#M451</link>
      <description>&lt;P&gt;I am encountering an issue with mapping memory to a file on persistent memory. While the file is created successfully, is_pmem returns 0. I am uncertain about the implications of this, as I am able to work with the pointer returned by the function. However, I am concerned whether this is genuine persistent memory.&lt;/P&gt;&lt;P&gt;Attached, you will find some useful information about the system and the example I created.&lt;/P&gt;&lt;P&gt;I am unsure about the current state of Optane support following its deprecation, but I hope to find a solution to this problem. As a PhD student, it is crucial for me to test some algorithms on this hardware. If you need further information about the system, code examples, or anything else, I will be happy to provide it.&lt;/P&gt;&lt;P&gt;Thank you for your assistance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;[yonif@nvram003 test_libpmem]$ sudo ipmctl show -memoryresources&lt;BR /&gt;MemoryType | DDR | PMemModule | Total&lt;BR /&gt;==========================================================&lt;BR /&gt;Volatile | 384.000 GiB | 0.000 GiB | 384.000 GiB&lt;BR /&gt;AppDirect | - | 1512.000 GiB | 1512.000 GiB&lt;BR /&gt;Cache | 0.000 GiB | - | 0.000 GiB&lt;BR /&gt;Inaccessible | 0.000 GiB | 8.906 GiB | 8.906 GiB&lt;BR /&gt;Physical | 384.000 GiB | 1520.906 GiB | 1904.906 GiB&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;--------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;[yonif@nvram003 test_libpmem]$ sudo ipmctl show -topology&lt;BR /&gt;DimmID | MemoryType | Capacity | PhysicalID| DeviceLocator&lt;BR /&gt;================================================================================&lt;BR /&gt;0x0001 | Logical Non-Volatile Device | 126.688 GiB | 0x0018 | DIMM 7&lt;BR /&gt;0x0011 | Logical Non-Volatile Device | 126.688 GiB | 0x001a | DIMM 9&lt;BR /&gt;0x0021 | Logical Non-Volatile Device | 126.688 GiB | 0x001c | DIMM 11&lt;BR /&gt;0x0101 | Logical Non-Volatile Device | 126.688 GiB | 0x001e | DIMM 6&lt;BR /&gt;0x0111 | Logical Non-Volatile Device | 126.688 GiB | 0x0020 | DIMM 4&lt;BR /&gt;0x0121 | Logical Non-Volatile Device | 126.688 GiB | 0x0022 | DIMM 2&lt;BR /&gt;0x1001 | Logical Non-Volatile Device | 126.688 GiB | 0x0024 | DIMM 19&lt;BR /&gt;0x1011 | Logical Non-Volatile Device | 126.688 GiB | 0x0026 | DIMM 21&lt;BR /&gt;0x1021 | Logical Non-Volatile Device | 126.688 GiB | 0x0028 | DIMM 23&lt;BR /&gt;0x1101 | Logical Non-Volatile Device | 126.688 GiB | 0x002a | DIMM 18&lt;BR /&gt;0x1111 | Logical Non-Volatile Device | 126.688 GiB | 0x002c | DIMM 16&lt;BR /&gt;0x1121 | Logical Non-Volatile Device | 126.688 GiB | 0x002e | DIMM 14&lt;BR /&gt;N/A | DDR4 | 32.000 GiB | 0x0017 | DIMM 8&lt;BR /&gt;N/A | DDR4 | 32.000 GiB | 0x0019 | DIMM 10&lt;BR /&gt;N/A | DDR4 | 32.000 GiB | 0x001b | DIMM 12&lt;BR /&gt;N/A | DDR4 | 32.000 GiB | 0x001d | DIMM 5&lt;BR /&gt;N/A | DDR4 | 32.000 GiB | 0x001f | DIMM 3&lt;BR /&gt;N/A | DDR4 | 32.000 GiB | 0x0021 | DIMM 1&lt;BR /&gt;N/A | DDR4 | 32.000 GiB | 0x0023 | DIMM 20&lt;BR /&gt;N/A | DDR4 | 32.000 GiB | 0x0025 | DIMM 22&lt;BR /&gt;N/A | DDR4 | 32.000 GiB | 0x0027 | DIMM 24&lt;BR /&gt;N/A | DDR4 | 32.000 GiB | 0x0029 | DIMM 17&lt;BR /&gt;N/A | DDR4 | 32.000 GiB | 0x002b | DIMM 15&lt;BR /&gt;N/A | DDR4 | 32.000 GiB | 0x002d | DIMM 13&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;--------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;[yonif@nvram003 test_libpmem]$ ndctl list -NR&lt;BR /&gt;{&lt;BR /&gt;"regions":[&lt;BR /&gt;{&lt;BR /&gt;"dev":"region1",&lt;BR /&gt;"size":811748818944,&lt;BR /&gt;"available_size":811748818944,&lt;BR /&gt;"type":"pmem",&lt;BR /&gt;"iset_id":3597953102497852620,&lt;BR /&gt;"persistence_domain":"unknown"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"dev":"region0",&lt;BR /&gt;"size":811748818944,&lt;BR /&gt;"available_size":0,&lt;BR /&gt;"type":"pmem",&lt;BR /&gt;"iset_id":1399070583829703884,&lt;BR /&gt;"persistence_domain":"unknown",&lt;BR /&gt;"namespaces":[&lt;BR /&gt;{&lt;BR /&gt;"dev":"namespace0.0",&lt;BR /&gt;"mode":"fsdax",&lt;BR /&gt;"map":"dev",&lt;BR /&gt;"size":799063146496,&lt;BR /&gt;"uuid":"75d4cb76-291c-4ee8-b052-0d5632aa8629",&lt;BR /&gt;"sector_size":512,&lt;BR /&gt;"align":2097152,&lt;BR /&gt;"blockdev":"pmem0"&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;[yonif@nvram003 test_libpmem]$ mount | grep dax&lt;BR /&gt;/dev/pmem0 on /mnt/pmem0 type ext4 (rw,relatime,dax,stripe=512,data=ordered)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;--------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;[yonif@nvram003 test_libpmem]$ dmesg | grep dax&lt;BR /&gt;[ 252.294448] Modules linked in: nd_pmem(+) dax_pmem nd_btt device_dax xfs mgag200 ttm drm_kms_helper drm bnxt_re ses i2c_algo_bit enclosure fb_sys_fops syscopyarea scsi_transport_sas sysfillrect iTCO_wdt sysimgblt iTCO_vendor_support joydev input_leds intel_rapl skx_edac x86_pkg_temp_thermal coretemp kvm_intel kvm hid_generic irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel pcbc aesni_intel aes_x86_64 crypto_simd glue_helper cryptd usbmouse usbkbd intel_rapl_perf pcspkr usbhid cdc_ether mei_me hid usbnet shpchp mei mii i2c_i801 ioatdma dca wmi rpcrdma sunrpc ipmi_si ipmi_devintf ipmi_msghandler nfit tpm_crb acpi_power_meter ib_isert iscsi_target_mod ib_iser libiscsi evbug mac_hid scsi_transport_iscsi ib_srpt target_core_mod ib_srp scsi_transport_srp ib_ipoib rdma_ucm ib_ucm ib_uverbs ib_umad&lt;BR /&gt;[13383323.799675] EXT4-fs (pmem1): mounted filesystem with ordered data mode. Opts: dax&lt;BR /&gt;[13385181.530016] EXT4-fs (pmem0): mounted filesystem with ordered data mode. Opts: dax&lt;/P&gt;&lt;P&gt;--------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;[yonif@nvram003 test_libpmem]$ cat /etc/os-release&lt;BR /&gt;NAME="CentOS Linux"&lt;BR /&gt;VERSION="7 (Core)"&lt;BR /&gt;ID="centos"&lt;BR /&gt;ID_LIKE="rhel fedora"&lt;BR /&gt;VERSION_ID="7"&lt;BR /&gt;PRETTY_NAME="CentOS Linux 7 (Core)"&lt;BR /&gt;ANSI_COLOR="0;31"&lt;BR /&gt;CPE_NAME="cpe:/o:centos:centos:7"&lt;BR /&gt;HOME_URL="&lt;A href="https://www.centos.org/" target="_blank" rel="noopener"&gt;https://www.centos.org/&lt;/A&gt;"&lt;BR /&gt;BUG_REPORT_URL="&lt;A href="https://bugs.centos.org/" target="_blank" rel="noopener"&gt;https://bugs.centos.org/&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;CENTOS_MANTISBT_PROJECT="CentOS-7"&lt;BR /&gt;CENTOS_MANTISBT_PROJECT_VERSION="7"&lt;BR /&gt;REDHAT_SUPPORT_PRODUCT="centos"&lt;BR /&gt;REDHAT_SUPPORT_PRODUCT_VERSION="7"&lt;/P&gt;&lt;P&gt;--------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;[yonif@nvram003 test_libpmem]$ uname -r&lt;BR /&gt;4.13.0&lt;/P&gt;&lt;P&gt;--------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Running a simple c++ test to map file to pmem. compiled with:&lt;BR /&gt;g++ try_mmap_pmem.cpp -o pmem_test.o -lpmem&lt;BR /&gt;The following is the interesting part of the file, when pmem_map_file is called and is_pmem returns with 0:&lt;BR /&gt;--------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;/* open the pmem file to read back the data */&lt;BR /&gt;if ((pmemaddr = (char *)pmem_map_file(/mnt/pmem0/test_file, 1024, PMEM_FILE_CREATE, 0666, &amp;amp;mapped_len, &amp;amp;is_pmem)) == NULL) {&lt;BR /&gt;fprintf(stderr, "pmem_map_file: %s\n", pmem_errormsg());&lt;BR /&gt;exit(1);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;printf("is_pmem: %d\n", is_pmem);&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;[yonif@nvram003 test_libpmem]$ sudo ./pmem_test.o&lt;BR /&gt;is_pmem: 0&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;[yonif@nvram003 test_libpmem]$ ll /mnt/pmem0/&lt;BR /&gt;total 20&lt;BR /&gt;drwx------ 2 root root 16384 Jul 2 19:33 lost+found&lt;BR /&gt;-rw-r--r-- 1 root root 1024 Jul 5 22:34 test_file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 19:44:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Optane-Persistent-Memory/is-pmem-returns-0-from-pmem-map-file/m-p/1612602#M451</guid>
      <dc:creator>yehonatan123f</dc:creator>
      <dc:date>2024-07-05T19:44:22Z</dc:date>
    </item>
    <item>
      <title>Re:is_pmem returns 0 from pmem_map_file</title>
      <link>https://community.intel.com/t5/Intel-Optane-Persistent-Memory/is-pmem-returns-0-from-pmem-map-file/m-p/1613677#M454</link>
      <description>&lt;P&gt;Hi yehonatan123f,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you for reaching Intel Community.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Based on your query, kindly check the below article where it explaining more about the PMEM process.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.intel.com/content/www/us/en/developer/articles/training/pmem-learn-more-series-part-1.html" target="_blank"&gt;https://www.intel.com/content/www/us/en/developer/articles/training/pmem-learn-more-series-part-1.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Fikri&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Jul 2024 02:46:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Optane-Persistent-Memory/is-pmem-returns-0-from-pmem-map-file/m-p/1613677#M454</guid>
      <dc:creator>Fikri_Intel</dc:creator>
      <dc:date>2024-07-10T02:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: is_pmem returns 0 from pmem_map_file</title>
      <link>https://community.intel.com/t5/Intel-Optane-Persistent-Memory/is-pmem-returns-0-from-pmem-map-file/m-p/1613825#M455</link>
      <description>&lt;P&gt;The underlying function "pmem_is_pmem" returns only true for device dax. Since you are using filesystem dax, this is (unfortunately) not the case:&amp;nbsp;&lt;A href="https://pmem.io/pmdk/manpages/linux/v1.2/libpmem.3/" target="_blank"&gt;https://pmem.io/pmdk/manpages/linux/v1.2/libpmem.3/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2024 11:04:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Optane-Persistent-Memory/is-pmem-returns-0-from-pmem-map-file/m-p/1613825#M455</guid>
      <dc:creator>Thomas_W_Intel</dc:creator>
      <dc:date>2024-07-10T11:04:03Z</dc:date>
    </item>
    <item>
      <title>Re:is_pmem returns 0 from pmem_map_file</title>
      <link>https://community.intel.com/t5/Intel-Optane-Persistent-Memory/is-pmem-returns-0-from-pmem-map-file/m-p/1615254#M458</link>
      <description>&lt;P&gt;Hi yehonatan123f,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Just wanted to follow up kindly let us know if have further concerns.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Fikri&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 16 Jul 2024 01:39:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Optane-Persistent-Memory/is-pmem-returns-0-from-pmem-map-file/m-p/1615254#M458</guid>
      <dc:creator>Fikri_Intel</dc:creator>
      <dc:date>2024-07-16T01:39:41Z</dc:date>
    </item>
    <item>
      <title>Re:is_pmem returns 0 from pmem_map_file</title>
      <link>https://community.intel.com/t5/Intel-Optane-Persistent-Memory/is-pmem-returns-0-from-pmem-map-file/m-p/1616310#M459</link>
      <description>&lt;P&gt;Hi yehonatan123f,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope you are doing well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since there is no further response, we will proceed to close this thread as of now.&lt;/P&gt;&lt;P&gt;Please note that the thread will not be monitored.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Fikri&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Jul 2024 00:47:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Optane-Persistent-Memory/is-pmem-returns-0-from-pmem-map-file/m-p/1616310#M459</guid>
      <dc:creator>Fikri_Intel</dc:creator>
      <dc:date>2024-07-19T00:47:21Z</dc:date>
    </item>
  </channel>
</rss>

