Re: [RFT] new store-file approach
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
I am +1 for this patch. I have tested it with high loads (at the edge and even above its capacity) on a SuSE 9.1 system. As I pointed out some months ago, the old version suffered serious problems when the number of entries in store exeeded some thousands. The patch solves this problem in our test environment. Andreas > Hi, > > attached is a new store-file (hmm, store-spooldir is better) approach that > is a bit slower as rbtree/dict approach but has number of advantages: > 1) no dump thread needed > 2) no locking needed > 3) (the most significant) no need to have messages twice in memory > > This approach uses spool directory instead of a single file and speed > depends on fs and hd speed (tip: use tmpfs on linux and this approach > reach > the same speed as rbtree/dict). > > How to test it: > cp attached_file to gw/bb_store.c > make > have fun ;) > > Please note that store-file in the config should point to directory > instead > of single file. > > Comments are very welcome. > > P.S. Happy testing ;) > > -- > Thanks, > Alex -- Geschenkt: 3 Monate GMX ProMail + 3 Top-Spielfilme auf DVD ++ Jetzt kostenlos testen http://www.gmx.net/de/go/mail ++