running Fortran code on Linux

Walter Dnes waltdnes-SLHPyeZ9y/tg9hUCZPvPmw at public.gmane.org
Sun May 15 06:45:14 UTC 2005


On Fri, May 13, 2005 at 09:15:16AM -0400, Lennart Sorensen wrote
> On Fri, May 13, 2005 at 12:14:53AM -0400, psema4 wrote:
> > Just in case anyone else is looking for mor info on this, IBM has a page here:  
> > http://www-106.ibm.com/developerworks/linux/library/l-fs3.html
> > 
> > Are there any better links that describe how to use /dev/shm?  (or
> > man/info pages?)
> 
> One option is something like:
> 
> mount -t tmpfs tmpfs /ramdrive

  On newer distros it should be mounted as /dev/shm. From my /etc/fstab...

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:

none                    /dev/shm        tmpfs           defaults
0 0

  Treat it like an ordinary directory, but don't get too large a file,
or else you'll be eating into your main RAM, and start swapping out a
lot of stuff...

[m450][waltdnes][~]ll /dev/shm
total 0
drwxrwxrwt   2 root root 40 May 15 02:40 .
drwxr-xr-x  18 root root  0 May 14 02:16 ..
[m450][waltdnes][~]echo "Hello world" > /dev/shm/hello.txt
[m450][waltdnes][~]ll /dev/shm
total 4
drwxrwxrwt   2 root     root  60 May 15 02:41 .
drwxr-xr-x  18 root     root   0 May 14 02:16 ..
-rw-r--r--   1 waltdnes users 12 May 15 02:41 hello.txt
[m450][waltdnes][~]cat /dev/shm/hello.txt
Hello world
[m450][waltdnes][~]rm /dev/shm/hello.txt
rm: remove regular file `/dev/shm/hello.txt'? y
[m450][waltdnes][~]ll /dev/shm
total 0
drwxrwxrwt   2 root root 40 May 15 02:41 .
drwxr-xr-x  18 root root  0 May 14 02:16 ..
[m450][waltdnes][~]


-- 
Walter Dnes <waltdnes-SLHPyeZ9y/tg9hUCZPvPmw at public.gmane.org>
An infinite number of monkeys pounding away on keyboards will
eventually produce a report showing that Windows is more secure,
and has a lower TCO, than linux.
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list