From: "Scott Lurndal" <scott@lurndal.org>
To: Michael Spiegel <michael.m.spiegel@gmail.com>
Cc: linux-numa@vger.kernel.org
Subject: Re: segmentation fault in numa_node_to_cpus_v1
Date: Mon, 1 Nov 2010 12:39:10 -0800 [thread overview]
Message-ID: <554047d4983bf2c59dca5e3da45cd489.squirrel@www.lurndal.org> (raw)
In-Reply-To: <AANLkTi==WBS+fyA116jOjvZTdfYE8=o0EssGymfcXfFz@mail.gmail.com>
On Mon, November 1, 2010 11:52 am, Michael Spiegel wrote:
> Hi,
>
> I'm trying to run the HotSpot Java VM on an SGI UV 1000 with 4096
> cores. When I enable the NUMA-aware garbage collection algorithm, I
> get a segmentation fault as the virtual machine is initializing. The
> sigsegv is occurring at one of the memcpy's in numa_node_to_cpus_v1,
> although I'm afraid I can't determine whether libnuma is being called
> correctly or incorrectly. I am testing on a system that has numactl
> 2.0.5.
I ran into this issue with Oracle 11i. It was linked against a library
with an older API. Because I coulnd't change oracle, I modified the
libnuma.so we were using as follows:
libnuma.c:
@@ -1240,7 +1246,7 @@
}
return err;
}
-__asm__(".symver numa_node_to_cpus_v1,numa_node_to_cpus@libnuma_1.1");
+__asm__(".symver numa_node_to_cpus_v2,numa_node_to_cpus@libnuma_1.1");
/*
* test whether a node has cpus
@@ -1316,7 +1322,7 @@
}
return err;
}
-__asm__(".symver numa_node_to_cpus_v2,numa_node_to_cpus@@libnuma_1.2");
+__asm__(".symver numa_node_to_cpus_v1,numa_node_to_cpus@@libnuma_1.2");
make_internal_alias(numa_node_to_cpus_v1);
make_internal_alias(numa_node_to_cpus_v2);
After replacing the libnuma.so that was being used by oracle with a new
one where I swapped the symbol versions, oracle started working correctly.
scott
next prev parent reply other threads:[~2010-11-01 20:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-01 19:52 segmentation fault in numa_node_to_cpus_v1 Michael Spiegel
2010-11-01 20:39 ` Scott Lurndal [this message]
2010-11-01 22:59 ` Cliff Wickman
2010-11-02 1:10 ` Michael Spiegel
2010-11-02 1:36 ` Scott Lurndal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=554047d4983bf2c59dca5e3da45cd489.squirrel@www.lurndal.org \
--to=scott@lurndal.org \
--cc=linux-numa@vger.kernel.org \
--cc=michael.m.spiegel@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).