This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug runtime/10516] on rawhide, getting a warning about bad percpu allocation


------- Additional Comments From wenji dot huang at oracle dot com  2009-08-18 01:25 -------
Reproduced on x86_64 2.6.31-rc6, but works fine on x86 2.6.31-rc6.

$ stap -v systemtap.printf/memory1.stp
Pass 1: parsed user script and 59 library script(s) in 310usr/60sys/369real ms.
Pass 2: analyzed script: 2 probe(s), 6 function(s), 14 embed(s), 0 global(s) in
780usr/380sys/1165real ms.
Pass 3: translated to C into
"/tmp/stapp5DGZt/stap_87fc0586871670d76847178631c22a98_21602.c" in
800usr/100sys/895real ms.
Pass 4: compiled C into "stap_87fc0586871670d76847178631c22a98_21602.ko" in
8370usr/6570sys/14450real ms.
Pass 5: starting run.
ERROR: percpu context (size 103912) allocation failed
Pass 5: run completed in 10usr/100sys/141real ms.

This is a VMware box with two cpus. Dmesg said,

[258068.721067] WARNING: at mm/percpu.c:786 pcpu_alloc+0x55/0x3d8()
[258068.722067] Hardware name: VMware Virtual Platform
[258068.723067] illegal size (103912) or align (8) for percpu allocation
[258068.724067] Modules linked in: stap_87fc0586871670d76847178631c22a98_21602
[last unloaded: stap_87fc0586871670d76847178631c22a98_21602]
[258068.725067] Pid: 19529, comm: stapio Tainted: G        W  2.6.31-rc6 #10
[258068.726067] Call Trace:
[258068.727067]  [<ffffffff810cfa77>] ? pcpu_alloc+0x55/0x3d8
[258068.727067]  [<ffffffff8103f80a>] warn_slowpath_common+0x7c/0x94
[258068.728067]  [<ffffffff8103f8a1>] warn_slowpath_fmt+0x69/0x6b
[258068.729067]  [<ffffffff810be6e4>] ? alloc_vmap_area+0x1f2/0x20a
[258068.730067]  [<ffffffff810be796>] ? __get_vm_area_node+0x9a/0x1ba
[258068.731067]  [<ffffffff810b3b09>] ? pmd_alloc+0x2e/0x39
[258068.731067]  [<ffffffff810b7417>] ? apply_to_page_range+0x1e1/0x25b
[258068.732067]  [<ffffffff810cfa77>] pcpu_alloc+0x55/0x3d8
[258068.733067]  [<ffffffff81027d7d>] ? vmalloc_sync_all+0xe7/0x10f
[258068.734067]  [<ffffffff810cfe1f>] __alloc_percpu+0x10/0x15
[258068.735067]  [<ffffffffa003cf2a>] _stp_ctl_write_cmd+0x229/0x539
[stap_87fc0586871670d76847178631c22a98_21602]
[258068.735067]  [<ffffffff8103249c>] ? __dequeue_entity+0x33/0x38
[258068.735067]  [<ffffffff810324c9>] ? set_next_entity+0x28/0x78
[258068.735067]  [<ffffffff8100ae80>] ? __switch_to+0x134/0x1c4
[258068.735067]  [<ffffffff81094811>] ? trace_hardirqs_on+0x9/0x20
[258068.736067]  [<ffffffff81035b80>] ? finish_task_switch+0x56/0x9f
[258068.738067]  [<ffffffff8119adb0>] ? security_file_permission+0x16/0x18
[258068.739067]  [<ffffffff810d2246>] vfs_write+0xb0/0x10a
[258068.741067]  [<ffffffff810d2364>] sys_write+0x4c/0x72
[258068.742067]  [<ffffffff8100bc9b>] system_call_fastpath+0x16/0x1b
[258068.743067] ---[ end trace ccde141178315c39 ]--- 

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=10516

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]