Skip to content

Failed to set RLIMIT_MEMLOCK size to 2 GiB #9328

@shenada

Description

@shenada
RPCS3: v0.0.13-11300-f1c65dce
Linux: 5.9.8-200.fc33.x86_64
=====================================================================
Warning message:
Failed to set RLIMIT_MEMLOCK size to 2 GiB. Try to update your system configuration.
=====================================================================

Most of Linux distribution won't come with large RLIMIT_MEMLOCK by default. (Linux kernel default is 64KiB)
If we need large non-swapped memory by setting ulimit we should provide more useful message and document it.
Or try to use HugePages 1Gx2 just like qemu or KVM (Better performance but also not come with default).
https://www.kernel.org/doc/Documentation/vm/hugetlbpage.txt
https://github.com/libhugetlbfs/libhugetlbfs

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions