linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [BUG ?] oom with empty nodes.
@ 2006-12-21  7:16 KAMEZAWA Hiroyuki
  0 siblings, 0 replies; only message in thread
From: KAMEZAWA Hiroyuki @ 2006-12-21  7:16 UTC (permalink / raw)
  To: LKML; +Cc: Christoph Lameter, npiggin, Andrew Morton, GOTO

On some system, there are memory-less-nodes. (IOW, cpu-only-node)
Then,there are online nodes which has no memory.

Now, below code is used to detect the context where oom happens.

===
static inline int constrained_alloc(struct zonelist *zonelist, gfp_t gfp_mask)
{
#ifdef CONFIG_NUMA
        struct zone **z;
        nodemask_t nodes = node_online_map;

        for (z = zonelist->zones; *z; z++)
                if (cpuset_zone_allowed_softwall(*z, gfp_mask))
                        node_clear(zone_to_nid(*z), nodes);
                else
                        return CONSTRAINT_CPUSET;

        if (!nodes_empty(nodes))
                return CONSTRAINT_MEMORY_POLICY;
#endif

        return CONSTRAINT_NONE;
}
==
Because the zonelist never incldues memory-less-zone, above nodemask cannot be
empty if there is a memoly-less-node, never returns CONSTRAINT_NONE.

It looks select_bad_process() and panic_on_oom is checked only when
above function returns CONSTRAINT_NONE. This means current dies every time.

Does anyone have good idea for fix this ?

-Kame


 


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-12-21  7:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-21  7:16 [BUG ?] oom with empty nodes KAMEZAWA Hiroyuki

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