linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Use of kmalloc vs vmalloc in ext4?
@ 2009-03-11 14:32 Curt Wohlgemuth
  2009-04-06  6:45 ` Michael Rubin
  0 siblings, 1 reply; 9+ messages in thread
From: Curt Wohlgemuth @ 2009-03-11 14:32 UTC (permalink / raw)
  To: linux-ext4

I've been running various tests of ext4 partitions lately, and have
found that with very low memory situations, I'm getting intermittent
mount failures due to ENOMEM from ext4_mb_init() and
ext4_fill_flex_info() .  Here's a typical dmesg from the latter:

          EXT4-fs: not enough memory for 8198 flex groups
          EXT4-fs: unable to initialize flex_bg meta info!

This is from a kzalloc() call of size ~64k .  I think the
ext4_mb_init() calls to kmalloc() and alloc_percpu() are even smaller.

I was wondering why all the code in ext4 (and ext[23], for that
matter) uses kmalloc() and friends instead of vmalloc(), at least
where it's safe; is it just for performance reasons?

I've seen the above errors when I do a mount -a, causing several
partitions to be mounted; I can usually mount the failed ones by hand
right afterwards, but this is a big difference for us, in our
environment, compared to, say, ext2 partitions.

Thanks,
Curt

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

end of thread, other threads:[~2009-04-26  2:12 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-11 14:32 Use of kmalloc vs vmalloc in ext4? Curt Wohlgemuth
2009-04-06  6:45 ` Michael Rubin
2009-04-06  9:33   ` Andreas Dilger
2009-04-25  3:00   ` [PATCH] ext4: Fallback to vmalloc if kmalloc can't allocate s_flex_groups array Theodore Ts'o
2009-04-25  3:28     ` Eric Sandeen
2009-04-25  3:57       ` Theodore Tso
2009-04-25  3:07   ` Use of kmalloc vs vmalloc in ext4? Theodore Tso
2009-04-25  3:39     ` Theodore Tso
2009-04-26  2:12       ` Theodore Tso

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).