I read the ipcs man page and am still very confused.
Basically, I just want to know whether the output from the ipcs command below means these are the current "TOTAL" memory usage in bytes on the server? Is this correct?
No it isnt. Ipcs only lists Memory Queues, Shared Memory and Semaphores used on the system. There are lots of other IPC's on UNIX, included Memory Mapped files, pipes and sockets. To be honest the IPC's command doesnt really give you much useful information these days. Can I ask what it is you are actually after and what O/S you are on ? Other commands like "top", "vmstat" and "sar" can give more useful info.
Thanks for your response, now that you explained it, I think ipcs is not what am after.
I want to know how much memory I have, how much is used and how much is free. Running top, I get the output as below:
This is a Solaris zone/container and the server has been assigned 8192M and the available memory for the whole zone/container is presumably 72G.
I thought if I run vmstat, it will show me how much of the 8192M is free but sadly that does not seem to be the case.
The output of vmstat command is as below.
The free seems to be for the whole Solaris container or am I wrong and should be calculating free as the value from vmstat minus the 72GB from the top command and that should give me how much of the 8129M is free?
In short, should I be calculating the free memory of the server as the (value of free from vmstat) - (value of free from top)
Any advise will be very much appreciated. Thanks in advance.
I am using UNIX to create a script on our system. I have setup my commands to append their output to an outage file. However, some of the commands return no output and so I would like something to take their place.
What I need
The following command is placed at the prompt:
TICLI... (4 Replies)
Hello All,
We have a working script which identifies and kills ipcs resources which havent been correctly killed during normal shutdowns.
It is working fine and dandy however there are some issues now.
Environment:
SunOS 5.10 Generic_148888-03 sun4u sparc SUNW,SPARC-Enterprise
... (4 Replies)
Hi
I want to write a script, help me to monitor command output.
This script like Linux "watch" command.
Below is my script:
# cat watch.sh
#!/bin/bash
while true
do
clear
echo "command: $*"
( $* )
sleep 2
done
Then I run this script below (2 Replies)
Hi everyone--
I'm new to these forums and shell scripting, and I'm trying to write a script that checks if a particular ip is pingable
My idea was to check if the output of the command ping <some ip> -c 1 -w 1 had the string: "1 packet transmitted, 1 received"How would I go about doing this?... (2 Replies)
Hi folks,
Please advise which command/command line shall I run;
1) to display the command and its output on console
2) simultaneous to save the command and its output on a file
I tried tee command as follows;
$ ps aux | grep mysql | tee /path/to/output.txt
It displayed the... (7 Replies)
hi,
I need help with ipcs command on Solaris. What does it do and what are options b,m,o,q does. Here is the sample output of ipcs -oq and ipcs -bm
IPC status from <running system> as of Sun Sep 7 23:07:59 GMT 2008
T ID KEY MODE OWNER GROUP CBYTES QNUM... (4 Replies)
I am using SUN 0S 5.7.
My application has a dozen programs running in this machine, each instance of a program having 2 POSIX message queues for itself. Totally around 90 POSIX message queues.
Another small application uses a SYSTEM V shared memory and a message queue.
We face a problem... (1 Reply)
Does anyone know how to set the variables with the ipcs command?
I need to set the following variables:
Shared memory segments
message queues
semaphore arrays
all of these (1 Reply)