What happens when freenas runs out of memory?

Status
Not open for further replies.

ShimadaRiku

Contributor
Joined
Aug 28, 2015
Messages
104
Freenas ZFS wants at least 8GB to be happy. I have 16GB installed.

What happens when memory runs low because my jails started using too much?

freenas.png
 

Bidule0hm

Server Electronics Sorcerer
Joined
Aug 5, 2013
Messages
3,710
Swap space is used and if it's not enough then the server crashes.

But what I see on the screenshot is normal, ZFS use most of the RAM.
 

ShimadaRiku

Contributor
Joined
Aug 28, 2015
Messages
104
ZFS happily will eat all the ram it is given, but will it know to share some of it when other jail/process need them?
 
Joined
Jan 9, 2015
Messages
430

Bidule0hm

Server Electronics Sorcerer
Joined
Aug 5, 2013
Messages
3,710
Yep, ZFS is pure black magic...
 
Joined
Jan 9, 2015
Messages
430
So technically my data is traveling faster than speed of light to another point of the universe or dimension?
Yup or at least it will feel like it is happening that fast if that day comes. ;)
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
So technically my data is traveling faster than speed of light to another point of the universe or dimension?
In your (not-quite-)inertial coordinate system, it'll appear to be moving rather slowly, so don't worry about physics - the universe will not be destroyed, even if your pool is. :D
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
ZFS happily will eat all the ram it is given, but will it know to share some of it when other jail/process need them?

More or less. If you have a truly unmanageable process, as @Bidule0hm suggests, the NAS will start to swap idle processes out to disk. This isn't horrible, but if allowed to continue (such as a fork bomb or memory leak) you can actually run out of swap space too, at which point the system will resort to killing what it thinks might be the problem process. However, if it inadvertently kills your GUI or the middleware or a protocol sharing daemon, your NAS starts to develop some badness.

The default process memory limit in FreeNAS is 32G. You can artificially limit process sizes within a jail by installing some appropriate resource limits, possibly in the jail startup script, so that your jail processes are limited to some much more reasonable number.
 
Status
Not open for further replies.
Top