07-03-2003
query reg semaphore / processes on solaris
Our Baan application has a server process bflusher which is activated automaticaly by another server process bmanager . These processes uses shared memory to carry out it's operations .
Through a baan application query command (tbase6.1 P d 3 ) , i can find the number of users (user process bshell6.1- see column 4 below ). connected to some shared memory pages.
Triton Base File Information:
file id devno inode usr flg bdf flusher name
-------- ------- ------- --- --- --- ------- -----------------------------------
fbf10be8 8388670 28165 53 0 0 11360 /tools/000/tttaad/taad100000
fbf42358 8388670 28167 6 0 0 11360 /tools/000/tttaad/taad106000
fbf12b50 8388670 28171 32 0 0 11360 /tools/000/tttaad/taad110000
fbf16a20 8388670 28173 1 0 0 11360 /tools/000/tttaad/taad120000
fbf3f118 8388670 28175 29 0 0 11360 /tools/000/tttaad/taad121000
fbf107b8 8388670 28179 56 0 0 11360 /tools/000/tttaad/taad200000
Value 11360 in 7th column is the unix pid of bflusher process.
There is nothing in Baan to tell which users are connected to the shared memory pages (i.e.users connected pid 11360). When all user processes (bshell6.1) using those share memory pages ends , that shared memory pages disappear and become free.
Is there any way I can find a link between the server process bflusher to user processe bshell6.1 based on unix proc tools or any other utilities.
10 More Discussions You Might Find Interesting
1. AIX
hi !
I have a question ! ;)
If you said.
I can find how parameter these Solaris parameters but under AIX. Does see exist you there ?
(in /etc/system for solaris)
NOFILES
ULIMIT
MSGMNB
MSGMNB
MSGSSZ
MSGSEG
MSGTQL
MSGMAP
MSGMAX
MSGMNI
SEMMNI
SEMMNU (0 Replies)
Discussion started by: Venturic
0 Replies
2. UNIX for Dummies Questions & Answers
While using semget function we use the flag 0777 | IPC_CREAT or IPC_CREAT |0666 . What is the significance of these numbers and the order in which they are written ? (1 Reply)
Discussion started by: pramit bhuyan
1 Replies
3. UNIX for Dummies Questions & Answers
Hi Penchal,
I would appreciate if you can provide me a brief explanation on what you are trying to do in the commnad below.
echo "6-9-2008" | sed 's/\(.\)-\(.\)-\(.*\)/\3-0\2-0\1/g'
Thanks
Amit (1 Reply)
Discussion started by: patelamit009
1 Replies
4. UNIX for Dummies Questions & Answers
I have a situation where I have created a semaphore and set it's value to 10. I am using this semaphore to control access to a shared memory location. I can have 10 processes simultaneously read from the shared memory location, process 11 would get locked out. My question is, is there a way I... (6 Replies)
Discussion started by: tpotter01
6 Replies
5. UNIX for Dummies Questions & Answers
When i run the below query in syb15 (with syb 12.5.X backward compatibilty) environment it runs 45min where as the same in syb12.5.1 it takes only 7-10min.
But the main thing is stld_date(in the below query) does not covered in the index of that table. Also main_table is a huge table. So is it... (0 Replies)
Discussion started by: prsam
0 Replies
6. Solaris
Dear all,
after allowing remote sendmail connections by setting the value of the local_only to 'false' ie
#svccfg -s sendmail setprop config/local_only=false
#svcadm refresh sendmail
we have TWO sendmail processes called 'sendmail -Ac -q15m' and 'sendmail -bd -q15m'.
For what reason I... (1 Reply)
Discussion started by: xunil321
1 Replies
7. UNIX for Dummies Questions & Answers
HI All ,
Pardon me for asking some very basic questions,
I would be grateful if someone can help.
I am trying to execute a shell script which runs multiple processes in background. It includes various operations like copying , DB operations etc etc.
Now problem is that the complete script... (6 Replies)
Discussion started by: gpta_varun
6 Replies
8. UNIX for Dummies Questions & Answers
Howdy Experts,
This is my first post here and I am posting because I have not been able to find an answer for this question.
How do you find out what process is listening on a given port? I do not have "lsof" available and how do we find this out without logging in as Root.
I know that this... (5 Replies)
Discussion started by: KingaKoopa
5 Replies
9. Shell Programming and Scripting
Hi All,
O/S: Linux 86x64 Red Hat
I have a sql script that queries top consuming processes of Linux using TOP commnd.
Now I need to automate this task and pass the top processes i.e., PID to the sql script through unix shell script.
Could anyone please let me know how to achieve this.
... (2 Replies)
Discussion started by: a1_win
2 Replies
10. Shell Programming and Scripting
Hi Guys
I have a Solaris 10 server running Oracle database most of the sessions are slow when forking resource/processes on the O/S.
How can I resolve this issue or how do I see the time it takes to fork a process from the O/S?
Thanks
Pleasse help!!! (3 Replies)
Discussion started by: Phuti
3 Replies
LEARN ABOUT CENTOS
sem_init
SEM_INIT(3) Linux Programmer's Manual SEM_INIT(3)
NAME
sem_init - initialize an unnamed semaphore
SYNOPSIS
#include <semaphore.h>
int sem_init(sem_t *sem, int pshared, unsigned int value);
Link with -pthread.
DESCRIPTION
sem_init() initializes the unnamed semaphore at the address pointed to by sem. The value argument specifies the initial value for the sem-
aphore.
The pshared argument indicates whether this semaphore is to be shared between the threads of a process, or between processes.
If pshared has the value 0, then the semaphore is shared between the threads of a process, and should be located at some address that is
visible to all threads (e.g., a global variable, or a variable allocated dynamically on the heap).
If pshared is nonzero, then the semaphore is shared between processes, and should be located in a region of shared memory (see shm_open(3),
mmap(2), and shmget(2)). (Since a child created by fork(2) inherits its parent's memory mappings, it can also access the semaphore.) Any
process that can access the shared memory region can operate on the semaphore using sem_post(3), sem_wait(3), etc.
Initializing a semaphore that has already been initialized results in undefined behavior.
RETURN VALUE
sem_init() returns 0 on success; on error, -1 is returned, and errno is set to indicate the error.
ERRORS
EINVAL value exceeds SEM_VALUE_MAX.
ENOSYS pshared is nonzero, but the system does not support process-shared semaphores (see sem_overview(7)).
CONFORMING TO
POSIX.1-2001.
NOTES
Bizarrely, POSIX.1-2001 does not specify the value that should be returned by a successful call to sem_init(). POSIX.1-2008 rectifies
this, specifying the zero return on success.
SEE ALSO
sem_destroy(3), sem_post(3), sem_wait(3), sem_overview(7)
COLOPHON
This page is part of release 3.53 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
Linux 2012-05-13 SEM_INIT(3)