>Lawson wrote:
>Why not use perror() to print the error message after the function call
>that fails, so you would get a clue?
I did it ---> shmget: Invalid argument
>If you are using shared memory as managed by shmget, shmat, shmctl, and
>friends, the limits to that are described in
>/usr/[local]/include/asm/shmparam.h, aka
ok, i changed it but nothing changed
>You can change those limits and recompile the kernel, but don't blame me
>if you make a kernel that won't boot.
Great !! i did and it worked ! :-) thank you very much for your help
i did a test with 128Mb of shared memory in a pc with redhat with 256Mb(ram)
and i didnt found problems
> if you use 3 or more times as much virtual memory as there is real memory.
.. i will have 1Gb of RAM (4x256Mb simms) and
i will want to create a shared memory segment of size around 800 Mb
>Michael wrote:
>Last time I looked, there was a hard stack limit of 8MB HARDWIRED INTO THE
>KERNEL SOURCE.
> Aaron J. Grier wrote:
>Perhaps what you're looking for is mmap... It is probably slower...
i need it as fast as possible, i will need to read all the shared memory
(arround 800Mb) in few seconds,
so my original problem is solved thanks again for your help,
cheers,
Rafa