>From /usr/src/linux-2.4/arch/s390/kernel/setup.c:

...
                seq_printf(m, "vendor_id       : IBM/S390\n"
                               "# processors    : %i\n"
                               "bogomips per cpu: %lu.%02lu\n",
                               smp_num_cpus, loops_per_jiffy/(500000/HZ),
                               (loops_per_jiffy/(5000/HZ))%100);
...

As you can see, the same conversion factor is used.

Also, note that it is hard coded, NOT extracted via a diag code or
some such (same as on Intel, ppc, etc. for smp machines).

> -----Original Message-----
> From: Taraka Srinivas Kumar [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 24, 2004 02:02 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Linux390 LPAR - CPU info
>
> My current program displays 0. This is because we are searching for
> keyword MHz in the /proc/cpuinfo file and then extracting the value.
> But then there seems to be one common variable i.e BOGOMIPS for both the
> /proc/cpuinfo files.
> We have a standard factor 0.5 available for Intel pentium machines to
> convert BOGOMIPS to MHz.
> But there is no data available for s390 machines regarding this conversion
> factor.
>
> /proc/cpuinfo format for Linux on Intel :
>
> [EMAIL PROTECTED] server1]# cat /proc/cpuinfo
> processor               : 0
> vendor_id       : GenuineIntel
> cpu family              : 15
> model                   : 2
> model name      : Intel(R) Pentium(R) 4 CPU 2.40GHz
> stepping                : 7
> cpu MHz         : 2392.098
> cache size              : 512 KB
> fdiv_bug                : no
> hlt_bug                 : no
> f00f_bug                : no
> coma_bug                : no
> fpu                     : yes
> fpu_exception   : yes
> cpuid level             : 2
> wp                      : yes
> flags                   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr
> pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
> bogomips                : 4771.02
>
> /proc/cpuinfo format for Linux on Mainframe :
>
> linxz900# cat /proc/cpuinfo
> vendor_id               : IBM/S390
> # processors            : 2
> bogomips per cpu        : 773.32
> processor 0: version = 00,  identification = 000D63,  machine = 2064
> processor 1: version = 00,  identification = 100D63,  machine = 2064
>
> Regards,
> Srinivas.
>
>
>
>
> Rich Smrcina <[EMAIL PROTECTED]>
> Sent by: Linux on 390 Port <[EMAIL PROTECTED]>
> 08/24/04 06:04 PM
>
> Please respond to
> Linux on 390 Port <[EMAIL PROTECTED]>
>
>
> To
> [EMAIL PROTECTED]
> cc
>
> Subject
> Re: Linux390 LPAR - CPU info
>
>
>
>
>
>
> What does the value tell you based on your current program?
>
> Part of the problem will be that the value will change depending upon
> what else might be running on the mainframe at the time the measurement
> that populates the value is run.
>
> On Tue, 2004-08-24 at 04:42, Taraka Srinivas Kumar wrote:
> > Hi,
> >
> > >>Is there some reason what that number is important to you?  I've
> > been doing
> > >>working with Linux/390 for 4 years now, and I've never much cared.
> > >>Depending on what processor type (G5, G6, z990, etc.), it is
> > somewhere in
> > >>the range of 200MHz to 700Mhz, if all you're interested in is clock
> > speed.
> > >>IBM publishes MSU ratings for their various processor types, if
> > you're
> > >>interested in that.
> >
> > In this case, i am having an application which takes CPU speed from
> > /proc/cpuinfo and displays it on the screen. This application has been
> > developed on Intel Linux where it is very easy to get the CPU speed in
> > MHz. Now, i am trying to port the same application to Linux on
> > zSeries. As you know, /proc/cpuinfo remains to be one of the major
> > porting issues for porting applications to Linux on mainframe (Since
> > the format has changed).
> >
> > I am trying to find out other ways of getting this particular MIPS
> > information with in Linux so that my application can access the same
> > and print it on the screen.
> >
> > Can further investigation into VMSTAT, TOP outputs help in getting the
> > CPU speed information ?
> >
> > All inputs and ideas are welcome.
> >
> > Regards,
> > Srinivas.
> >
> >
> >
> > "Post, Mark K" <[EMAIL PROTECTED]>
> > Sent by: Linux on 390 Port
> > <[EMAIL PROTECTED]>
> >
> > 08/23/04 11:26 PM
> >          Please respond to
> >          Linux on 390 Port
> >      <[EMAIL PROTECTED]>
> >                To
> > [EMAIL PROTECTED]
> >                cc
> >
> >           Subject
> > Re: Linux390 LPAR
> > - CPU info
> >
> >
> >
> >
> > Is there some reason what that number is important to you?  I've been
> > doing
> > working with Linux/390 for 4 years now, and I've never much cared.
> > Depending on what processor type (G5, G6, z990, etc.), it is somewhere
> > in
> > the range of 200MHz to 700Mhz, if all you're interested in is clock
> > speed.
> > IBM publishes MSU ratings for their various processor types, if you're
> > interested in that.
> >
> >
> > Mark Post
> >
> > -----Original Message-----
> > From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On Behalf Of
> > Taraka
> > Srinivas Kumar
> > Sent: Saturday, August 21, 2004 9:14 AM
> > To: [EMAIL PROTECTED]
> > Subject: Linux390 LPAR - CPU info
> >
> >
> >
> > Hello,
> >
> > We have SuSE 8.1 for zSeries 31 bit installed in an LPAR. Am trying to
> > get
> > the CPU speed information from Linux.
> > I have verified /proc/cpuinfo file to get the CPU speed. But the
> > format has
> > been changed for Linux on zSeries as compared to Linux on Intel.
> > Is there any way to get the CPU speed information on Linux for zSeries
> > ?
> >
> >
> > Regards,
> > Srinivas.
> >
> >
> > ----------------------------------------------------------------------
> > For LINUX-390 subscribe / signoff / archive access instructions,
> > send email to [EMAIL PROTECTED] with the message: INFO LINUX-390
> > or visit
> > http://www.marist.edu/htbin/wlvindex?LINUX-390
> >
> > ForwardSourceID:NT0000C212
> --
> Rich Smrcina
> illustro Systems International, LLC
>                     --- See The Light---
> Visit www.illustro.com to experience:
>     z/Web-Host -- Easy Web-enabling for your Mainframe
>     z/XML-Host -- Easy XML Enablement for your Mainframe
>
> Tel: +1.214.800.8900  Fax: +1.214.800.8989
>
> Catch the WAVV!  http://www.wavv.org
> WAVV 2005 - Colorado Springs - May 20-24, 2005
>
> ----------------------------------------------------------------------
> For LINUX-390 subscribe / signoff / archive access instructions,
> send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or
> visit
> http://www.marist.edu/htbin/wlvindex?LINUX-390
>
> ForwardSourceID:NT0000C30E
>

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to