Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Sep 2006 17:15:25 +0000 (UTC)
From:      Maxim Sobolev <sobomax@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/i386/i386 local_apic.c src/sys/amd64/amd64 local_apic.c
Message-ID:  <200609051715.k85HFPtF078969@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
sobomax     2006-09-05 17:15:25 UTC

  FreeBSD src repository

  Modified files:
    sys/i386/i386        local_apic.c 
    sys/amd64/amd64      local_apic.c 
  Log:
  The FreeBSD by default "disables" hyper-threading cores, by not scheduling
  any threads to them. However, it still counts those cores as "active but
  permanently idle" when calculating system-wide CPUs statistics. It is
  incorrect, since it skews statistics quite a bit and creates real problems
  for certain types of applications (monitoring applications for example),
  by making them believe that the system does have enough idle CPU resources,
  while in fact it does not.
  
  Correct the problem by not calling performance counting routines on "disabled"
  cores. The cleaner solution would be to just disable APIC timer interrupts on
  those cores completely, but ENOTIME here and it is not clear if the
  additional complexity really worth minor performance gain.
  
  Reviewed by:    ssouhlal
  Sponsored by:   Sippy Software, Inc.
  MFC after:      2 weeks
  
  Revision  Changes    Path
  1.27      +10 -0     src/sys/amd64/amd64/local_apic.c
  1.29      +10 -0     src/sys/i386/i386/local_apic.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200609051715.k85HFPtF078969>