All Forums |
Register |
Login |
Search |
Subscriptions |
My Profile |
Inbox |
Tool Warehouse |
FAQs |
Resources |
Help |
Member List |
Address Book |
Logout |
|
|
problem in attaching memory more then 256 thorugh shmat function
|
Logged in as: Guest |
Users viewing this topic: none |
|
Login  |
|
|
problem in attaching memory more then 256 thorugh shmat... - May 15, '06, 10:05:24 AM
|
|
|
shashwat.gupta
Posts: 11
Joined: May 9, '06,
Status: offline
|
HI there ,
I am using 512 RAM and P4 1.8 processor I have allocated 2000 MB as swap spcae . Thorugh Shmget function I tried to get shared memory. It works properly . But when I tried to attach it thorugh shmat the shmat function works well for memory upt0 1100*1024*1024 aftEr that it returns -1.
I am using shmat as
shmat(shmid,0,0)
shmid I got from shmget(key,Memory size in byte ,IPC_CREAT|0666)
I have one more confusion that If I try to attach different shared memory segment each time same addrss is returned Why it is so....
How could I make it work
any help would be appreciate
|
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
|
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts |
|
|
|