7 More Discussions You Might Find Interesting
1. SuSE
Hi,
My program was running for a whole night. after 12 hours i got an error message "Cannot allocate memory" during the shmat commmand. So can you please let me know what could be the reason? is there any solution?
thanks in advance.
Regards,
Mano (5 Replies)
Discussion started by: ManoharanMani
5 Replies
2. Programming
Hi,
I'm using Ubuntu 10.04 on a 64bit machine.
In my shmat() call, I want to assign fixed memory address to shmaddr variable. I have no idea which address value to give. Some where in the net I read we can make use of sysproc info to know the user space addresses, but could not figure out how... (1 Reply)
Discussion started by: sajjar
1 Replies
3. Programming
I have a process that needs two active connections to the same zone of shared memory simultaneously.
The firs conection works ok, but when i do the second call to shmat it give me error 22 (EINVAL). Only works ok the second call to shmat if i disconnect the first connection (shmdt)
Steps:... (3 Replies)
Discussion started by: dairby
3 Replies
4. UNIX for Advanced & Expert Users
I have a process that need two active connections to the same zone of shared memory. But when i do the second call to shmat it give me error 22 (EINVAL). Only works ok the second call to shmat if i disconnect the first connection (shmdt)
In Sun,AIX and Digital, i donīt have this problem.
... (7 Replies)
Discussion started by: dairby
7 Replies
5. Linux
Hi,
I'm developing a data processing pipeline with multiple stages, with data being moved between the stages using shared memory segments. The size of the data is typically of the order of hundreds of megabytes, and there are typically a few tens of main shared memory segments each of size... (2 Replies)
Discussion started by: theicarusagenda
2 Replies
6. Programming
The first shmat in my program cannot fetch the start address of the shared memory.
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/shm.h>
int main(int argc,char *argv) {
int pid;
key_t mykey;
int shmid;
long *shm;
long *shm2;
... (3 Replies)
Discussion started by: yong
3 Replies
7. HP-UX
I have installed an application that runs correctly for root but not other users. The application generates an error that indicates users don't have permission to attach to shared memory. A daemon process creates the shared memory segment. I've checked every permission I can think of but nothing... (2 Replies)
Discussion started by: km4hr
2 Replies