Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Jul 2010 16:46:42 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/kern kern_cpu.c
Message-ID:  <201007231646.o6NGksIK079899@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
avg         2010-07-23 16:46:42 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             kern_cpu.c 
  Log:
  SVN rev 210422 on 2010-07-23 16:46:42Z by avg
  
  cpufreq: allocate long-lived buffer for handling of sysctl requests
  
  At present the cpufreq sysctl handler for current level setting would
  allocate and deallocate a temporary buffer of 24KB even to handle a
  read-only query.  This puts unnecessary load on memory subsystem when
  current level is checked frequently, e.g. when the likes of powerd
  and system monitoring software are running.
  Change the strategy to allocating a long-lived buffer for handling the
  requests.
  
  Reviewed by:    njl
  MFC after:      2 weeks
  
  Revision  Changes    Path
  1.34      +6 -7      src/sys/kern/kern_cpu.c



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