query reg semaphore / processes on solaris


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users query reg semaphore / processes on solaris
# 1  
Old 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.
# 2  
Old 07-03-2003
I don't know this baan thing but it looks like you are using memory mapped files. The program lsof can report on those. It is a freeware program that is very useful.

For system 5 style shared memory, /usr/proc/bin/pmap will display any shared memory segments in use for a particular pid.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Solaris 10 processes slow

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

2. Shell Programming and Scripting

Unix shell script to query linux top consuming processes

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

3. UNIX for Dummies Questions & Answers

Processes listening on Ports(Solaris)

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

4. UNIX for Dummies Questions & Answers

Query on Running Multiple processes in background

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

5. Solaris

Solaris 10 x86: Two sendmail processes, why?

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

6. UNIX for Dummies Questions & Answers

Please help me out reg syb15 query

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

7. UNIX for Dummies Questions & Answers

Determining which processes hold a semaphore

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

8. UNIX for Dummies Questions & Answers

Reg: Query in sed

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

9. UNIX for Dummies Questions & Answers

small semaphore query

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

10. AIX

semaphore AIX <=> Solaris

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
Login or Register to Ask a Question