Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

Subject: Re: [OMPI devel] Trunk Commit Heads-up: New Common Shared Memory Component
From: Rainer Keller (keller_at_[hidden])
Date: 2010-08-13 09:31:01


Hi,
On Thursday 12 August 2010 19:09:42 Jeff Squyres wrote:
> On Aug 12, 2010, at 7:21 AM, Terry Dontje wrote:
> > Is there not a way to determine whether the fs is tmpfs or not?
> I don't know -- Rainer?
Well, this is semi-portable ,-]
But sure, it would work on Linux, where we'd want it:

./statfs /dev/shm
--------------- statfs() output-----------------
statfs() returned the following information
about file system of path (/dev/shm):
  f_type : TMPFS (1021994)
  f_bsize : 4096
  f_blocks : 723663
  f_bfree : 723662
  f_bavail : 723662
  f_files : 723663
  f_ffree : 723661
  f_fsid : TMPFS (0x0)
  f_namelen : 255

(the program detects most Filesystems according to their known magic).

Regards,
Rainer

-- 
----------------------------------------------------------------
 Dr.-Ing. Rainer Keller  http://www.hlrs.de/people/keller
 HLRS                         Tel: ++49 (0)711-685 6 5858
 Nobelstrasse 19                 Fax: ++49 (0)711-685 6 5832
 70550 Stuttgart                    email: keller_at_[hidden]     
 Germany                             AIM/Skype:rusraink