- 博客(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
空空如也
如何对方法体内所有的方法执行时间进行监控?
2008-11-09
TA创建的收藏夹 TA关注的收藏夹
TA关注的人