> All processes do:
>
> int *partij
> shm_game = shmget(ftok(".",'t'),150000000,IPC_CREAT|0777);
> partij = (int *)shmat(shm_game,0,0);
> if( partij == -1 ) {
> printf("Error allocating Game\n");
> exit(1);
> }
>
> This works for UNIX.
> For linux 2.0.35 or something one can't get more than 32 mb doing this.
Correct for 2.0.35. It works for 2.2. fine here but I have the default
higher from other stuff. See below.
> At the quad pro200 i directly tried allocating 150mb. Never tried
> less than 128mb. Might be case that 2.2.x allows allocation up to
> 128mb. never tested that.
2.2.x its configurable at run time to suit your needs. See
/proc/sys/kernel/shmmax for the current limit. That is settable by the
admin. Its identical to the nbd setting for shared memory size limits on
solaris (the one oracle always makes you set) if you know it
Alan
-
Linux SMP list: FIRST see FAQ at http://www.irisa.fr/prive/mentre/smp-faq/
To Unsubscribe: send "unsubscribe linux-smp" to [EMAIL PROTECTED]