Re: speeding up thread-creation

From: David Mosberger <davidm_at_napali.hpl.hp.com>
Date: 2003-11-22 05:31:06
>>>>> On Fri, 21 Nov 2003 09:22:17 -0800, Stephane Eranian <eranian@hpl.hp.com> said:

  Stephane> I assume you want to rely on the thread's flags to
  Stephane> determine if it is worth copying the thread_lazy structure
  Stephane> during a clone.

Yup.  I'd say "necessary" instead of "worth" though.  Also, we know
that the fph partition never needs to be copied (it contains scratch
registers only).

  Stephane> For perfmon, we may need to have two flags: one that says
  Stephane> we are storing information in pmds/pmcs and one that says
  Stephane> we need to context switch the PMU state. Today PM_VALID
  Stephane> flag is used to mean the latter only.

I think that would be fine.  In what cases would you want to clone the
PMU state when PM_VALID is false?

	--david
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Fri Nov 21 13:31:23 2003

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:20 EST