On Mon, 16 Jun 2008, Bart Mortelmans wrote: > I did some testing with strace. Running it on CtrlClnt didn't tell me > much, so I started XMail in debug through strace. > > As I understand the result correctly, then XMail forks to handle the > CTRL-request. The first files it opens in that fork seem reasonable: > ctrl.ipmap.tab, ctrlaccounts.tab, the ctrl-logfile, a temp-file and > mailusers.tab. > > After copying the contents of mailusers.tab into the temp-file (I > think), it however start opening each user.tab-file of every single user > in the system. > > I'm not sure why it's doing that, but I'm rather sure that it's this > that is causing the delay. It ended up opening almost 16000 files. > > Any ideas of why it would be doing this?
Yep, you're right. There's a common function to load the user info, and this one fetches the user.tab file too. I fixed it in the next version by adding a parameter to tell if the caller wants user.tab info too, when loading it. - Davide - To unsubscribe from this list: send the line "unsubscribe xmail" in the body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED]