[netperf-talk] PAP_MAX_CACHE_LEVELS and psp_iticksperclktick in file netsys_hpux11i.c

Alexander Vinokur Alexander.Vinokur at amdocs.com
Sun May 31 22:47:02 PDT 2009


Hi,


File netsys_hpux11i.c

http://www.netperf.org/svn/netperf2/trunk/src/netsys_hpux11i.c


contains the following code:

---------------------------------------------

if (ret > 0) {

#ifdef PAP_MAX_CACHE_LEVELS

    /* we can get it "directly" but to help make things reconcile with

       what other tools/platforms support, we shouldn't do a simple

       integer divide - instead, we should do our division in floating

       point and then round */

    *cpu_frequency = rint((double)processor_info.psp_cpu_frequency /

                         1000000.0);

#else

    /* older OSes were "known" to be on CPUs where the itick was

       1to1 here */

    *cpu_frequency = rint(((double)processor_info.psp_iticksperclktick *

                          (double)sysconf(_SC_CLK_TCK)) / 1000000.0);

#endif

  }

-------------------------





Two notes-questions:

1.    Did one mean PSP_MAX_CACHE_LEVELS? Not PAP_MAX_CACHE_LEVELS?



   2. Use of psp_iticksperclktick to get cpu speed on Itanium

      produces invalid value; See:

      http://groups.google.com/group/comp.sys.hp.hpux/browse_frm/thread/e027d6a404a5019f





Regards,



Alex Vinokur
















This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement,
you may review at http://www.amdocs.com/email_disclaimer.asp
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.netperf.org/pipermail/netperf-talk/attachments/20090601/8045e132/attachment.htm 


More information about the netperf-talk mailing list