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
What i mean to say is: it should be standard set very high.
currently this "it is settable" is what we are using.
however i'm always root on my own computers, and i reboot my linux
a lot here, cuz it's either hung, or other just must make place for
NT, where i mainly test under (as i sell for w98/w95/nt and not for linux).
In linux things must be STANDARD ok.
If an admin wants to limit it, that's another story.
I don't see linux as something that's just meant for admins only to
be used (although it still looks a lot like that), which first must
read a big book of 10000 pages before they can adjust it to what
dudes want to do.
So in short give the user something powerfull where everything
works already, and if you want to strip the mercedes in order to treat all
non-root as death-sentenced, that's a choice which will require
work then of course.
Currently linux is when just rolling out of factory
an old ex-sovjet-trabant regrettably, derived from the cold war,
and only government-officials (admins) or privileged
partymembers (fanatic freaks) can use it,
and even then they will have to wait (learn) years before they
could drive (work with) the trabant.
Of course if you update all parts of that trabant you can make a
mclaren-mercedes formula-1 car from it, no doubt.
Vincent Diepeveen
>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]
-
Linux SMP list: FIRST see FAQ at http://www.irisa.fr/prive/mentre/smp-faq/
To Unsubscribe: send "unsubscribe linux-smp" to [EMAIL PROTECTED]