UFS2 Journaling implementation detail

Unga unga888 at yahoo.com
Sat Apr 19 04:18:55 UTC 2008

--- Ivan Voras <ivoras at freebsd.org> wrote:

> >  Does it log anywhere if the journal size is too
> small for the system load?
> Yes, you'll get a system panic in this case. Yes,
> it's a bad solution, complain to Pawel :)

So the gjournal can corrupt the file system as well as
can fix it :)

I think this is a serious concern for desktop users
rather than servers. For those who do multi-channel
audio encoding, HD/35mm-full-frame video encoding,
batch conversion of photos, etc. may hit the default
1GB journal size and end up in system panic.

I think because of this gjournal implementation issue,
gjournal requires a huge journal.

Just for a thought, in my opinion, gjournal should not
use the entire journal for logging. May be split it
two. Ie. From size S given, use two journals. When one
journal is full, point the new changes to go to the
second journal, and flush the first journal and so on.
If the gjournal has to flush too often, then log it in
the system log that journal is too small. 

Ivan, thanks again for detail.

Kind regards

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

More information about the freebsd-questions mailing list