[NTLUG:Discuss] Shared memory / modules
    Jonathan Brugge 
    jonathan_brugge at hotmail.com
       
    Mon Nov 20 19:30:09 CST 2000
    
    
  
>Maybe it's not being used?  Try "ipcs" and see if any has been allocated.  
>If
>you see no SHM segments, then 0 is the correct answer.
>
I get the following output when running ipcs:
odysseus:/home/odysseus# ipcs
------ Shared Memory Segments --------
key       shmid     owner     perms     bytes     nattch    status
0x00000000 32769     www-data  600       92164     6         dest
0x00000000 196610    odysseus  777       65536     2         dest
0x00000000 229379    odysseus  777       65536     2         dest
0x00000000 262148    odysseus  777       65536     2         dest
0x00000000 294917    odysseus  777       65536     2         dest
0x00000000 327686    odysseus  777       65536     2         dest
0x00000000 360455    odysseus  777       65536     2         dest
0x00000000 819208    root      644       151552    2         dest
0x00000000 851977    root      644       126976    2         dest
------ Semaphore Arrays --------
key       semid     owner     perms     nsems     status
------ Message Queues --------
key       msqid     owner     perms     used-bytes  messages
Seems like there are SHM-segments (I assume that's the shared-memory 
segment).
> > Maybe it's related with the modules-problem I have; I can't load
> > modules, it looks for them but can't find them, I think I have to move a 
>dir
> > but not sure. I'm running kernel 2.4.0test10.
> > Maybe a kernel-option I can't find? Or a bug? A problem with gcc 
>2.95.2-17
> > (I've compiled it with that version, I think, I'm sure I used 2.95)?
>
>Did you do a "make modules; make modules_install"?  Without the
>"modules_install" you won't get far.  You've probably already checked that,
>but just in case... :-)
I did, but maybe this makes a difference: I put the sources not in /usr/src 
or something similar, but in my homedir (to make sure there wouldn't be any 
complaints about duplicated files from older versions). I've run make 
modules_install, so I thought it would link to the right files. Maybe it 
didn't? I looked in /lib/modules (seems Debian places them there) and found 
a subdir 2.4.0test10. In that dir there was a link "build" that pointed to 
my_homedir/linux. Seems like it should be to me. There's one thing that 
might be weird: I've got a subdir /lib/modules/2.4.0test10/kernel and 
another one called pcmcia. Both dirs are empty. Should they be empty? I 
don't have a dir called modules or something like that in my homedir, so 
there don't seem to be many modules, though it looks for one when booting.
Another point: I don't see an alias in /etc/modules.conf. When I boot, it 
looks for module char-major-6, but there's no module with that name in my 
/etc/modules.conf, nor in conf.modules (I don't have one). I tried to grep 
the whole ~/linux/ and ~/linux/Documentation for it, but found nothing. Any 
ideas to which module I should link it?
Thanks,
Jonathan Brugge
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Share information about yourself, create your own public profile at 
http://profiles.msn.com.
    
    
More information about the Discuss
mailing list