1, multi thread is more efficient
2, it's not as stable as single thread version, but it preforms better
with the protection of guardian.sh
However, multithread lepd consumes more cpu and memory than singlethread version. I think we can make it lighter in the future, like lepd only reads from proc and all the data handling goes to lepv, in other words, ps, iotop, mpstat and procrank ... goes up, they can be C or python.
1, multi thread is more efficient 2, it's not as stable as single thread version, but it preforms better with the protection of guardian.sh
However, multithread lepd consumes more cpu and memory than singlethread version. I think we can make it lighter in the future, like lepd only reads from proc and all the data handling goes to lepv, in other words, ps, iotop, mpstat and procrank ... goes up, they can be C or python.
Issues left:
1, https://github.com/linuxep/lepd/issues/38, mpstat returns all zero, it used to be working 2, lepd crashes with netlink problem, https://github.com/linuxep/lepd/issues/37 3, when lepd crashes, guardian.sh will fork a new lepd, but lepv couldn't reconnect to the new lepd. https://github.com/linuxep/lepv/issues/85
Signed-off-by:song chen chensong@linuxep.com