Berkeley CSUA MOTD:Entry 38244
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/05/24 [General] UID:1000 Activity:popular
5/24    

2005/6/22-23 [Computer/HW/CPU] UID:38244 Activity:moderate
6/22    I'm doing some performance tuing of a multithreaded application on a
        dual-Xeon with hyperthreading.  Windows reports 4 cores and counts
        1 core @ 100% as 25% CPU usage.  I realize this is a fuzzy question,
        but what's a reasonable real-world limit for CPU usage in this
        situation, since there aren't really 4 cores?  This app has a mix of
        MMX computation, unaccelerated floating-point math, bus I/O, and a
        lot of pointer dereferencing / irregular memory access patterns.
        \_ Turn off hyperthreading.
           \_ Since I currently get around 60% reported CPU usage, it would
              seem hyperthreading is helping performance about 20%, right?
              \_ The general wisdom is that hyperthreading increases GUI
                 responsiveness but decreases overall performance by 0-5%.
                 I'm sure there's an example where hyperthreading increases
                 overall performance, but I can't think of one.
              \_ Run your app with it on and off. Compare the run times.
                 \_ Just tried that.  Hyperthreading on:  200 seconds
                                      Hyperthreading off: 220 seconds
        \_ I'm doing the same with a simulation app.  It hits the memory bus
           and CPU most.  HT actually slowed our system down considerably.  A
           dual xeon gave us about 2x speed improvement.  The dual opteron did
           the same.  We're now checking a dual opteron with each package
           having dual core.  I say this as a former Intel employee who likes
           Intel--HT sucks for anything other than casual use.  Hard. -emarkp
           \_ I agree.  If yer doing simulations or anything else hardcore,
              turn off HT.  If yer doing Word and net browsing, by all means
              turn it on because it's a more pleasant user experience.
              Or wait until the Athlon dual-cores drop from $630.
              Or don't wait and get an Intel dual-core for $250 if your room is
              too cold.
        \_ OK, so aside from dissing hyperthreading, nobody has given actual
           information on what is a realistic maximum load for a 2-Xeon
           hyperthreading system. -OP
           \_ I think you should rephrase your question. What are you
              asking? What parameter(s) do you wish to change that are
              under your control? The load should be 2 at most, since
              there are 2 CPUs. Play with it and see what happens when you
              run more processes.
        \_ Do you have two dual-core CPUs with hyperthreading enabled?
           That implies eight logical CPUs.
           If you disabled hyperthreading, then you have four logical CPUs
           and four real cores.  You should get theoretical 100% usage on
           each core.  The simplest way to do this is to write a C program
           with a while (1) loop and run it four times.
           We have an old 700 MHz 4-CPU machine at work, and I can get about
           that running Linux with top.
           For one or more real-world apps that each uses multiple threads,
           it really depends on the threading implementation in each program,
           followed by how good the kernel is at handing out tasks to 4+ CPUs.
           I can easily imagine a two-thread program that uses 100% CPU on
           one CPU and 25% CPU on a second.
           \_ I have two dual-core dual processor machines with hyperthreading
              enabled ......
              \_ So each machine has one dual-core with hyperthreading?
                 Yeah, then that means four logical CPUs, two real cores,
                 per computer.
                 You can only expect a maximum of 100% CPU usage over the
                 two logical CPUs that sit on one physical core.
                 Anyways, if you run four while (1) C programs you should
                 get 200% total over the four CPUs as reported by top.
                 Same thing for Windoze if you have four CPU graphs.
2025/05/24 [General] UID:1000 Activity:popular
5/24    

You may also be interested in these entries...
2012/3/29-6/4 [Computer/HW/Memory, Computer/HW/CPU, Computer/HW/Drives] UID:54351 Activity:nil
3/29    A friend wants a PC (no mac). She doesn't want Dell. Is there a
        good place that can custom build for you (SSD, large RAM, cheap video
        card--no game)?
        \_ As a side note: back in my Cal days more than two decades ago when
           having a 387SX made me the only person with floating-point hardware,
           most machines were custom built.
	...
2009/8/6-14 [Computer/SW/OS/OsX] UID:53250 Activity:moderate
8/5     Why is Mac OS 10.6 $29 and 10.5.6 $129? Is it a typo?
        \_ $29 for existing users.
           \_ it doens't even support ppc does it.
              \_ who cares about ppc anymore? Everything is Intel based
                 \_ I have a PPC mini at home that I use.
                 \_ I have a quad core G5 ppc.
	...
2009/6/1-3 [Computer/HW/CPU] UID:53068 Activity:high
5/31    History of winners and losers by *popularity*:
        VHS > Beta Max
        USB2 > Firewire
        x86 > PowerPC > Everything Else > DEC Alpha > Itanium
        BlueRay > HDDvd
        \_ It's too early to tell RE: "Blue"Ray. They may both turn out to be
	...
2009/5/26-30 [Computer/HW/CPU] UID:53045 Activity:nil
5/26    Engineering is HOT man! Super hot co-inventor of USB at Intel:
        http://www.youtube.com/watch?v=jqLPHrCQr2I
	...
2009/1/16-23 [Computer/HW/CPU] UID:52404 Activity:nil
1/16    AMD to layoff 9%, suspend 401(k) match, cut engineer salaries 10%
        \_ Awwww, too bad                                       -Intel
           \_ My heart bleeds for you. --transmeta.
              \_ Wait, another sodan worked there? --ex-transmeta
                 \_ Hello transmeta-coward, meet another transmeta-coward.
  http://www.theregister.co.uk/2009/01/16/amd_q1_2009_job_cuts_wage_reductions
	...
2008/12/4-10 [Computer/HW/CPU, Computer/HW/Drives] UID:52163 Activity:nil
12/4    A question to you old crufy alumni: So lately we've suggested
        VMs, and been asked why it's necessary. We've suggested top-of-the-line
        hardware and been told we don't need that much power. So I'd like to
        ask -- what exactly do you think the CSUA is supposed to _be_?
        \_ Noone said VMs weren't needed.  They suggested you use the
        \_ No one said VMs weren't needed.  They suggested you use the
	...
2008/12/4-10 [Computer/HW/Memory, Computer/HW/Drives] UID:52172 Activity:nil
12/5    What would you guys think of this?
        TYAN Tank barebone
        http://tyan.com/product_barebones_detail.aspx?pid=353
        2x Intel Quad Xeon E5420
        http://www.newegg.com/Product/Product.aspx?Item=N82E16819117147
        16GB ram
	...