码迷,mamicode.com
首页 > Web开发 > 详细

[bigdata] flume file channel CPU消耗比 memory channel高的原因

时间:2015-12-25 18:56:56      阅读:149      评论:0      收藏:0      [点我收藏+]

标签:

https://www.quora.com/Why-does-flume-take-more-resource-CPU-when-file-channel-is-used-compared-to-when-memory-channel-is-used

 

In case of File channel , the CPU would be used for the following 

  • Serializing/Deserializing Events from/to file channel . In memory channel , this is plainly stored in RAM , so no serialization is required.
  • A small cpu overhead per disk write in determining the disk location where it needs to write. Typically this will be backed by swap file . So you will not see this per event. But will see CPU spikes when moving from physical to swap.

So this increase is  not entirely unexpected. However , you should look closer if this increase in CPU is high enough to slow down the system.

 

 

[bigdata] flume file channel CPU消耗比 memory channel高的原因

标签:

原文地址:http://www.cnblogs.com/spec-dog/p/5076577.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!