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
--
> 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
: 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
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
|| 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
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
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
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