[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-kernel
Subject: Re: [PATCH] tvec_bases too large for per-cpu data
From: Andrew Morton <akpm () osdl ! org>
Date: 2006-01-31 22:27:08
Message-ID: 20060131142708.2b995f7c.akpm () osdl ! org
[Download RAW message or body]
"Jan Beulich" <JBeulich@novell.com> wrote:
>
> Hopefully attached revised patch addresses all concerns mentioned (except that it intentionally continues to not use
> alloc_percpu()).
This remains unaddressed:
+#ifdef CONFIG_NUMA
+ base = kmalloc_node(sizeof(*base), GFP_KERNEL, cpu_to_node(cpu));
+ if (!base)
+ /* Just in case, fall back to normal allocation. */
+#endif
+ base = kmalloc(sizeof(*base), GFP_KERNEL);
+ if (!base)
+ return -ENOMEM;
If we cannot allocate memory on this node for this CPU (wildly unlikely,
btw) we face a choice. Either
a) Allocate memory from some other node, making the machine mysteriously
run slower for the remainder of its uptime or
b) Fail the CPU bringup.
I think b) is better - it tells the operator that something went wrong, so
some sort of corrective action can be taken. I suspect that most operators
would prefer that to having the kernel secretly make their machine run
slower.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic