The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Abacus Formula Compiler 1.2.0 (Default branch) iBot Software Releases - RSS News 0 11-05-2008 11:10 PM
Formula help bobo UNIX for Dummies Questions & Answers 8 03-29-2008 02:53 AM
formula to get the swap space on a machine melanie_pfefer SUN Solaris 1 03-03-2008 03:15 PM
Help with formula in a script scottzx7rr Shell Programming and Scripting 3 08-15-2007 05:19 AM
Quadratic Formula Program zeek UNIX for Advanced & Expert Users 2 02-22-2002 11:32 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 05-09-2009
Rahulpict Rahulpict is offline
Registered User
  
 

Join Date: Feb 2009
Posts: 45
how to create script for this formula?

Hello Unix gurus,
Can anyone tell me the most efficient way to create script for the formula?

Formula:

Ans = 1 - ((Buffer pool data physical reads + Buffer pool xda physical reads + Buffer pool index physical reads + Buffer pool temporary data physical reads + Buffer pool temporary xda physical reads + Buffer pool temporary index physical reads )
/ (Buffer pool data logical reads + Buffer pool xda logical reads + Buffer pool index logical reads + Buffer pool temporary data logical reads + Buffer pool temporary xda logical reads + Buffer pool temporary index logical reads )) * 100%

My input file is....
==================================================
$ cat bphit.txt
Buffer pool data logical reads = 19622675514
Buffer pool data physical reads = 2032513088
Buffer pool temporary data logical reads = 2061535206
Buffer pool temporary data physical reads = 2156609
Asynchronous pool data page reads = 1206874663
Buffer pool data writes = 14270567
Asynchronous pool data page writes = 14226588
Buffer pool index logical reads = 11674823029
Buffer pool index physical reads = 137136399
Buffer pool temporary index logical reads = 0
Buffer pool temporary index physical reads = 0
Asynchronous pool index page reads = 24574557
Buffer pool index writes = 5594544
Asynchronous pool index page writes = 5566653
Buffer pool xda logical reads = 6
Buffer pool xda physical reads = 5
Buffer pool temporary xda logical reads = 0
Buffer pool temporary xda physical reads = 0
Buffer pool xda writes = 0
Asynchronous pool xda page reads = 0
Asynchronous pool xda page writes = 0
==================================================

What will be the most efficient way to achieve this?
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:14 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0