* __you_cannot_kmalloc_that_much
@ 2003-06-19 18:33 Luck, Tony
2003-06-19 18:38 ` __you_cannot_kmalloc_that_much David Mosberger
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Luck, Tony @ 2003-06-19 18:33 UTC (permalink / raw)
To: linux-ia64
While trying to compile the latest pull from
the lia64.bkbits.net:8080/linux-ia64-2.5
repository I hit the "you_cannot_kmalloc_that_much"
message in the final link.
The culprit is in
drivers/usb/host/uhci-debug.c
which contains:
#define MAX_OUTPUT (PAGE_SIZE * 16)
...
up->data = kmalloc(MAX_OUTPUT, GFP_KERNEL);
With the default 16k page size we are trying to
allocate 256K of memory, which is bigger that the
largest size pool in include/linux/kmalloc_sizes.h
Do we need a larger pool (I don't think so) or is
this allocation excessive?
-Tony
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: __you_cannot_kmalloc_that_much
2003-06-19 18:33 __you_cannot_kmalloc_that_much Luck, Tony
@ 2003-06-19 18:38 ` David Mosberger
2003-06-19 19:03 ` __you_cannot_kmalloc_that_much Luck, Tony
2003-06-19 19:15 ` __you_cannot_kmalloc_that_much David Mosberger
2 siblings, 0 replies; 4+ messages in thread
From: David Mosberger @ 2003-06-19 18:38 UTC (permalink / raw)
To: linux-ia64
>>>>> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: __you_cannot_kmalloc_that_much
2003-06-19 18:33 __you_cannot_kmalloc_that_much Luck, Tony
2003-06-19 18:38 ` __you_cannot_kmalloc_that_much David Mosberger
@ 2003-06-19 19:03 ` Luck, Tony
2003-06-19 19:15 ` __you_cannot_kmalloc_that_much David Mosberger
2 siblings, 0 replies; 4+ messages in thread
From: Luck, Tony @ 2003-06-19 19:03 UTC (permalink / raw)
To: linux-ia64
> 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?
Ok, I sent an e-mail to Johannes Erdfelt (with a Cc: to the
linux-usb-users mailing list) with a patch to switch the size
to a fixed 64k.
But I'm still not out of the woods ... with this patch applied
I get a:
undefined reference to `local symbols in discarded section .exit.text'
message. Is this related to the warning about using an old linker?
gcc: 3.2
as: GNU assembler version 2.13.90
ld: GNU ld version 2.13.90.0.2 20020802
-Tony
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: __you_cannot_kmalloc_that_much
2003-06-19 18:33 __you_cannot_kmalloc_that_much Luck, Tony
2003-06-19 18:38 ` __you_cannot_kmalloc_that_much David Mosberger
2003-06-19 19:03 ` __you_cannot_kmalloc_that_much Luck, Tony
@ 2003-06-19 19:15 ` David Mosberger
2 siblings, 0 replies; 4+ messages in thread
From: David Mosberger @ 2003-06-19 19:15 UTC (permalink / raw)
To: linux-ia64
>>>>> On Thu, 19 Jun 2003 12:03:43 -0700, "Luck, Tony" <tony.luck@intel.com> said:
Tony> undefined reference to `local symbols in discarded section .exit.text'
Tony> message. Is this related to the warning about using an old linker?
Not likely. It sounds like a driver is failing to use __exit_p() (see
linux/init.h).
--david
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-06-19 19:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-19 18:33 __you_cannot_kmalloc_that_much Luck, Tony
2003-06-19 18:38 ` __you_cannot_kmalloc_that_much David Mosberger
2003-06-19 19:03 ` __you_cannot_kmalloc_that_much Luck, Tony
2003-06-19 19:15 ` __you_cannot_kmalloc_that_much David Mosberger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox