Re: [perf-discuss] Request for guidance on shmat() call attaching at different addre ss

2007-04-04 Thread johansen-osdev
Ganesh: > Next when the client processes comes up, they attach to all these shms > created by server process. When the client process calls "shmat" on > the first 3 memory segments, shmat returns the same address which it > returned to server process (these addresses are stored in 1st shm). > But

RE: [perf-discuss] Request for guidance on shmat() call attaching at different addre ss

2007-04-04 Thread Borse, Ganesh
-- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: 04 April 2007 17:39 > To: Borse, Ganesh > Cc: 'perf-discuss@opensolaris.org' > Subject: Re: [perf-discuss] Request for guidance on shmat() call > attaching at different addre ss > > Hi Ganesh, > I hav

Re: [perf-discuss] Request for guidance on shmat() call attaching at different addre ss

2007-04-04 Thread [EMAIL PROTECTED]
: Borse, Ganesh Cc: 'perf-discuss@opensolaris.org' Subject: Re: [perf-discuss] Request for guidance on shmat() call attaching at different addre ss Hi Ganesh, I have done the same kind of thing you are trying to do with shmget/shmat, but I used mmap. With mmap, I needed to specify the addr

RE: [perf-discuss] Request for guidance on shmat() call attaching at different addre ss

2007-04-04 Thread Borse, Ganesh
h are same? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 04 April 2007 17:39 To: Borse, Ganesh Cc: 'perf-discuss@opensolaris.org' Subject: Re: [perf-discuss] Request for guidance on shmat() call attaching at different addre ss Hi Ganesh, I have done t

Re: [perf-discuss] Request for guidance on shmat() call attaching at different addre ss

2007-04-04 Thread [EMAIL PROTECTED]
|| errno != 0){ printf("shm:_dataMemory:failed: errno:%d\n",errno); return errno; } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 04 April 2007 16:49 To: Borse, Ganesh Cc: 'perf-discuss@opensolaris.org' Subject: Re: [perf-discuss

RE: [perf-discuss] Request for guidance on shmat() call attaching at different addre ss

2007-04-04 Thread Borse, Ganesh
age- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 04 April 2007 16:49 To: Borse, Ganesh Cc: 'perf-discuss@opensolaris.org' Subject: Re: [perf-discuss] Request for guidance on shmat() call attaching at different addre ss Hi Genesh, Are you specifying an address in your shmat

Re: [perf-discuss] Request for guidance on shmat() call attaching at different addre ss

2007-04-04 Thread [EMAIL PROTECTED]
Hi Genesh, Are you specifying an address in your shmat calls? Can you post code segments doing shmget/shmat? max Borse, Ganesh wrote: Hi, I am facing a problem of shared memory segment getting attached at different address, when the processes using it go down and attach count goes to zer

[perf-discuss] Request for guidance on shmat() call attaching at different addre ss

2007-04-03 Thread Borse, Ganesh
Hi, I am facing a problem of shared memory segment getting attached at different address, when the processes using it go down and attach count goes to zero. This causes the problem when the processes next time come up & try to access the addresses taken from the shared memory segment. The scena