dc08 [Solved] gjournal issue / kernel panic - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Base System > General

General General questions about the FreeBSD operating system. Ask here if your question does not fit elsewhere.

Reply
 
Thread Tools Display Modes
  #1  
Old September 9th, 2010, 15:07
User23's Avatar
User23 User23 is offline
Member
 
Join Date: Nov 2008
Location: Germany near Berlin
Posts: 297
Thanks: 16
Thanked 28 Times in 28 Posts
Default gjournal issue / kernel panic

I tried to make GPT Partition upon /dev/da0 and use it with journal and mounted it the default way (as described in the handbook), so it is mounted witch sync and not async. So far so good. While stresstest it with iozone i get a kernel panic (panic: journal overflow) every time iozone starts to test the random write performance.

Code:
gpart create -s gpt da0

gpart add -t freebsd-ufs da0

gjournal label /dev/da0p1

newfs -O 2 -J /dev/da0p1.journal

mount /dev/da0p1.journal /mnt/1

iozone -R -l 8 -u 8 -r 32k -s 100m -F /mnt/1/0 /mnt/1/1 /mnt/1/2 /mnt/1/3 /mnt/1/4 /mnt/1/5 /mnt/1/6 /mnt/1/7
As i mount it with the option async, no panic occured.

---

I searched the web for the panic and found this still open bugrequest: http://www.freebsd.org/cgi/query-pr.cgi?pr=127420
But iam not sure if it is the same problem because he said all his drives were mounted with async.

---

Did i do something wrong?
Is this worth to make a new bug request?

Last edited by DutchDaemon; September 9th, 2010 at 15:29. Reason: Sorry, wrong category :/ tags added
Reply With Quote
  #2  
Old September 9th, 2010, 15:59
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,852
Thanks: 48
Thanked 2,061 Times in 1,890 Posts
Default

Quote:
Originally Posted by User23 View Post
Is this worth to make a new bug request?
You could test it with the async option. If both ways (with async and with sync) produce the same error I would just add the findings to that PR instead of creating a new one.
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #3  
Old September 9th, 2010, 17:58
oliverh's Avatar
oliverh oliverh is offline
Member
 
Join Date: Nov 2008
Location: 127.0.0.1
Posts: 557
Thanks: 51
Thanked 36 Times in 33 Posts
Default

Maybe there is no space left anymore for the journal?
__________________
What was the goal of the Linux community--to replace Windows? One can imagine higher aspirations., Bill Joy
Reply With Quote
  #4  
Old September 9th, 2010, 18:01
Galactic_Dominator Galactic_Dominator is offline
Member
 
Join Date: Nov 2008
Posts: 194
Thanks: 0
Thanked 31 Times in 27 Posts
Default

There is no problem with async, in fact async option should be used with gjournal.

Please review this:

http://www.freebsd.org/cgi/man.cgi?q...ts&format=html

Take particular note of the label -s option. If you make it too small(which the default is in a lot of scenarios) you will get panics when you stress the device.
Reply With Quote
  #5  
Old September 10th, 2010, 12:53
User23's Avatar
User23 User23 is offline
Member
 
Join Date: Nov 2008
Location: Germany near Berlin
Posts: 297
Thanks: 16
Thanked 28 Times in 28 Posts
Default

The issue can be solved by using more than 1GB (default size) journal size.

Nonetheless iam confused about the behaviour that a filebenchmark writing 8x100M will blast a journal with 1GB size. But if this is normal then the default size is all too small. Well if i had read the manual exactly this issue would never happened. Rtfm like always and dont just trust the handbook . for the journal: "recommended minimum is twice the size of the physical memory installed."

I have set the journal size to 32GB, mount it with sync and tested it with iozone writing 8x100M random without any panic. Now a test writing 8x4GB is running.

---

sync or async:

yes, async is safe to use for journaled ufs like written on the man page but sync should at least work, i thought.

---

Thanks for all your answers.
Reply With Quote
  #6  
Old September 15th, 2010, 13:48
User23's Avatar
User23 User23 is offline
Member
 
Join Date: Nov 2008
Location: Germany near Berlin
Posts: 297
Thanks: 16
Thanked 28 Times in 28 Posts
Default

Another part of the FreeBSD manual said:

"For example, if your system has 1 GB RAM, create an approximately 3.3 GB journal provider. (Multiply your RAM size with 3.3 to obtain the size of the journal)"

http://www.freebsd.org/doc/en_US.ISO...ournaling.html

I think this thread can be marked as solved.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Solved] ZFS kernel panic issue AndyUKG General 9 September 16th, 2010 14:15
ipfw, dummynet, kernel nat = kernel panic romeor Networking 3 August 28th, 2010 11:29
kernel panic wonslung General 4 June 19th, 2009 16:55
Gjournal on top of Gmirror: bsdlabel on a gjournal provider? Sfynx Installing & Upgrading 1 April 23rd, 2009 20:34
kernel panic on 7.0-p6 smallpox General 0 December 23rd, 2008 18:56


All times are GMT +1. The time now is 07:29.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0