public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* borked sysfs system devices in 2.5.72
@ 2003-06-17 22:12 Dave Hansen
  2003-06-17 22:26 ` Patrick Mochel
  0 siblings, 1 reply; 5+ messages in thread
From: Dave Hansen @ 2003-06-17 22:12 UTC (permalink / raw)
  To: mochel; +Cc: Linux Kernel Mailing List

The per-node numa meminfo files in 2.5.72 are broken, the only display
node0's information.  The devices are being properly registered:
Registering sys device 'node0':c0423844 id:0 kobj:c042384c
Registering sys device 'node1':c0423888 id:1 kobj:c0423890
Registering sys device 'node2':c04238cc id:2 kobj:c04238d4
Registering sys device 'node3':c0423910 id:3 kobj:c0423918

When I look at the 4 nodes files with:
"cat /sys/devices/system/node/*/meminfo", I printed out some
information:
subsys_attr_show(kobj: c042384c, attr: c033ea30, page: e76ba000)
subsys_attr_show(kobj: c0423890, attr: c033ea30, page: e76ba000)
subsys_attr_show(kobj: c04238d4, attr: c033ea30, page: e76ba000)
subsys_attr_show(kobj: c0423918, attr: c033ea30, page: e76ba000)

As you can see, the kobj is the one which belongs to the sys device, yet
you do a to_subsys() on it.  Why?
struct subsystem * s = to_subsys(kobj);

I'm getting a 0 as the node ID out of pure dumb luck.  Is the NUMA code
broken or is sysfs?

-- 
Dave Hansen
haveblue@us.ibm.com


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-06-17 22:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-17 22:12 borked sysfs system devices in 2.5.72 Dave Hansen
2003-06-17 22:26 ` Patrick Mochel
2003-06-17 22:31   ` Dave Hansen
2003-06-17 22:54     ` Patrick Mochel
2003-06-17 22:58       ` Dave Hansen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox