Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1770601
  • 博文数量: 184
  • 博客积分: 10122
  • 博客等级: 上将
  • 技术积分: 5566
  • 用 户 组: 普通用户
  • 注册时间: 2005-12-08 12:32
文章存档

2011年(1)

2008年(183)

我的朋友

分类: LINUX

2008-03-03 22:04:20

7.5. The sync() parameter

The syslog-ng application buffers the log messages to be sent in an output queue. The sync() parameter specifies the number of messages held in this buffer.

# 注释 :syslog-ng 会对要发送的消息先放入缓冲区。sync()参数可以控制放入该缓冲的消息的数量

Note that syslog-ng does not write all buffered messages into a single chunk; each message is written with a single write() system call.

# 注释 :syslog-ng 并不会把多个消息一次写入缓冲,而是一次一个

For file destinations, the received messages can be written to disk immediately after the message is received. To accomplish this, set the sync() option to zero.

# 注释 :对于文件类型的 destination ,可以直接写入,不需要经过缓冲区。

options { sync(0); };	

阅读(942) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~