Re: AW: Performance
Vadim Gritsenko <[email protected]>
| Newsgroups | gmane.text.xml.xindice.user |
|---|---|
| Message-ID | <[email protected]> |
Eickvonder Bjoern wrote: >>>PS: By the way where and in what kind of form can/should I post >>>XIndice patches that I developed like a solution for the "too many >>>open files problem" that can occur on linux systems (if you have a >>>large number of collections)? > > >>IMHO, you can create your collections with custom configuration which >>specifies maximum number of descriptors allowed (See >>CONFIG_DESCRIPTORS_MAX = >>"max-descriptors") instead of relying on the default >>(DEFAULT_DESCRIPTORS_MAX = 16). > > > Yes I know but what if at one time a collection "A" gets a high load and > would need 16 and sometimes later a collection "B" gets this high load > while "A" is not used. In that case I would prefer that the open > descriptors for "A" get closed if they are not used for a (configurable) > amount of time There is a problem with such reasoning, it is: "what if *all* collections get high load at the same time?". In this situation, you can't borrow descriptor from another collection, and you can't block and wait - this might cause deadlocks. Any ideas? :) > and that is what I implemented (though it's still being > tested and not yet configurable). Ok. Vadim