report on obscure issues: running out of file handles with python under wine

Luke Kenneth Casson Leighton lkcl at lkcl.net
Thu Jan 29 08:36:43 CST 2009


On Thu, Jan 29, 2009 at 2:02 PM, Michael Stefaniuc <mstefani at redhat.com> wrote:
> Hi!
>
> Luke Kenneth Casson Leighton wrote:
>> well the saga continues with using python under wine - i thought i'd
>> let you know the analysis and clues so far, in case it rings any bells
>> with anyone, now or in the future.  as you're probably aware, there's
>> a limit in nt of 2048 file descriptors which has caused a large number
> Well the "default" number of file handles one gets on Linux is 1024.
> Though that can be easily bumped up. Are you sure you do not run into
> your host limit?

 hiya michael,

 good point - although the "success" instance was under wine (when it
should not have been successful, according to the exact same test with
the exact same app running under xp).

also note it's file descriptors not file handles, and to emphasise
this, the selectmodule.c in python i had to increase the #define
FD_SETMAX to 2048 in order to cope with the massive number of file
descriptors - both under wine and also native xp in a qemu VM.

funny.  it's always the bumbling-along not knowing what's really going
on that finds the errors.  if you quotes know what you're doing quotes
then you always do things quotes right quotes and the errors are never
encountered....



More information about the wine-devel mailing list