11 Dec 2008 18:28
multi-threaded design in SOPE
Hi, We have discovered that the SOPE base application objects were somewhat "ready" for multi-threaded apps, in the sense that code has been written with this design in mind. So I was wondering how functional it was? Running a simple basic test gave me this output: 2008-12-11 12:20:10.393 sogod-0.9[17890] autorelease called without pool for object (324f090) of class NSUIntNumber in thread <NSThread: 0x3138460> 2008-12-11 12:20:10.393 sogod-0.9[17890] autorelease called without pool for object (324f0c0) of class NSUIntNumber in thread <NSThread: 0x3138460> 2008-12-11 12:20:10.393 sogod-0.9[17890] autorelease called without pool for object (324f0f0) of class NSUIntNumber in thread <NSThread: 0x3138460> 2008-12-11 12:20:10.393 sogod-0.9[17890] autorelease called without pool for object (324f120) of class NSUIntNumber in thread <NSThread: 0x3138460> .... But the SOGo process still seemed to perform correctly. Is that just a matter of tweaking things a little bit? -- Wolfgang Sourdeau :: +1 (514) 755-3520 :: wsourdeau@... -- -- OpenGroupware.org Developer developer@... http://mail.opengroupware.org/mailman/listinfo/developer
.
The additional memory consumption should be the same like with
threads. Minus all the hassle and slow downs.
Further: the 176MB VSZ should be mostly shared code? Shared bundles,
shared libraries. Which of course are shared, so its quite reasonable
(176MB sounds like shared libs with debugging symbols?)
Then 16MB RSS sounds reasonable per process, especially with 64bit?
Probably could be optimized a bit further, but the ObjC runtime
selector tables really become quite big in a large app like SOPE -
probably twice as large with 64bit. I measured that a few years back
(when 16MB was much
But: its quite a big slow down in performance if you run the ObjC
runtime multithreaded. So I would personally very much favor the 16MB
RSS Feed