VM: Failed to lock sudo memory is related with system memory ?
Started by Augusto




6 posts in this topic
Augusto
Member


0
80 posts 41 threads Joined: Feb 2018
12-28-2020, 09:54 PM -
#1
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.
Ani
Administrator
*******


16
4,386 posts 106 threads Joined: Aug 2017
12-28-2020, 10:24 PM -
#2
/etc/security.conf

* hard memlock unlimited
* soft memlock unlimited

https://twitter.com/rpcs3/status/1330818231527944194
    Desktop: Ryzen 7 5800X,   Radeon RX 6800 XT, 2x8G DDR4 3600MHz, Manjaro Linux
     Laptop: Ryzen 9 5900HX,  Radeon RX 6700M,   2x8G DDR4 3200MHz, Manjaro Linux
Old Desktop: AMD FX-8350,     Radeon R9 280X,    2x4G DDR3 1600MHz, Manjaro Linux
Augusto
Member


0
80 posts 41 threads Joined: Feb 2018
12-29-2020, 02:50 PM -
#3
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.
Jhackler
Member


0
3 posts 0 threads Joined: Sep 2020
08-26-2021, 01:32 AM -
#4
(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.
Ani
Administrator
*******


16
4,386 posts 106 threads Joined: Aug 2017
08-26-2021, 06:47 AM -
#5
If you still get the message, you're adding it wrong
    Desktop: Ryzen 7 5800X,   Radeon RX 6800 XT, 2x8G DDR4 3600MHz, Manjaro Linux
     Laptop: Ryzen 9 5900HX,  Radeon RX 6700M,   2x8G DDR4 3200MHz, Manjaro Linux
Old Desktop: AMD FX-8350,     Radeon R9 280X,    2x4G DDR3 1600MHz, Manjaro Linux
Jhackler
Member


0
3 posts 0 threads Joined: Sep 2020
08-29-2021, 06:18 PM -
#6
(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
BonelessBrains
Member


0
1 posts 0 threads Joined: Jul 2022
07-31-2022, 08:21 PM -
#7
(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??


Forum Jump:


Users browsing this thread: 3 Guest(s)