RPCS3 Forums

Full Version: VM: Failed to lock sudo memory is related with system memory ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Using Linux Ubuntu 20.04 64 bits 4 GB RAM.
the message logs has several lines displaying
VM: Failed to lock sudo memory
E {PPU[0x1000000] Thread (main_thread) [0x00b86948]} VM: Failed to lock sudo memory (addr=0x37100000, size=0x100000). Consider increasing your system limits.

That issue is related with system memory not having enough free RAM ?
Even after the game is totally loaded the system has more of 1.5 GB free RAM and yet has an swap file 256 MB in zram.

Thanks for your reply.
/etc/security.conf

* hard memlock unlimited
* soft memlock unlimited

https://twitter.com/rpcs3/status/1330818231527944194
THANKS VERY MUCH !!!!
Now finally RPCS3 is using the free available memory.
In moment not more "VM:failed to lock sudo memory" messages in log.
In moment see an better performance with some games.
Hey is good to add information about that problem for Linux users in download area thus avoid problems and also wrong bugs reports.
windows not has exactly the same issue, but huge pages not are enabled to lock pages in RAM.
again thanks.
(12-28-2020, 10:24 PM)Ani Wrote: [ -> ]/etc/security.conf

* hard memlock unlimited
* soft memlock unlimited

https://twitter.com/rpcs3/status/1330818231527944194

so I tried this even with various spacing even after restart I have the issue. Is there other places in arch that could affect this or am I adding it wrong? All my games work without any real issue but seeing this message with x96 after it at the end of a session is frustrating lol.
If you still get the message, you're adding it wrong
(08-26-2021, 06:47 AM)Ani Wrote: [ -> ]If you still get the message, you're adding it wrong

I was not doing it wrong settings in /etc/security/limits.d created by system or packages where over ridding this setting in my case the usersname.conf
(12-28-2020, 10:24 PM)Ani Wrote: [ -> ]/etc/security.conf

* hard memlock unlimited
* soft memlock unlimited

https://twitter.com/rpcs3/status/1330818231527944194

I know how to get into nano, but I don't know what to do from there.. How do I do the rest of this??