error: swap_pager_getswapspace

Bruce Wilfong

Explorer
Joined
Mar 25, 2016
Messages
85
I received this error twice over the last 3 weeks, just scrolls this message. I can not break to get back to a shell, end up having to reset. Think I have space but not sure what is up:

Supermicro X10SL7-F uATX DDR3 1600 LGA 1150 Motherboard
32GB ECC RAM
1 Pool/ 2 dev: 5x 4TB drives Z3, 5x 3TB drives Z3
Pool: Available Space: 5.39TiB (54% used)
FreeNAS-11.3-RC2

Message Scrolls:
swap_pager_getswapspace(22): failed
swap_pager_getswapspace(22): failed
swap_pager_getswapspace(22): failed
swap_pager_getswapspace(22): failed
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,681
Typically this is a sign of memory stress. You haven't explained what you're using the filer for, or if you might be running anything like jails or VM's that might cause unusual memory stress.

I would advise against running an RC version of FreeNAS if you're experiencing problems. Often, memory leaks and other issues are found during the release candidate cycles and this may be a resolved issue.

Beyond that, there's nothing here screaming out as to a problem, but there also isn't a lot of information to go on. If this happens more often, you might want to consider setting up an hourly cron job to snap "top(1)" activity snapshots into your pool so that you might get an idea if there's something mongo running eating your RAM.
 

Bruce Wilfong

Explorer
Joined
Mar 25, 2016
Messages
85
Using iocages; plex, emby, sonarr, radarr, lidarr and sabnzbd. No VMs. I never had this issues using 11.2 so I am thinking it might be something with 11.3.

Thanks
 

Xanex

Cadet
Joined
Jan 30, 2017
Messages
1
I have similar plugins running on my system. It appears it was lidarr which has a memory leak and would start chewing swapspace after about a week. I disabled this plugin and my system has been working fine for 2 solid weeks with no sign of swapspace usage.
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,681
I have similar plugins running on my system. It appears it was lidarr which has a memory leak and would start chewing swapspace after about a week. I disabled this plugin and my system has been working fine for 2 solid weeks with no sign of swapspace usage.

So that's a good thing to check.
 

Slovak

Explorer
Joined
Sep 10, 2013
Messages
62
I have similar plugins running on my system. It appears it was lidarr which has a memory leak and would start chewing swapspace after about a week. I disabled this plugin and my system has been working fine for 2 solid weeks with no sign of swapspace usage.
What tools/methods did you use to narrow down the memory usage to that specific plugin/jail?
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,737
Start top in a shell on the NAS host.
Type "o", then "swap" and the Enter key. That will give you all processes sorted by swap space used.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,737
It's also worthwhile to check for processes with an unusually large amount of resident memory in top output. For instance an smbd process with 8GiB RES is somewhat not good.
Start top in a shell on the NAS host.
Type "o", then "res" and the Enter key.
 
Top