kern.geom.journal.stats.low_mem refers to what?

Adam Vande More amvandemore at
Thu Mar 31 02:46:15 UTC 2011

On Wed, Mar 30, 2011 at 9:07 PM, Luke Dean <LukeD at> wrote:

> The Handbook says 1GB is good enough most of the time, but it also says
>> that 3x the amount of physical memory is a good size as well.  I compromised
>> between the two and made an 8GB journal for this system that has ~4GB of
>> memory.
I've never understood why that article states that calculation.  The amount
of RAM a system has little to do with what gjournal needs.  That formula
will in most cases allocate far more journal space than is really
necessary.  Disk speed and latency are far more important factors.

Back when I was using gjournal, I used a 2GB journal on 7200rpm and was
never able to panic the system unlike with a 1 GB journal but that was with
all other settings at default.  Allocating more to gjournal cache would
increase the need for space so perhaps it's good you've made such a large

As you've discovered, gjournal's performance isn't so great when large files
are involved.  It still helps on multi-threaded access but those big
sequential operations destroy most the other optimizations in place.  You
might want to consider placing your journal on an SSD.

Adam Vande More

More information about the freebsd-questions mailing list