Re: __you_cannot_kmalloc_that_much

From: David Mosberger <davidm_at_napali.hpl.hp.com>
Date: 2003-06-20 04:38:47
>>>>> On Thu, 19 Jun 2003 11:33:59 -0700, "Luck, Tony" <tony.luck@intel.com> said:

  Tony> While trying to compile the latest pull from
  Tony> the lia64.bkbits.net:8080/linux-ia64-2.5
  Tony> repository I hit the "you_cannot_kmalloc_that_much"
  Tony> message in the final link.

  Tony> The culprit is in

  Tony> drivers/usb/host/uhci-debug.c

  Tony> which contains:

  Tony> #define MAX_OUTPUT      (PAGE_SIZE * 16)

  Tony> ...

  up-> data = kmalloc(MAX_OUTPUT, GFP_KERNEL);

  Tony> With the default 16k page size we are trying to
  Tony> allocate 256K of memory, which is bigger that the
  Tony> largest size pool in include/linux/kmalloc_sizes.h


  Tony> Do we need a larger pool (I don't think so) or is
  Tony> this allocation excessive?

Clearly the latter.  If it works with 4KB page size on x86, certainly
we don't need 4 or 8 times more space on ia64.

Can you take this up directly with the author of the offending line?

Thanks,

	--david
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Thu Jun 19 14:39:16 2003

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:15 EST