vramfs
vramfs copied to clipboard
Permissions Issue on Debian
Repro: When used in Kali Linux (Debian):
./bin/vramfs /tmp/vramfs 2GB -d 0 -f
allocating vram...
Ignoring invalid max threads value 4294967295 > max (100000).
mounted.
ls /tmp -lh | grep vramfs
d????????? ? ? ? ? ? vramfs
ls /tmp/vramfs
ls: cannot access '/tmp/vramfs': Permission denied
cat /etc/debian_version
kali-rolling
uname -a
Linux debian 6.6.9-amd64 #1 SMP PREEMPT_DYNAMIC Kali 6.6.9-1kali1 (2024-01-08) x86_64 GNU/Linux
I solved the issue by running as root
Maybe implement a root check?
And then, how did you verify the vramfs
effect after enabling swap space (e.g., ./bin/vramfs /tmp/vramfs 2GB -d 0 -f
)to solve the shortage of GPU memory space on Debian 6.6.9?