[comp.sys.3b1] MDG / ipcs on the on the 3b1

tjl@cbnews.att.com (timothy.j.lipetz) (03/01/91)

I have questions about shared memory and ipc messages on
the 3b1 and also about the multi player dungeon game MDG.

I finally got MDG built (using -lcurses instead of -ltinfo
and using ccc instead of cc so it used the shared libraries.)
The response time (on my 2meg 3b1) is horrible for one player
and virtually frozen-up for two players.  I had to kill the
MDG processes from another window.

There was a warning in the MDG README file about have at least
40 message headers in your kernel.  I thought perhaps this
might be the problem.

MY QUESTIONS...

How many message headers does 3.51m have?  How do I check
that?

I tried running ipcs, but all it ever said was 'no memory file'
whatever that means.  How can I get it to work?

I tried running mapmem (from the net) to look at shared memory.
How does mapmem indicate a shared memory block?

Finally, has anyone gotten MDG to work well on the 3b1?
Should I recompile it with the 3 player max limit?


Thanks,
Timothy J. Lipetz
att!cbzoo!tjl

dpc6787@cs.rit.edu (David P Cutter) (03/04/91)

From article <1991Feb28.182152.11622@cbnews.att.com>, by tjl@cbnews.att.com (timothy.j.lipetz):
> 
> I have questions about shared memory and ipc messages on
> the 3b1 and also about the multi player dungeon game MDG.
> ...(stuff deleted)
>
> MY QUESTIONS...
> 
> How many message headers does 3.51m have?  How do I check
> that?
I have no clue.

> 
> I tried running ipcs, but all it ever said was 'no memory file'
> whatever that means.  How can I get it to work?
I never have seen this?  Maybe the permssions on the 'ipcs' executable
are wrong.  When I bought my 3b1 the "ipc's" weren't being loaded upon
bootting.  Try '/etc/lddrv/lddrv -s' , I think this shows the drivers
that are loaded - I don't think this is your problem though :).

> 
> I tried running mapmem (from the net) to look at shared memory.
> How does mapmem indicate a shared memory block?
> 
> Finally, has anyone gotten MDG to work well on the 3b1?
> Should I recompile it with the 3 player max limit?
I got it to compile and run.  I set the max player limit to 3 mainly
because I'll never have more than 3 users on my system anyway.  I
haven't tried playing with two players yet.  I did notice that one
player was SLOW.  I was thinking of slowing down the "clock daemon".
Let me know what happens.

Dave Cutter
--
    ======================================================================
                     "Safety first.  That's my motto."                   
    BITNET:  dpc6787@ritvax                  INTERNET:  dpc6787@cs.rit.edu
                  UUCP:  rutgers!rochester!rit!ritvax!dpc6787

ssb@quest.UUCP (Scott Bertilson) (03/05/91)

  I had to solve a similar problem when trying to run Ander's Klemets'
version of the KA9Q NOS code.  He had modified it to use shared memory
and a number of semaphores.  In the "nipcs" or "lipcs" driver, there
are symbols:
	shminfo
	msginfo
	seminfo
which are structures declared in "<sys/shm.h>", "<sys/msg.h>",
and "<sys/sem.h>".  You can do:
	cd /etc/lddrv
	mv nipc.o nipc.o.orig && cp nipc.o.orig nipc.o
	adb -w nipc.o
	msginfo,6?D
	(find the value you want to change)
	msginfo+0xC?W 0t48
I haven't played (that I can remember) with increasing the system
maximum parameters, but I assume the structures are dynamically
allocated when the driver is loaded.  I do know that in the case
of semaphores I was able to increase the maximum per id to be
the same as the system-wide limit and it worked fine.
  You will have to reboot before the change takes effect.  You
must also (of course) be sure that "/etc/lddrv/drivers" includes
"nipc" so that driver is loaded.

-- 

Scott S. Bertilson   ...ssb@quest.UUCP
			scott@poincare.geom.umn.edu