oli_kester
Cadet
- Joined
- Mar 31, 2020
- Messages
- 5
Hi all, I'm having an issue with my TrueNAS server, any help is much appreciated!
Every night, my laptop runs a backup job to the NAS' SMB endpoint. This causes the RAM usage to increase, which then causes the Plex plugin to be killed due to an 'out of swap space' error. Every day I have to restart my NAS / Plex plugin to fix this. The interesting thing is that the jail/plugin are still marked as 'UP' in the UI.
What's strange is that I used to have this setup working with 8GB RAM - I only had to increase that when my NAS ran into performance issues when updating from FreeNAS to TrueNAS CORE. It had been running fine for months, but only recently started having this problem.
This latest issue has come about with no changes to configuration, software or hardware. I have freed up some space to get the storage usage back down to 82%, but this hasn't helped either.
My NAS is running with the following specs:
I have a single jail/plugin running Plex. I also have a single VM running with minimal resources allocated - the problem doesn't go away if I stop the VM.
The issue looks to be cause by a spike in ZFS cache usage, which causes the system to use lots of swap space. I have tried tuning the `vfs.zfs.arc_max ` parameter, which doesn't appear to fix the issue sadly. I have also tried autotune.
I looked at what was using the swap and I found 'NGINX core', along with a few other processes.
Any ideas please?
Some logs:
Every night, my laptop runs a backup job to the NAS' SMB endpoint. This causes the RAM usage to increase, which then causes the Plex plugin to be killed due to an 'out of swap space' error. Every day I have to restart my NAS / Plex plugin to fix this. The interesting thing is that the jail/plugin are still marked as 'UP' in the UI.
What's strange is that I used to have this setup working with 8GB RAM - I only had to increase that when my NAS ran into performance issues when updating from FreeNAS to TrueNAS CORE. It had been running fine for months, but only recently started having this problem.
This latest issue has come about with no changes to configuration, software or hardware. I have freed up some space to get the storage usage back down to 82%, but this hasn't helped either.
My NAS is running with the following specs:
- Dell Optiplex 390
- Intel(R) Core(TM) i3-2100 CPU @ 3.10GHz
- 16GB RAM
- 2x 4TB HDD , RAID 1
- 2x 32GB Flash Drives used for booting
- TrueNAS-12.0-U8.1
I have a single jail/plugin running Plex. I also have a single VM running with minimal resources allocated - the problem doesn't go away if I stop the VM.
The issue looks to be cause by a spike in ZFS cache usage, which causes the system to use lots of swap space. I have tried tuning the `vfs.zfs.arc_max ` parameter, which doesn't appear to fix the issue sadly. I have also tried autotune.
I looked at what was using the swap and I found 'NGINX core', along with a few other processes.
Any ideas please?
Some logs:
Code:
Aug 18 04:46:06 nas390 swap_pager_getswapspace(2): failed Aug 18 04:46:26 nas390 swap_pager_getswapspace(2)[813]: Last message 'failed' repeated 1 times, suppressed by syslog-ng on nas390.nest Aug 18 04:46:26 nas390 kernel: pid 1944 (Plex Media Server), jid 1, uid 972, was killed: out of swap space Aug 18 04:46:26 nas390 kernel[813]: Last message 'pid 1944 (Plex Media' repeated 1 times, suppressed by syslog-ng on nas390.nest Aug 18 04:46:26 nas390 kernel: pid 1312 (bhyve), jid 0, uid 0, was killed: out of swap space Aug 18 04:46:26 nas390 kernel[813]: Last message 'pid 1312 (bhyve), ji' repeated 1 times, suppressed by syslog-ng on nas390.nest Aug 18 04:46:26 nas390 kernel: pid 1163 (collectd), jid 0, uid 0, was killed: out of swap space Aug 18 04:46:26 nas390 kernel[813]: Last message 'pid 1163 (collectd),' repeated 1 times, suppressed by syslog-ng on nas390.nest Aug 18 04:46:26 nas390 swap_pager_getswapspace(32): failed Aug 18 04:46:26 nas390 swap_pager_getswapspace(32)[813]: Last message 'failed' repeated 6 times, suppressed by syslog-ng on nas390.nest