LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Hyperthreading and SMP testing

[ILUG] Hyperthreading and SMP testing

Brian Foster blf at utvinternet.ie
Wed Apr 14 21:09:36 IST 2004


  | Date: Wed, 14 Apr 2004 11:27:55 +0100
  | From: "Kenn Humborg" <kenn at bluetree.ie>
  | 
  | It's always a very good idea to test multi-threaded
  | code on an SMP machine, since it increases the chances
  | of race conditions, deadlocks, etc, occurring.

 a tool you might want to take a very close look at is
 `valgrind'.  (sorry, I don't have the URL at hand,
 try http://valgrind.kde.org or use Google™.)  it has
 a number of useful sub-tools, including:

   • Memcheck detects memory-management problems ‥
   • Cachegrind is a cache profiler ‥
   • Helgrind is an (experimental) data-race checker ‥

 I use “memcheck‟ extensively at work, and It Rocks!
 I have had no occasion to use “helgrind‟ yet, but
 it could be quite useful in multi-threaded testing?

  | However, is it good enough to test on a Pentium with
  | hyperthreading, rather than a real SMP machine?
  | How close is hyperthreading to real SMP?

 assuming “hyperthreading‟ is Intel(?)'s marketoid
 newspeak for “overlapped instruction execution‟
 (a form of “(memory) latency hiding‟), it is not
 a adequate subsistute for testing on The Real Thing
 (but won't hurt):  overlapped instructions are about
 reducing latency within a single CPU by fine-grained
 scheduling of the pipeline stages, so there is a
 considerable amount of intra-CPU contention logic
 which is noticeably absent in multi-CPU systems,
 including SMP.

cheers!
	-blf-
--
«How many surrealists does it take to    |  Brian Foster      Montpellier,
 change a lightbulb?  Three.  One calms  |  blf at utvinternet.ie      France
 the warthog, and two fill the bathtub   |    Stop E$$o (ExxonMobile)!
 with brightly-colored machine tools.»   |        http://www.stopesso.com



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell