An introduction to asynchronous Python
An introduction to asynchronous Python
Posted Jun 29, 2017 16:58 UTC (Thu) by zlynx (guest, #2285)In reply to: An introduction to asynchronous Python by willy
Parent article: An introduction to asynchronous Python
I noticed this on SpamAssassin on 256 MB boxes years ago. It used an initialize and fork model, obviously copied from a C application, perhaps Apache. It should have been very memory efficient. However, as soon as a SA worker began to work, it's memory quickly unshared and started to overload the box.
And of course there are C++ apps using shared_ptr and std::string which do just as badly at this.
Posted Jun 29, 2017 19:51 UTC (Thu)
by epa (subscriber, #39769)
[Link] (1 responses)
Posted Jun 29, 2017 22:49 UTC (Thu)
by excors (subscriber, #95769)
[Link]
(Apparently constructing a shared_ptr via std::make_shared is special - that does a single allocation to contain both the refcount and the object, which is usually a good idea, but in this case you'd need to implement it differently, which should be easy enough.)
An introduction to asynchronous Python
An introduction to asynchronous Python
