[Qt-interest] Too many files open error on Mac OS

Ross Bencina rossb-lists at audiomulch.com
Wed Sep 29 11:10:10 CEST 2010


Arnold Krille wrote:
> Or if these files are temporary files of your app in
> the first place, that is if you create/open them and keep them open in 
> your app
> while you delete them to hide them from nosy people/apps, it makes sense 
> to
> keep them open at all times.

If that was the case, Serge could just create one big temp file instead of 
300 smaller ones.

>> Are you reading multiple files at once to optimise disk access for
>> physically adjacent blocks?
>
>He said each file contains the data of several zoom-levels. So he is not
>reading adjacent blocks anyway even if the files where on adjacent blocks 
>on
>disk.

I shouldn't have said "adjacent" rather "nearby". What I meant was, if you 
use async/overlapped i/o and schedule a number of read requests to the disk 
controller in parallel, it gives the i/o scheduler an opportunity to 
optimise the path of the read head accross the disk so that it can choose 
the order of block access to minimise seek time.

In any case, I agree :-)

Ross. 




More information about the Qt-interest-old mailing list