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
|
|
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
DISCLAIMER: The information contained in this message is intended only and solely for the addressed individual or entity indicated in this message and for the exclusive use of the said addressed individual or entity indicated in this message (or responsible for delivery of the message to such person) and may contain legally privileged and confidential information belonging to Tata Consultancy Services Limited. It must not be printed, read, copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any person other than the addressee. Unauthorized use, disclosure or copying is strictly prohibited and may constitute unlawful act and can possibly attract legal action, civil and/or criminal. The contents of this message need not necessarily reflect or endorse the views of Tata Consultancy Services Limited on any subject matter. Any action taken or omitted to be taken based on this message is entirely at your risk and neither the originator of this message nor Tata Consultancy Services Limited takes any responsibility or liability towards the same. Opinions, conclusions and any other information contained in this message that do not relate to the official business of Tata Consultancy Services Limited shall be understood as neither given nor endorsed by Tata Consultancy Services Limited or any affiliate of Tata Consultancy Services Limited. If you have received this message in error, you should destroy this message and may please notify the sender by e-mail. Thank you.
