11-23-2009
To get the memory in MB
Hi
I am trying to get the memory in the box using the belkow command. this is giving me the proper result in KB's. I would like to convert it into MB's.
cat /proc/meminfo | grep MemTotal | cut -d " " -f6
32962184
But when I execute the below command, its throwing the error.
expr ` \( cat /proc/meminfo | grep MemTotal | cut -d " " -f6 \) / 1024 `
-bash: (: command not found
cut: ): No such file or directory
cut: /: Is a directory
cut: 1024: No such file or directory
expr: missing operand
Try `expr --help' for more information.
Can somebody please suggest me how to do it?
9 More Discussions You Might Find Interesting
1. Programming
Hi, I try to marshal a unsigned int and a char * into a buffer, and then unmarshal them later to get them out. I need to put the char * in the front and unsigned int at the end of the buffer. However, my system always give me "BUS ERROR". I am using Sun Sparcs Sloris 2.10.
My code to marshal... (6 Replies)
Discussion started by: nj302
6 Replies
2. HP-UX
Refer from title:
How can i get memory used or anything that can show memory from sar file
example on solaris:-
we can use sar with option to show memory used at time that sar crontab run.
on HP-UX, it not has option to see memory used. But i think it may be have some parameter or some... (1 Reply)
Discussion started by: panithat
1 Replies
3. AIX
Hi,
Would any one be so kind to explain me :
are ulimits defined for each user seperately ? When ?
Specialy what is the impact of :
max locked memory
and
virtual memory
on performance of applications for a user.
Many thanks.
PS :
this is what I can see in MAN :
ulimit ]
... (5 Replies)
Discussion started by: big123456
5 Replies
4. Solaris
Hi,
Im working on Solaris 9 on SPARC-32 bit running on an Ultra-80, and I have to find out the following:-
1. Total Physical Memory in the system(total RAM).
2. Available Physical Memory(i.e. RAM Usage)
3. Total (Logical) Memory in the system
4. Available (Logical) Memory.
I know... (4 Replies)
Discussion started by: 0ktalmagik
4 Replies
5. Programming
Hi,
I'm trying to learn how to manage memory when I have to deal with lots of data.
Basically I'm indexing a huge file (5GB, but it can be bigger), by creating tables that
holds offset <-> startOfSomeData information. Currently I'm mapping the whole file at
once (yep!) but of course the... (1 Reply)
Discussion started by: emitrax
1 Replies
6. Solaris
Is it possible to restrict physical memory in solaris zone with zone.max-locked-memory just like we can do with rcapd ? I do not want to used rcapd (1 Reply)
Discussion started by: fugitive
1 Replies
7. UNIX for Advanced & Expert Users
I was running a program and it stopped and showed "Out of Memory!". at that time, the RAM used by this process is around 4G and the free memory size of the machine is around 30G. Does anybody know what maybe the reason? this program is written with Perl. the OS of the machine is Solaris U8. And I... (1 Reply)
Discussion started by: lilili07
1 Replies
8. Solaris
Hello solaris experts,
Being new to solaris containers, from Linux, feeling difficulty in understanding certain concepts. Hope somebody can help me here.
I understand that, & some questions ....
Locked memory -- memory which will not be swapped out at any cause.
is this for... (0 Replies)
Discussion started by: thegeek
0 Replies
9. Solaris
Hi Experts,
Our servers running Solaris 10 with SAP Application. The memory utilization always >90%, but the process on SAP is too less even nothing.
Why memory utilization on solaris always looks high?
I have statement about memory on solaris, is this true:
Memory in solaris is used for... (4 Replies)
Discussion started by: edydsuranta
4 Replies
BBOX(1) BBOX(1)
NAME
bbox - prints out the bounding box of a rawppm or rawpbm image
SYNOPSIS
bbox [ -l ] [ -r ] [ -h ] [ -V ] [ rawpbmfile ]
DESCRIPTION
bbox reads a rawppm or rawpbm file and prints out the bounding box of the image (as postscript comment and in postscript points, i.e.
1/72dpi) as well as the high resolution bounding box. Input is read from standard input if no filename is specified. Example output:
%%BoundingBox: 12 253 829 837
%%HiResBoundingBox: 12.500000 253.000000 828.500000 837.00000
bbox has only very limited memory requirements as it reads the input line by line and thus needs to store only one picture line in memory.
OPTIONS
-h | --help
Show summary of options.
-V Show version of program.
-r resolution of picture in dpi
-l loose bounding box (integer bounding box is expanded by 1 point, hires bounding box is expanded by 0.5 points)
SEE ALSO
ps2eps (1)
AUTHOR
bbox was written by Roland Bless.
ACKNOWLEDGMENTS
Special thanks goes to Michael Sharpe from UCSD who suggested a lot of improvements for bbox to become more precise and robust, especially
for small drawings.
An earlier version of this manual page was originally written by Rafael Laboissiere <rafael@debian.org> for the Debian system. Thank you
Rafael! Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Ver-
sion 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts and no Back-Cover
Texts.
BUGS
Though the code is quite small and the probability for bugs is now small, there may be some left somewhere between the lines. In case you
find one, please send a short description with bbox version number to <roland@bless.de> (please allow some time to reply).
31 August 2010 BBOX(1)