mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-10 02:18:46 +00:00
8236595: Add more comments about how to setup simulated NVRAM before run java/nio/MappedByteBuffer/PmemTest.java
Reviewed-by: alanb, adinn
This commit is contained in:
parent
0a9a7e2f6c
commit
6da7ea6ea3
@ -50,10 +50,20 @@
|
||||
*
|
||||
* https://developers.redhat.com/blog/2016/12/05/configuring-and-using-persistent-memory-rhel-7-3/
|
||||
* https://nvdimm.wiki.kernel.org/
|
||||
* TL;DR: add "memmap=1G!4G" to /etc/default/grub,
|
||||
* then grub2-mkconfig -o /boot/grub2/grub.cfg and reboot
|
||||
* TL;DR: add "memmap=1G!4G" to /etc/default/grub, eg. GRUB_CMDLINE_LINUX="memmap=1G!4G"
|
||||
* then ("sudo" may required)
|
||||
* for RHEL(BIOS-based): grub2-mkconfig -o /boot/grub2/grub.cfg
|
||||
* for RHEL(UEFI-based): grub2-mkconfig -o /boot/efi/EFI/redhat/grub.cfg
|
||||
* for Ubuntu: update-grub2
|
||||
* finally reboot
|
||||
* after the host been rebooted, a new /dev/pmem{N} device should exist,
|
||||
* naming conversion starts at /dev/pmem0
|
||||
*
|
||||
* ndctl create-namespace * -f -e namespace0.0 -m memory -M mem
|
||||
* Prepare test directory follow below commands, "sudo" may required
|
||||
* (if ndctl or mkfs.xfs not exist, install ndctl or xfsprogs package first)
|
||||
* (for RHEL8, when call mkfs.xfs, specify the -m reflink=0 option to disable reflink feature)
|
||||
*
|
||||
* ndctl create-namespace -f -e namespace0.0 -m memory -M mem
|
||||
* mkdir /mnt/pmem
|
||||
* mkfs.xfs -f /dev/pmem0; mount -o dax /dev/pmem0 /mnt/pmem/
|
||||
* mkdir /mnt/pmem/test; chmod a+rwx /mnt/pmem/test
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user