[PD] "too many open files" error in 0.48.1

Miller Puckette msp at ucsd.edu
Mon May 21 21:02:10 CEST 2018


Yes, it woulds like there's a bug in Pd... is it possible to reduce your
patch to a reasonably simple test case that causes the problem?

thanks
Miller

On Mon, May 21, 2018 at 07:54:23PM +0100, Claude Heiland-Allen wrote:
> 
> 
> On 21/05/18 19:35, ub at xdv wrote:
> > hello,
> > 
> > On 20.05.2018 06:50, Liam Goodacre wrote:
> > > In 0.48.1 on Ubuntu, I'm getting a horrible scenario where PD refuses to
> > > open patches or create any more abstractions for me. I get an error
> > > message saying "too many open files". Granted I have a lot open, but
> > > this is a serious problem as it means I can't access all of my old
> > > performances. They worked fine in 0.47.
> > > 
> > > Any ideas?
> > this is not really a problem with pd
> 
> I disagree.  The most common cause of "too many open files" is a bug in
> closing files properly, because 1024 simultaneously-open files should be
> enough for most use cases.
> 
> 
> Claude
> 
> > , but with your shell- or system
> > configuration limiting the number of open file descriptors.
> > 
> > check your current shell-limit with
> > ulimit -Sn
> > -S is for soft limit (you can lower, but not raise, the hard limit).
> > raise the limit in your shell with
> > ulimit -n 65536
> > start pd from that shell and see if the situation improves.
> > 
> > if that doesn't help, you can check the kernel limits with
> > cat /proc/sys/fs/file-nr
> > which returns 3 numbers, the first of which is the number of open files,
> > the last of which is the limit.
> > 
> > increase the value of "nofile" in  /etc/security/limits.conf
> > do
> > sudo sysctl -p
> > 
> > additional steps are required to make these settings permanent, the
> > ulimit -n 65536 would have to go into your .bashrc so it's executed at
> > system startup. if you normally start pd from your GUI you'd have to
> > restart your system (actually just xorg) so your master shell knows
> > about the new value. there's other ways, one of which would be to start
> > pd from a wrapper script, or probably gnome provides that sort of
> > environmental setup for it's program shortcuts.
> > 
> > there's more information
> > -
> > https://askubuntu.com/questions/162229/how-do-i-increase-the-open-files-limit-for-a-non-root-user
> > -
> > https://unix.stackexchange.com/questions/29577/ulimit-difference-between-hard-and-soft-limits
> > 
> > hope that helps ... cheers,
> > ub
> > 
> > > Liam
> > > 
> > > 
> > > _______________________________________________
> > > Pd-list at lists.iem.at mailing list
> > > UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
> > > 
> > 
> > _______________________________________________
> > Pd-list at lists.iem.at mailing list
> > UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
> -- 
> https://mathr.co.uk
> 
> 
> _______________________________________________
> Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list



More information about the Pd-list mailing list