[netperf-dev] issues uncovered by the glib porting
Rick Jones
rick.jones2 at hp.com
Thu Mar 2 15:36:30 PST 2006
it seems that the port to glib may be uncovering some issues -
particularly wrt processor affinity for the different threads.
the types for the "thread id's" between pthreads and glib threads are
rather different. different enough that I've not quite found a decent
abstraction for them that satisfies the compiler (gcc under linux in
this case) for both compilation choices (configure and configure
--with-glib)
also, while a pthread_t can be passed-in to sched_setaffinity, or the
HP-UX affinity calls - or so it seems, a GThread cannot.
I would switch to using say pthread_self() in those situations, but that
will not work at present - mainly because it is not the thread itself
that makes the affinity call, it is the main netserver thread.
so, the netserver thread needs to know the "scheduling" thread id, which
means knowing how to delve into the opaque GTread type, or we need to
structure the code such that the affinity calls are made by the threads
themselves
thoughts?
rick
More information about the netperf-dev
mailing list