自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(5)
  • 问答 (1)
  • 收藏
  • 关注

使用syslog-ng进行日志中心化(一)

一个日志中心化设计收集项目,前端有230台的服务器,使用syslogd收集日志,保存在本地磁盘的同时另外发一份到syslog-ng的日志中心服务器上,中心服务器同时把日志分发到两个目的地:本地磁盘存储和一个FIFO。该FIFO作为Source发给PipeReader Class处理,该类对日志进行预处理,如从用户的IP地址查询出对应的城市等。然后发给LogCenter Daemon处理;该Daem...

2009-12-16 18:44:38 256

原创 spinlock

spinlock is a lock where the thread simply waits in a loop("spins") repeatedly checking until the lock becomes available.-->it's busy waiting-->only likely to be locked for a short period of time....

2009-12-05 15:23:19 98

原创 volatile busy wating

consequently C++, the keyword was intended to:[citation needed] * allow access to memory mapped devices * allow uses of variables between setjmp and longjmp * allow uses of variables ...

2009-12-05 15:14:51 86

原创 source code

_LARGEFILE64_SOURCE#define _GNU_SOURCE#define _BSD_SOURCE#define _SVID_SOURCE_THREAD_SAFE能使用相应的库和MACRO

2009-12-05 14:01:48 110

C保留字

原来只认为是基本的函数,库名字,今天看libc manual发现限制更加多You only need to worry about these restrictions if your program includes thatparticular header file.The header file ‘dirent.h’ reserves names prefixed with ‘...

2009-12-05 13:49:50 115

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除