* [Bug translator/3232] New: unable to allocate memory for context on rawhide x86_64
@ 2006-09-20 15:44 wcohen at redhat dot com
2006-09-20 18:01 ` [Bug translator/3232] " fche at redhat dot com
` (5 more replies)
0 siblings, 6 replies; 8+ messages in thread
From: wcohen at redhat dot com @ 2006-09-20 15:44 UTC (permalink / raw)
To: systemtap
When trying to run the "make installcheck" tests on a updated x86_64 rawhide/fc6
machine many of the tests fail, even simple ones like
src/testsuite/systemtap.base/add.stp.
./stap -k -vv
/home/wcohen/stap_testing_200609201420/src/testsuite/systemtap.base/add.stp
towards the end gives the following error message
Running sudo
/home/wcohen/stap_testing_200609201420/install/libexec/systemtap/stpd -u wcohen
-d 25459 /tmp/stap4llS8n/stap_25459.ko
insmod: error inserting '/tmp/stap4llS8n/stap_25459.ko': -1 Cannot allocate memory
Doing a narrows the problem down to something that change between september 18
and september 19:
20060914 Worked
20060918 Worked /tmp/stapCto3iJ/stap_26001.c
20060919 Failed /tmp/stapLIgdOB/stap_26093.c
20060920 Failed
There do not seem to be obvious differences between the .c files used to
generate the modules that would cause a problem. However, the problem seems to
follow the compile module, .ko:
$ sudo /home/wcohen/stap_testing_200609180830/install/libexec/systemtap/stpd -u
wcohen -d 26455 /tmp/stapCto3iJ/stap_26001.ko
systemtap starting probe
systemtap ending probe
systemtap test success
$ sudo /home/wcohen/stap_testing_200609180830/install/libexec/systemtap/stpd -u
wcohen -d 26455 /tmp/stapLIgdOB/stap_26093.ko
insmod: error inserting '/tmp/stapLIgdOB/stap_26093.ko': -1 Cannot allocate memory
ERROR, couldn't insmod probe module /tmp/stapLIgdOB/stap_26093.ko
--
Summary: unable to allocate memory for context on rawhide x86_64
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: translator
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: wcohen at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=3232
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug translator/3232] unable to allocate memory for context on rawhide x86_64
2006-09-20 15:44 [Bug translator/3232] New: unable to allocate memory for context on rawhide x86_64 wcohen at redhat dot com
@ 2006-09-20 18:01 ` fche at redhat dot com
2006-09-20 18:26 ` wcohen at redhat dot com
` (4 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: fche at redhat dot com @ 2006-09-20 18:01 UTC (permalink / raw)
To: systemtap
------- Additional Comments From fche at redhat dot com 2006-09-20 18:01 -------
There were no translator changes over the last few days,
but several tapset & runtime changes were checked in.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=3232
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug translator/3232] unable to allocate memory for context on rawhide x86_64
2006-09-20 15:44 [Bug translator/3232] New: unable to allocate memory for context on rawhide x86_64 wcohen at redhat dot com
2006-09-20 18:01 ` [Bug translator/3232] " fche at redhat dot com
@ 2006-09-20 18:26 ` wcohen at redhat dot com
2006-09-20 18:43 ` Martin Hunt
2006-09-20 18:34 ` wcohen at redhat dot com
` (3 subsequent siblings)
5 siblings, 1 reply; 8+ messages in thread
From: wcohen at redhat dot com @ 2006-09-20 18:26 UTC (permalink / raw)
To: systemtap
------- Additional Comments From wcohen at redhat dot com 2006-09-20 18:26 -------
After I filed the bz, I realized that translator was unlikely cause of the
problem. The generated C code was very similar between working and non working
versions. With all the tapsets being translated into C by the translator it
seems like the runtime would be the like cause. The following change set looks
like a possible canidate:
PatchSet 1154
Date: 2006/09/18 12:44:19
Author: hunt
Branch: HEAD
Tag: (none)
Log:
2006-09-18 Martin Hunt <hunt@redhat.com>
* print.c (_stp_print_flush): Rewrite so one version works for
relayfs or procfs. Use proper per-cpu functions.
(_stp_reserve_bytes): New function. Reserve bytes in the output buffer.
(_stp_print_binary): New function. Write a variable number of
64-bit values directly into the output buffer.
* string.c (_stp_sprintf): Rewrite using new per-cpu buffers.
(_stp_vsprintf): Ditto.
(_stp_string_cat_cstr): Ditto.
(_stp_string_cat_char): Ditto.
* runtime.h: Set defaults for MAXTRYLOCK and TRYLOCKDELAY to make
runtime tests in bench2 happy.
Doing a binary search to find out which checkin is causing the problem.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=3232
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug translator/3232] unable to allocate memory for context on rawhide x86_64
2006-09-20 15:44 [Bug translator/3232] New: unable to allocate memory for context on rawhide x86_64 wcohen at redhat dot com
2006-09-20 18:01 ` [Bug translator/3232] " fche at redhat dot com
2006-09-20 18:26 ` wcohen at redhat dot com
@ 2006-09-20 18:34 ` wcohen at redhat dot com
2006-09-20 18:44 ` hunt at redhat dot com
` (2 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: wcohen at redhat dot com @ 2006-09-20 18:34 UTC (permalink / raw)
To: systemtap
------- Additional Comments From wcohen at redhat dot com 2006-09-20 18:34 -------
The RHEL4 x86_64 tests ran fine on 2.6.9-42.0.2.ELsmp, so the particular kernel
plays some part in problem.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=3232
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Bug translator/3232] unable to allocate memory for context on rawhide x86_64
2006-09-20 18:26 ` wcohen at redhat dot com
@ 2006-09-20 18:43 ` Martin Hunt
0 siblings, 0 replies; 8+ messages in thread
From: Martin Hunt @ 2006-09-20 18:43 UTC (permalink / raw)
To: sourceware-bugzilla; +Cc: systemtap
The big change in memory allocation I made was using DEFINE_PER_CPU. I'm
allocating a bit over 8K per cpu. Previously I was just declaring a
static array indexed by cpu number.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug translator/3232] unable to allocate memory for context on rawhide x86_64
2006-09-20 15:44 [Bug translator/3232] New: unable to allocate memory for context on rawhide x86_64 wcohen at redhat dot com
` (2 preceding siblings ...)
2006-09-20 18:34 ` wcohen at redhat dot com
@ 2006-09-20 18:44 ` hunt at redhat dot com
2006-09-20 18:52 ` hunt at redhat dot com
2006-09-21 16:08 ` hunt at redhat dot com
5 siblings, 0 replies; 8+ messages in thread
From: hunt at redhat dot com @ 2006-09-20 18:44 UTC (permalink / raw)
To: systemtap
------- Additional Comments From hunt at redhat dot com 2006-09-20 18:43 -------
Subject: Re: unable to allocate memory for context on
rawhide x86_64
The big change in memory allocation I made was using DEFINE_PER_CPU. I'm
allocating a bit over 8K per cpu. Previously I was just declaring a
static array indexed by cpu number.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=3232
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug translator/3232] unable to allocate memory for context on rawhide x86_64
2006-09-20 15:44 [Bug translator/3232] New: unable to allocate memory for context on rawhide x86_64 wcohen at redhat dot com
` (3 preceding siblings ...)
2006-09-20 18:44 ` hunt at redhat dot com
@ 2006-09-20 18:52 ` hunt at redhat dot com
2006-09-21 16:08 ` hunt at redhat dot com
5 siblings, 0 replies; 8+ messages in thread
From: hunt at redhat dot com @ 2006-09-20 18:52 UTC (permalink / raw)
To: systemtap
------- Additional Comments From hunt at redhat dot com 2006-09-20 18:51 -------
OK, this is my bug. Need to find a percpu allocation that works for modules on
all kernels.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
http://sourceware.org/bugzilla/show_bug.cgi?id=3232
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug translator/3232] unable to allocate memory for context on rawhide x86_64
2006-09-20 15:44 [Bug translator/3232] New: unable to allocate memory for context on rawhide x86_64 wcohen at redhat dot com
` (4 preceding siblings ...)
2006-09-20 18:52 ` hunt at redhat dot com
@ 2006-09-21 16:08 ` hunt at redhat dot com
5 siblings, 0 replies; 8+ messages in thread
From: hunt at redhat dot com @ 2006-09-21 16:08 UTC (permalink / raw)
To: systemtap
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|systemtap at sources dot |hunt at redhat dot com
|redhat dot com |
http://sourceware.org/bugzilla/show_bug.cgi?id=3232
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2006-09-21 16:08 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-20 15:44 [Bug translator/3232] New: unable to allocate memory for context on rawhide x86_64 wcohen at redhat dot com
2006-09-20 18:01 ` [Bug translator/3232] " fche at redhat dot com
2006-09-20 18:26 ` wcohen at redhat dot com
2006-09-20 18:43 ` Martin Hunt
2006-09-20 18:34 ` wcohen at redhat dot com
2006-09-20 18:44 ` hunt at redhat dot com
2006-09-20 18:52 ` hunt at redhat dot com
2006-09-21 16:08 ` hunt at redhat dot com
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 read-only IMAP folder(s) and NNTP newsgroup(s).