1819709 Members
3222 Online
109605 Solutions
New Discussion юеВ

Memory utilzation

 
Mukesh011
New Member

Memory utilzation

Hi All ,
I am checking the memory utilization in one server for few user

If you will look at the detail for mora user memory utilization is 1.91697e+07 while for other users it's no e+07 . Could someone explain what is this e+07 ?

vuh777 # UNIX95= ps -eo ruser,pid,args,vsz=Kbytes |grep mora | awk '{ val +=$4} END {print (val)/(1024*1024)}'
1.91697e+07
vuh777 # UNIX95= ps -eo ruser,pid,args,vsz=Kbytes |grep root | awk '{ val +=$4} END {print (val)/(1024*1024)}'
0.180229
vuh777 # UNIX95= ps -eo ruser,pid,args,vsz=Kbytes |grep oracle | awk '{ val +=$4} END {print (val)/(1024*1024)}'
1.76985
3 REPLIES 3
Jean-Luc Oudart
Honored Contributor

Re: Memory utilzation

Hi

this is just formatting.
use the printf function with appropiate formatting instead.

see any awk manual
http://www.vectorsite.net/tsawk_2.html#m10

Regards
Jean-Luc
fiat lux
Dennis Handly
Acclaimed Contributor

Re: Memory utilzation

>Could someone explain what is this e+07?

This is scientific notation for 10**7, 10 million.

>Jean-Luc: use the printf function with appropiate formatting instead.

No need for that. Just use:
BEGIN { OFMT="%.0f" }
Prasanth V Aravind
Trusted Contributor

Re: Memory utilzation

use kmeminfo to get memory details, which can give more detailed memory details.

GUdluck
Prasanth