RPCS3 Forums
VM: Failed to lock sudo memory is related with system memory ? - Printable Version

+- RPCS3 Forums (https://forums.rpcs3.net)
+-- Forum: Support & Issues (https://forums.rpcs3.net/forumdisplay.php?fid=17)
+--- Forum: Support (https://forums.rpcs3.net/forumdisplay.php?fid=18)
+--- Thread: VM: Failed to lock sudo memory is related with system memory ? (/showthread.php?tid=202653)



VM: Failed to lock sudo memory is related with system memory ? - Augusto - 12-28-2020

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.


RE: VM: Failed to lock sudo memory is related with system memory ? - Ani - 12-28-2020

/etc/security.conf

* hard memlock unlimited
* soft memlock unlimited

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


RE: VM: Failed to lock sudo memory is related with system memory ? - Augusto - 12-29-2020

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.


RE: VM: Failed to lock sudo memory is related with system memory ? - Jhackler - 08-26-2021

(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.


RE: VM: Failed to lock sudo memory is related with system memory ? - Ani - 08-26-2021

If you still get the message, you're adding it wrong


RE: VM: Failed to lock sudo memory is related with system memory ? - Jhackler - 08-29-2021

(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


RE: VM: Failed to lock sudo memory is related with system memory ? - BonelessBrains - 07-31-2022

(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??