resize tmpfs on rpi4

Ask questions about Arch Linux ARM. Please search before making a new topic.

resize tmpfs on rpi4

Postby PowaBanga » Sun Jan 12, 2025 2:10 pm

Hi everybody,
I have a problem in kodi, all my videos (over nfs) crash after 110 minutes, maybe because of a cache issue... i do not know exactly why.
the only error that i found i the log is :
[code]warning <general>: underflow: Error reading file - assuming eof[/code]

I can watch my movies on an other machine via nfs without any issues

So, after a lot of tries, i am looking to resize my tmpfs to 3Go
[code]tmpfs 1.9G 0 1.9G 0% /dev/shm
tmpfs 1.9G 0 1.9G 0% /tmp
[/code]
[code]alarmpi# free
total used free shared buff/cache available
Mem: 3924932 692164 289592 40600 3067696 3232768
Swap: 0 [code][/code] 0 0
alarmpi# free -h
total used free shared buff/cache available
Mem: 3.7Gi 675Mi 283Mi 39Mi 2.9Gi 3.1Gi
Swap: 0B 0B 0B
alarmpi# cat /etc/fstab
# Static information about the filesystems.
# See fstab(5) for details.

# <file system> <dir> <type> <options> <dump> <pass>
/dev/mmcblk0p1 /boot vfat defaults 0 0
192.168.0.9:/mnt/movies /mnt/movies nfs defaults,timeo=900,retrans=5,_netdev,nofail 0 0
192.168.0.9:/mnt/500go /mnt/500go nfs defaults,timeo=900,retrans=5,_netdev,nofail 0 0
tmpfs /dev/shm tmpfs defaults,size=3G 0 0
[/code]

[code]alarmpi# systemctl daemon-reload
alarmpi# mount -a
alarmpi# free
total used free shared buff/cache available
Mem: 3924932 693324 288172 40600 3067948 3231608
Swap: 0 0 0
alarmpi# df -h
Filesystem Size Used Avail Use% Mounted on
dev 1.7G 0 1.7G 0% /dev
run 1.9G 1004K 1.9G 1% /run
/dev/mmcblk0p2 59G 12G 44G 21% /
tmpfs 1.9G 0 1.9G 0% /dev/shm
tmpfs 1.9G 0 1.9G 0% /tmp
tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-journald.service
tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-networkd.service
/dev/mmcblk0p1 200M 41M 160M 21% /boot
tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-resolved.service
192.168.0.9:/mnt/movies 4.6T 3.0T 1.4T 70% /mnt/movies
tmpfs 384M 4.0K 384M 1% /run/user/971
192.168.0.9:/mnt/500go 458G 250G 185G 58% /mnt/500go
tmpfs 384M 4.0K 384M 1% /run/user/0
alarmpi# systemctl daemon-reload
alarmpi# mount -a
alarmpi# free -h
total used free shared buff/cache available
Mem: 3.7Gi 672Mi 276Mi 39Mi 2.9Gi 3.1Gi
Swap: 0B 0B 0B
alarmpi# [/code]

so, as you can see, i had modified my /etc/fstab to change this, but the changement is not applied...
PowaBanga
 
Posts: 19
Joined: Thu May 31, 2018 2:04 pm

Re: resize tmpfs on rpi4

Postby graysky » Sun Jan 12, 2025 2:13 pm

What makes you suspect that the tmpfs size is to blame? Post a kodi debug log. Might make more sense if you do that on the official kodi forums.
graysky
Developer
 
Posts: 1870
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000


Return to User Questions

Who is online

Users browsing this forum: No registered users and 13 guests