[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: /dev/shm, wie anlegen?



Torsten Schneider <schneider@mabi.de> wrote:
> On Fri, Jan 09, 2004 at 10:33:00AM +0100, Joerg Rieger wrote:

>> shm steht für POSIX Shared Memory, das ganze ist ein Temporäres 
>> Dateisystem im Arbeitsspeicher (== RAM Disk).

> "Shared Memory" und eine Ramdisk sind zwei völlig verschiedene Dinge.

Nein. Wenn man POSIX Shared Memory verwenden will, muss man tmpfs
mounten.

Zitat aus 2.4.23 Documentation/Configure.help:
| Virtual memory file system support
| CONFIG_TMPFS
|   Tmpfs is a file system which keeps all files in virtual memory.
[...]
|   You should mount the file system somewhere to be able to use
|   POSIX shared memory. Adding the following line to /etc/fstab should
|   take care of things:
| 
|   tmpfs         /dev/shm        tmpfs           defaults        0 0
| 
|   Remember to create the directory that you intend to mount tmpfs on
|   if necessary (/dev/shm is automagically created if you use devfs).

POSIX shared memory wird allerdings nur von wenigen Programmen
verwendet, meist kommt SysV shared memory zum Einsatz.
                   cu andreas
-- 
Hey, da ist ein Ballonautomat auf der Toilette!
Unofficial _Debian-packages_ of latest unstable _tin_
http://www.logic.univie.ac.at/~ametzler/debian/tin-snapshot/



Reply to: