https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229764

--- Comment #2 from Shane <free...@shaneware.biz> ---
(In reply to Andriy Gapon from comment #1)

I'm not looking to change anything as memory is being allocated, I'm only
looking at the sysctl settings, specifically arc_max being limited. Initially
the default settings but also when assigning a new value. Currently we have
defaults and allow assigning values that let a system get into a non-responsive
state.

On a machine with 8GB of physical RAM, max_wired is 2.4GB and arc_max is 7GB -
that's RAM minus 1GB, so out of the box an 8GB system is allowed to wire more
than 9GB, well maybe not allowed but two unrelated areas assuming they can
allocate. I know from experience that a system with 8GB that has over 7GB wired
only responds to the reset button. In this configuration, I expect sysctl
should prevent arc_max being more than 5GB.

If max_wired is only user wired allocations, then kernel wiring is another
factor to be added into the equation.

So initally, as max_wired is 30% of RAM, the default arc_max should not be set
higher than 70% of RAM. When sysctl assigns a new value to arc_max the physical
RAM and max_wired (and kernel wiring?) should be considered to check if the new
value would allow the total wired RAM to be too high.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to