On 09-May-2001 Richard Adams wrote:
> On Tue, 08 May 2001, Marco Calistri wrote:
>> Hello,I'am using new kernel 2.4.x and beside several other new features
>> I'am still looking to understand the proper usage/configuration of 
>> /dev/shm.
>> 
[...cut]
>> none                    /dev/shm        shm     defaults                0 0
>> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

> If you read /usr/src/linux-{2.4}/Documemtation/devices.txt you will see a
> differance between your fstab entry and the example given.
> 
> tmpfs /dev/shm  tmpfs  defaults 0 0
 
Hi Richard,I red just /Documentation/Changes where the line is as above:
--
System V shared memory is now implemented via a virtual filesystem.            
You do not have to mount it to use it. SYSV shared memory limits are           
set via /proc/sys/kernel/shm{max,all,mni}.  You should mount the               
filesystem under /dev/shm to be able to use POSIX shared                       
memory. Adding the following line to /etc/fstab should take care of            
things:                                                                        
                                                                               
none            /dev/shm        shm             defaults        0 0            
                                                                               
Remember to create the directory that you intend to mount shm on if            
necessary (The entry is automagically created if you use devfs). You           
can set limits for the number of blocks and inodes used by the                 
filesystem with the mount options nr_blocks and nr_inodes.
--
I've checked but on my /linux/Documentation/device.txt I haven't
no traces at all about /etc/fstab/ sintax examples.
It is the archive extracted from 2.4.0.tar.gz kernel:
 
            LINUX ALLOCATED DEVICES                                            
 
Maintained by H. Peter Anvin <[EMAIL PROTECTED]>                               
                                                                               
      Last revised: December 29, 2000 

/dev/shm        shmfs           POSIX shared memory maintenance access
   
--
> That should automount it at bootime, to avoid a reboot do;
> mount /dev/shm
> 
> You use 'df' to see its usage not 'free'

Ok! 

[..cut]
>> Another "strange" fact is that,looking with tail -f /var/log/messages,
>> I see my CD-ROM is loaded/unloaded automatically any 10 minutes by kernel:
>> 
>> May  8 21:00:00 linux kernel: Uniform CD-ROM driver unloaded
>> May  8 21:00:01 linux kernel: hdc: ATAPI 50X CD-ROM drive, 128kB Cache,
>> (U)DMA
>> May  8 21:00:01 linux kernel: Uniform CD-ROM driver Revision: 3.12
>> 
>> Is this normal or is it a configurable (/etc/something) feature?
> 
> Its the "driver" getting unloaded not the device getting mounted/unmounted.
> You possably have a cronjob running which could be doing this.
> Or you have both kmod and kerneld working on your system, read
> /usr/src/linux-{2.4}/Documemtation/kmod.txt
 
Yes I've cronjobs for autoload/unload modules: 

May  9 17:01:00 linux CROND[1609]: (root) CMD (run-parts /etc/cron.hourly) 
May  9 17:10:00 linux CROND[1612]: (root) CMD (   /sbin/rmmod -as) 

None kerneld or kmod running (using "ps aux|grep k...")
But with new 2.4.x we have another .conf to check(may be):
# Sample /etc/devfsd.conf configuration file.
# Richard Gooch  <[EMAIL PROTECTED]>         3-JUL-2000
#
# Enable module autoloading. You may comment this out if you don't use
# autoloading
LOOKUP          .*              MODLOAD
--

>> The last "strange" fact is that my /etc/dmesg reports an IRQ allocation
>> error
>> for my sound card,although it is working ok:
>> 
>> ad1848/cs4248 codec driver Copyright (C) by Hannu Savolainen 1993-1996
>> MAD16 audio driver Copyright (C) by Hannu Savolainen 1993-1996
>> CDROM Disabled.
>> Joystick port enabled.
>> uart401: Failed to allocate IRQ5
>> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 
> I really have no idea as i do not use this driver, however if your cdrom is
> attached via the soundcard then judging by "CDROM Disabled" that could
> indiate

No my CDROM is on the master second IDE channel and sound card is not
connected to it.I guess uart401 should be related to my sound card
(Opti-Audio-16 ISA).

> a relationship between your cdrom "driver" getting unloaded automaticly and
> the
> failure message.
> 
> Another thing to check would be IRQ allocation in the BIOS, having said that
> if
> the cdrom worked on a 2.2.xx kernel then one could disregard my BIOS comment.
 
Yes Richard:under 2.2.18 never seen such dmesg IRQ allocation problem.
BTW:all is working as well also with 2.4.2,both CDROM and sound,
I was just warned by the log message.

> As to the whole 2.4 kernel i have only just started using it myself on one
> machine, so i know little of it as yet.

So you are a "newbie" ?  ;)

Thank you Richard!

--Marco

> -- 
> Regards Richard
> [EMAIL PROTECTED]
> http://people.zeelandnet.nl/pa3gcu/
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to