linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Trying out 2.6.26-ext4-3
@ 2008-07-27 10:28 Peter Meier
  2008-07-27 20:23 ` Theodore Tso
  0 siblings, 1 reply; 10+ messages in thread
From: Peter Meier @ 2008-07-27 10:28 UTC (permalink / raw)
  To: linux-ext4

Hi,

well, the timely release of 2.6.26-ext4-3 seemed like a good
omen, and so I decided to try and put my new home box in-
stall on ext4 today, using that latest patchset and e2fsprogs
1.41.0. So far I'm not getting very far.

I'm attempting to install Gentoo Linux, which involves copying
an initial tarball to the root file system and unpacking it. Already
while downloading the tarball into the FS my console an dmesg
were getting spammed with messages of the type:

JBD: pdflush wants too many credits (x > y)

And then, while unpacking it:

JBD: tar wants too many credits (x > y)
JBD: pdflush wants too many credits (x > y)

The latter repeatedly and with no end, to the point where I
eventually had to hard reset the box because it seemingly
wasn't going to stop while acchieving no disk activity (LED
not blinking).

I have an inkling that mke2fs -t ext4 dev didn't make a big
enough journal in the 46 GB big partition, but not being an
ext-pert (...) I wouldn't really know how to interpret the error.

So, anyone want to rescue my Sunday and give some pointers?


Greetings,
Peter

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: Trying out 2.6.26-ext4-3
@ 2008-07-27 10:58 Peter Meier
  0 siblings, 0 replies; 10+ messages in thread
From: Peter Meier @ 2008-07-27 10:58 UTC (permalink / raw)
  To: linux-ext4

Hi again,

some more info:

The x and y in the error messages used to be around 20k
or  30k for x and 8192 for y. Googling around, it seems that's
supposed to say that the maxium transaction size is 8192
blocks. Further, the maximum transaction size is supposedly
1/4 of the journal size. Assuming mke2fs -t ext4dev created
the FS with 4096 blocks (dunno) that would mean the journal
is 128MB, which is apparently typical. At least I have a 40GB
ext3 here that got the same journal size.

So I guess the question is why a basic operation like using
links to download a 130MB tar archive to an ext4dev file sys-
tem or unpacking it with tar would die by way of huge trans-
actions that don't work with a normal journal.

Still hoping I'll be able to continue with the installation today
before the work week starts again ;). Kernel hackers read
lists on Sunday, I hope :-).


Greetings,
Peter

PS.: I'm writing via the shitty GMail web interface from an in-
stall CD; here's hoping replying will work better than I fear it
might.

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: Trying out 2.6.26-ext4-3
@ 2008-07-27 11:52 Peter Meier
  0 siblings, 0 replies; 10+ messages in thread
From: Peter Meier @ 2008-07-27 11:52 UTC (permalink / raw)
  To: linux-ext4

Hi once more,

looking around further, I spotted this patch in the patch queue:

ext4_journal_credits_fix_for_writepages.patch

Again, I'm not a file system hacker, but if I understand the situa-
tion correctly, this patch aims to correct the number of credits
that write activity will try to reserve for a transaction in certain
situations and when using delayed allocation. I think this patch
gets it wrong in some way, and as a result tries to reserve an
amount of credits that far exceeds the maximum transaction
size for an ordinarz 128 MB journal, or maybe this hints at a
larger problem with delayed allocation of some kind.

So, it seems my options for continuing today's installation
activities are to try 2.6.26-ext4-3 but with the above patch re-
verted, or use 2.6.26-ext4-3 as is but disable delayed alloca-
tion via the mount option.

I'm very unsure about the ramifications of either. If I revert the
patch, will I get data corruption from having no solution to the
problem it attempts to fix? If I disable delayed allocation, will
my FS lose some magic I can't get back at a later date when
I renable it again? Or is delayed allocation purely a "runtime
feature" with no effects on the on-disk format?


Greetings,
Peter

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: Trying out 2.6.26-ext4-3
@ 2008-07-27 13:40 Peter Meier
  0 siblings, 0 replies; 10+ messages in thread
From: Peter Meier @ 2008-07-27 13:40 UTC (permalink / raw)
  To: linux-ext4

Hi,

since my time is running out, I have now resorted to performing
my install on the file system mounted with -o nodelalloc, and I
am going to mount it this way in the running system, too, until I
hear something about this issue being sorted.

FWIW, I could reproduce the problem reliably three times on
newly created file systems when mounted with delayed alloca-
tion enabled, and it went away when I started using nodelalloc,
so it does seem be in connection with this. Unfortunately I did
not have the time to do runs with and without Ming's credit patch,
however. But reading the code without truely understanding it,
the non-da codepath calls the function to figure out the credits
to reserver always with a single page argument, while the da
case potentially hands it a larger number, and the resulting
multiple then exceeds the maximum transaction size.

As a closing note, it would be really cool if someone could put
my mind at ease about being able to enable delayed allocation
on the existing file system later after this is sorted, and about not
missing out anything by not having it from the start. As I under-
stand it right now, the only implications of not running with delalloc
are little more fragmentation because the lack of the batching
effect from delalloc results in missed chances to get contiguous
blocks, and the FS will be slower without it, but otherwise, I'm not
missing anything and can enable delalloc later, right? (Note: A
nice answer might be eligible for the wiki, too - I'd gladly do the
work to add it).


Greetings,
Peter

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2008-08-01  9:03 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-27 10:28 Trying out 2.6.26-ext4-3 Peter Meier
2008-07-27 20:23 ` Theodore Tso
2008-07-28 15:11   ` Peter Meier
2008-07-28 17:01     ` Theodore Tso
2008-07-28 17:09       ` Peter Meier
2008-08-01  9:03       ` Peter Meier
     [not found]   ` <3.0.6.32.20080728102524.01af2ff8@pop.west.cox.net>
2008-07-28 17:30     ` Peter Meier
  -- strict thread matches above, loose matches on Subject: below --
2008-07-27 10:58 Peter Meier
2008-07-27 11:52 Peter Meier
2008-07-27 13:40 Peter Meier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).