Newsgroups: comp.parallel.pvm
From: bzfloebe@ZIB-Berlin.DE (Andreas Loebel)
Subject: Re: Too many open files on SUNMP (Solaris 2.4)
Organization: Konrad Zuse-Zentrum fuer Informationstechnik Berlin
Date: 5 Feb 1996 12:11:26 GMT
Message-ID: <4f4s5e$ngo@newsserv.zib-berlin.de>



In article <1996Feb3.135337.2903@nbivax.nbi.dk>, antonuccio@nbivax.nbi.dk writes:
>I have installed PVM 3.3.10 on two SPARCstations 
>20 running Solaris 2.4. When I try to launch some of the Fortran 
>examples, e.g. the master/slave example, I get the following message 
>if I try to spawn a reasonably large amount of slaves (e.g. 10):
>
>
>libpvm [t40002]: peer_recv() can't connect to sender t40003
>libpvm [t40002]: peer_recv() can't connect to sender t40003
>libpvm [t40002]: peer_recv() can't connect to sender t40003
>libpvm [t40002]: peer_recv() can't connect to sender t40003
>libpvm [t40002]: peer_recv() can't connect to sender t40003
>libpvm [t40002^C]: peer_recv() can't connect to sender t40003
> 
>The PVM logt file also looks similar:
>
>/home/van/tree> more /tmp/pvml.303
>[t80040000] ready  3.3.10   Sat Feb  3 13:04:20 1996
>[t80040000] peer_conn() shmat to t40006: Too many open files
>[t80040000] peer_conn() shmat to t40002: Too many open files
>[t80040000] peer_conn() shmat to t40004: Too many open files
>
>I have tried to increase  the size of the shared memory segments as 
>described in the Answerbook, and also the maximum number of users:
>
>/home/van/tree/examples> more /etc/system
>*************
>                set maxusers=40
>*************
>        set shmsys:shminfo_shmmax=134217728
>        set semsys:seminfo_semmap=125
>        set semsys:seminfo_semmni=250
>        set semsys:seminfo_semmns=250
>        set semsys:seminfo_semmsl=250
>        set semsys:seminfo_semmnu=250
>        set semsys:seminfo_semume=50
>        set semsys:seminfo_shmmin=100
>        set semsys:seminfo_shmmni=100
>        set semsys:seminfo_shmseg=100
>
>However, neither this helped.
>
>Could you please help me?
>Many thanks in advance
>
>      Vincenzo ANTONUCCIO
>


Hi,

a long time ago, I had the same problems ...  The systems's default
value for the number of possible open file descriptors is normally 64
(or something like that). It is always possible to decrease the given
resource limit by the "limit" command, but never to increase it without
root permission.

If you want to open more files, insert as root in /etc/system
	set rlim_fd_max = 1024
	set rlim_fd_cur = 400
and reboot the system.



Andreas Loebel




