At 08:33 PM 6/8/99 +0100, Alan Cox wrote:
>> 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

No. it doesn't work for 2.2.x
NOT FOR MORE THAN 1 PROCESS.

try the source please before saying it works. 
If your kernel is not the default kernel, then please don't
tell it works.

It's like saying my mercedes is driving faster than a formula-i
car, but in the meantime i changed my mercedes to a mclaren.

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

Reply via email to