Thread costs

Article: Nehalem Performance Preview
By: Henrik S (henrik.stahl.delete@this.nospam.oracle.nothanks.com), April 14, 2009 1:08 pm
Room: Moderated Discussions
David Kanter (dkanter@realworldtech.com) on 4/13/09 wrote:
---------------------------
>>>>jbb creates threads at the start of each warehouse run, and then lets them terminate at the end of the warehous run. Warehouse runs are ramped up from 1 to 2xCPU count threads, with 30/240s runtime per iteration for warmup/scoring respectively. See the jbb docs on http://www.spec.org
>>>>
>>>>for more detail.
>>>
>>>I really tought JBB was creating one thread for each "business operation" (a "client
>>>request"?), not a few long running threads, hum... How scores would be affected if that was the case?
>>
>>That would definitely change the profile. Threads are >expensive to set up and tear
>>down, so this is not a common pattern in Java apps.
>
>Henrik,
>
>What is the cost of setting up a Java thread? I'm assuming you measure it in either:
>1. Cycles
>2. Wallclock time
>3. Instructions

>What about the cost of destroying a thread? I'm not asking for JRockit specific numbers, but good general ranges.
>David

Don't know the answer to either of those... With "cost" I meant resources consumed by the each thread (heap memory and native memory). Tearing it down means freeing all those resources in a controlled fashion, and freeing is not free in Java due to the automated memory mgtm (GC).
< Previous Post in ThreadNext Post in Thread >
TopicPosted ByDate
Nehalem review upDavid Kanter2009/04/07 02:43 AM
  Nehalem review upnoone2009/04/07 05:48 AM
  Strange jbb on HarpertownHenrik S2009/04/07 07:29 AM
    Strange jbb on HarpertownDavid Kanter2009/04/07 10:19 AM
      Strange jbb on HarpertownHenrik S2009/04/07 08:33 PM
        Strange jbb on HarpertownChris2009/04/07 11:54 PM
          Strange jbb on HarpertownHenrik S2009/04/08 01:40 AM
  Nehalem review upVincent Diepeveen2009/04/07 07:34 AM
    Nehalem review upJack2009/04/09 03:51 PM
      Nehalem review upVincent Diepeveen2009/04/10 12:58 AM
        Nehalem review upMichael S2009/04/10 02:45 AM
          Nehalem review upEduardoS2009/04/10 06:01 AM
            Nehalem review upMichael S2009/04/10 06:56 AM
          Nehalem review upEugene Nalimov2009/04/10 08:12 AM
          Choice of C compiler doesn't matter much for Java...Henrik S2009/04/10 09:10 AM
            Choice of C compiler doesn't matter much for Java...EduardoS2009/04/10 01:49 PM
              Choice of C compiler doesn't matter much for Java...Henrik S2009/04/11 06:13 AM
                Choice of C compiler doesn't matter much for Java...EduardoS2009/04/11 10:30 AM
                  Large pagesDavid Kanter2009/04/11 01:02 PM
                  Choice of C compiler doesn't matter much for Java...Henrik S2009/04/11 10:06 PM
                    Choice of C compiler doesn't matter much for Java...Paul2009/04/12 12:53 AM
                      Choice of C compiler doesn't matter much for Java...iz2009/04/12 01:59 AM
                      Choice of C compiler doesn't matter much for Java...Henrik S2009/04/12 06:37 AM
                    Choice of C compiler doesn't matter much for Java...EduardoS2009/04/12 07:08 AM
                      Choice of C compiler doesn't matter much for Java...Henrik S2009/04/12 08:25 AM
                        Choice of C compiler doesn't matter much for Java...EduardoS2009/04/12 04:24 PM
                          Choice of C compiler doesn't matter much for Java...Henrik S2009/04/12 09:18 PM
                            Thread costsDavid Kanter2009/04/12 11:12 PM
                              Thread costsHenrik S2009/04/14 01:08 PM
            Choice of C compiler doesn't matter much for Java...Michael S2009/04/11 07:53 AM
              Choice of C compiler doesn't matter much for Java...Henrik S2009/04/11 10:08 PM
          Nehalem review upVincent Diepeveen2009/04/11 03:50 PM
            Nehalem review upMichael S2009/04/11 04:12 PM
              Nehalem review upVincent Diepeveen2009/04/12 02:01 AM
                Nehalem review upMichael S2009/04/12 04:07 AM
  Nehalem review uprwessel2009/04/07 01:01 PM
    Nehalem review upslacker2009/04/08 08:11 AM
      Energy vs. powerDavid Kanter2009/04/08 09:11 AM
        Energy vs. powerVincent Diepeveen2009/04/10 01:08 AM
          Energy vs. powerslacker2009/04/10 08:26 AM
            Energy vs. powerRagingDragon2009/04/10 09:19 AM
              Energy vs. powerDavid Kanter2009/04/10 10:47 AM
              Energy vs. powerJack2009/04/10 03:44 PM
                Energy vs. powerslacker2009/04/10 06:00 PM
                  Energy vs. powerJack2009/04/10 06:31 PM
                  Energy vs. powerDavid Kanter2009/04/10 11:16 PM
      Nehalem review uprwessel2009/04/08 01:32 PM
  Minor font issuegpriatko2009/04/07 03:35 PM
    Minor HTML issueDavid Kanter2009/04/07 08:38 PM
      Minor HTML issueDavid Kanter2009/04/07 08:39 PM
  Good work, i look forward to linux and SP2 numbers (NT)PiedPiper2009/04/08 12:52 AM
  Nehalem review upJoe Chang2009/04/10 02:59 AM
Reply to this Topic
Name:
Email:
Topic:
Body: No Text
How do you spell avocado?