Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 427588 - stabilize =sys-process/numad-0.5
Summary: stabilize =sys-process/numad-0.5
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Keywording and Stabilization (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Doug Goldstein (RETIRED)
URL:
Whiteboard:
Keywords: STABLEREQ
Depends on:
Blocks:
 
Reported: 2012-07-22 01:42 UTC by Doug Goldstein (RETIRED)
Modified: 2012-08-04 10:25 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Doug Goldstein (RETIRED) gentoo-dev 2012-07-22 01:42:58 UTC
stabilize =sys-process/numad-0.5

target keywords: amd64 x86
Comment 1 Myckel Habets 2012-07-22 08:51:35 UTC
Builds fine on x86. No hardware to test:

# numactl --show
physcpubind: 0 
No NUMA support available on this system.

Please mark stable for x86.
Comment 2 Jimmy.Jazz 2012-07-22 14:02:49 UTC
I made some trivial changes but I don't use numad. I only have one node.

sysfs standard kernel file system has /sys/devices/system/node/node0/hugepages but no redhat_ something... it's a pity that redhat hardcode and pollute the code with none portable aberration.

--- /usr/portage/sys-process/numad/numad-0.5.ebuild	2012-06-14 07:28:06.000000000 +0200
+++ numad-0.5.ebuild	2012-07-08 18:40:16.638932478 +0200
@@ -31,6 +31,8 @@
 src_prepare() {
 	EPATCH_FORCE=yes EPATCH_SUFFIX="patch" EPATCH_SOURCE="${FILESDIR}" \
 		epatch
+
+	sed -i 's/redhat_transparent_hugepage/transparent_hugepage/' numad.c || die
 }
 
 src_configure() {
@@ -39,4 +41,6 @@
 
 src_install() {
 	emake prefix="${ED}/usr" install
+	insinto /etc
+	doins numad.conf

I tested the daemon as follows,

/usr/bin/numad -i 15 -D /sys/fs/cgroup -l 7&

# numactl --show
policy: default
preferred node: current
physcpubind: 0 1 2 
cpubind: 0 
nodebind: 0 
membind: 0 

Wed Jul 18 22:13:07 2012
Nodes: 1
Node 0: MBs_total 3966, MBs_free 873, CPUs_total 300, CPUs_free 139,  Distance: 10  CPUs: 0-2

Understand who can
Comment 3 Myckel Habets 2012-07-22 15:29:23 UTC
(In reply to comment #2)
> I made some trivial changes but I don't use numad. I only have one node.
> 

This is a stabilization bug, no changes here. Post a new bug and wait for it to be assigned to a maintainer.
Comment 4 Tomáš "tpruzina" Pružina (amd64 [ex]AT) 2012-07-29 09:24:36 UTC
amd64: builds fine, don't have hw to test either
Comment 5 Jeff (JD) Horelick (RETIRED) gentoo-dev 2012-07-30 06:40:32 UTC
x86 stable, thanks Myckel. I had a friend with a NUMA-ified Gentoo system test for me and it seems to work for him on a stable system.
Comment 6 Agostino Sarubbo gentoo-dev 2012-08-04 10:12:32 UTC
@cardoe, it ignores CC and CFLAGS, please fix it.
Comment 7 Agostino Sarubbo gentoo-dev 2012-08-04 10:25:43 UTC
amd64 stable