in reply to MCE -- how to know which function to use
Data passing involves IPC over sockets in MCE including MCE::Shared. It depends on the application whether CPU or network bound. An application polling metrics via SNMP may run with 100 workers and chunk at 300 on a box with 24 logical cores. Each application is unique and not easy to set max workers to some value.
MCE::Map and MCE::Grep closely resembles the native map and grep functions respectively. This means that output order matches input order. If I had to do this again, I would likely merge MCE::Loop and MCE::Flow into one module.
I am unable to provide tips to minimize IPC overhead without knowing what the application is doing. For example, batching updates to a local array or hash. Then populating the shared array or hash using 1 IPC call. This combined with chunking is one way to decrease IPC overhead.
It is quite possible for other AWS instances to be running on the same physical box. Try setting max_workers to 3 or 4 even though 2 CPU cores are allocated for your Ubuntu instance.
Regards, Mario.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: MCE -- how to know which function to use
by marioroy (Prior) on Sep 29, 2016 at 17:56 UTC | |
by 1nickt (Canon) on Sep 29, 2016 at 21:48 UTC | |
by BrowserUk (Patriarch) on Sep 30, 2016 at 04:18 UTC | |
by 1nickt (Canon) on Sep 30, 2016 at 13:46 UTC | |
by marioroy (Prior) on Sep 29, 2016 at 23:56 UTC |