Csound Csound-dev Csound-tekno Search About

[Cs-dev] Maximum number of open files

Date2011-12-06 14:33
FromJan Baumgart
Subject[Cs-dev] Maximum number of open files
Hi,

I'm trying to mix together *lots* of audiofiles (in the magnitude of 
thousands).
I use the diskin2 and filelen/filenchnls opcodes.
It seems to work fine, but depending on the overlap (approx. 250) csound 
exits with the error:
"diskinfo cannot open ..."

I suppose this has something to do with the limit of maximum number of 
open files.
Is there any way I can change this limit ?

I'm running csound 5.14 on OS X 10.6.8

cheers & thx,
jan.

------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of 
discussion for anyone considering optimizing the pricing and packaging model 
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2011-12-06 14:38
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] Maximum number of open files
Not an OSX user, but on most unices the number of file handles is a kernel
issue.  Some versions allow this to be controlled externally

Now for the experts....


> Hi,
>
> I'm trying to mix together *lots* of audiofiles (in the magnitude of
> thousands).
> I use the diskin2 and filelen/filenchnls opcodes.
> It seems to work fine, but depending on the overlap (approx. 250) csound
> exits with the error:
> "diskinfo cannot open ..."
>
> I suppose this has something to do with the limit of maximum number of
> open files.
> Is there any way I can change this limit ?
>
> I'm running csound 5.14 on OS X 10.6.8
>
> cheers & thx,
> jan.
>
> ------------------------------------------------------------------------------
> Cloud Services Checklist: Pricing and Packaging Optimization
> This white paper is intended to serve as a reference, checklist and point
> of
> discussion for anyone considering optimizing the pricing and packaging
> model
> of a cloud services business. Read Now!
> http://www.accelacomm.com/jaw/sfnl/114/51491232/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>



------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of 
discussion for anyone considering optimizing the pricing and packaging model 
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2011-12-06 14:43
FromJohn Lato
SubjectRe: [Cs-dev] Maximum number of open files
Open a terminal window and type in the following commands:

sysctl kern.maxfiles
sysctl kern.maxfilesperproc

and check what the results are.  On this Snow Leopard build I see
12288 (max files) and 10240 (max files per proc), although for a long
time it was much lower.

You can increase these values with

sudo sysctl -w kern.maxfiles=18000
sudo sysctl -w kern.maxfilesperproc=15000

or other suitably higher values.

These changes will be reset to the defaults upon reboot.

John L.



On Tue, Dec 6, 2011 at 2:33 PM, Jan Baumgart  wrote:
> Hi,
>
> I'm trying to mix together *lots* of audiofiles (in the magnitude of
> thousands).
> I use the diskin2 and filelen/filenchnls opcodes.
> It seems to work fine, but depending on the overlap (approx. 250) csound
> exits with the error:
> "diskinfo cannot open ..."
>
> I suppose this has something to do with the limit of maximum number of
> open files.
> Is there any way I can change this limit ?
>
> I'm running csound 5.14 on OS X 10.6.8
>
> cheers & thx,
> jan.
>
> ------------------------------------------------------------------------------
> Cloud Services Checklist: Pricing and Packaging Optimization
> This white paper is intended to serve as a reference, checklist and point of
> discussion for anyone considering optimizing the pricing and packaging model
> of a cloud services business. Read Now!
> http://www.accelacomm.com/jaw/sfnl/114/51491232/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of 
discussion for anyone considering optimizing the pricing and packaging model 
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2011-12-06 16:23
FromJan Baumgart
SubjectRe: [Cs-dev] Maximum number of open files
wow, thanks for the ultra-fast replies :)

I have the same kernel values on my machine, which should be sufficient.

Then I found out, that there's also a maximum of open files in the user 
limits, which is set to 256(!) by default.

running 'ulimit -n 4096' solved the issue !



On 6.12.11 15:43 , John Lato wrote:
> Open a terminal window and type in the following commands:
>
> sysctl kern.maxfiles
> sysctl kern.maxfilesperproc
>
> and check what the results are.  On this Snow Leopard build I see
> 12288 (max files) and 10240 (max files per proc), although for a long
> time it was much lower.
>
> You can increase these values with
>
> sudo sysctl -w kern.maxfiles=18000
> sudo sysctl -w kern.maxfilesperproc=15000
>
> or other suitably higher values.
>
> These changes will be reset to the defaults upon reboot.
>
> John L.
>
>
>
> On Tue, Dec 6, 2011 at 2:33 PM, Jan Baumgart  wrote:
>> Hi,
>>
>> I'm trying to mix together *lots* of audiofiles (in the magnitude of
>> thousands).
>> I use the diskin2 and filelen/filenchnls opcodes.
>> It seems to work fine, but depending on the overlap (approx. 250) csound
>> exits with the error:
>> "diskinfo cannot open ..."
>>
>> I suppose this has something to do with the limit of maximum number of
>> open files.
>> Is there any way I can change this limit ?
>>
>> I'm running csound 5.14 on OS X 10.6.8
>>
>> cheers&  thx,
>> jan.
>>
>> ------------------------------------------------------------------------------
>> Cloud Services Checklist: Pricing and Packaging Optimization
>> This white paper is intended to serve as a reference, checklist and point of
>> discussion for anyone considering optimizing the pricing and packaging model
>> of a cloud services business. Read Now!
>> http://www.accelacomm.com/jaw/sfnl/114/51491232/
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> ------------------------------------------------------------------------------
> Cloud Services Checklist: Pricing and Packaging Optimization
> This white paper is intended to serve as a reference, checklist and point of
> discussion for anyone considering optimizing the pricing and packaging model
> of a cloud services business. Read Now!
> http://www.accelacomm.com/jaw/sfnl/114/51491232/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of 
discussion for anyone considering optimizing the pricing and packaging model 
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net