Will, On Mon, Oct 02, 2006 at 03:49:08PM -0400, William Cohen wrote: > > When discussing the perfmon patch changes with kernel engineers at Red Hat > it was pointed out that struct task_struct is "*enormous*". Really want to > avoid making task_struct any larger than it already is. Are other changes > possible to mitigate the size increase due to yet another pointer in > task_struct? Is there some way to avoid putting the additional field in the > task_struct? > As you point out, perfmon adds one pointer to the task struct (pfm_context). The only alternative, I can think of, would be to move the pointer from task_struct down into thread_struct which is part of task_struct. So it would not buy you anything. The pointer is needed for the per-thread mode ONLY. If you have an alternative, I would like to hear about it.
Thanks. -- -Stephane _______________________________________________ perfmon mailing list [email protected] http://www.hpl.hp.com/hosted/linux/mail-archives/perfmon/
