BerkeleyDB使用中的cache同步问题
今天被一个程序折腾了很久。大致的流程是这样:
事件处理:
- 打开db文件,如果已经打开,直接使用该handle
- 获得排他锁,并读某一key对应的value
- 根据value和一些环境信息以及事件所附带的输入计算新的value
- 更新value,并同步文件、释放排他锁
锁的机制没有大毛病,可是数据死活不对。
共368篇文章。
今天被一个程序折腾了很久。大致的流程是这样:
事件处理:
锁的机制没有大毛病,可是数据死活不对。
Google了一下发现无数模块的实现……
专业选手就不用看了,主要是给没听说过OI的同学玩的。
很多以前执行的不很好的、很Linux的程序,如Evolution、Firefox等等,libmap一下之后,突然都变得非常顺畅了……
今天复习了一次……
第一,你需要源代码编译出来的包含调试符号的目标代码。
第二,backtrace中的内容要尽可能完整。
With the work from intron@ now we have the Chinese Project’s translations in PDF format!
I think we would be going to release 6.0-RC2 soon, to encourage more testing against the recently caught issues that addressed several race conditions, etc.
Well, this Saturday and Sunday is not for rest, because we have a 7-days’ vacation from October 1.
I think FreeBSD 6.0-STABLE (RELENG_6) is in a quite nice shape and it’s a good time to cut 6.0-RC1 (also RELENG_6_0) and be more careful committing code against RELENG_6. However, according to my diff service there are still a lot of unmerged changes.
I have submitted a plenty (about 4 or 5 or even 6 dozens) of MFC requests last week. I wish that the diff reduction part of these changes, in conjunction with important bugfixes, would got approved soon so we will have a healthy RC1 for test.
Emily Boyd同学设计的新版 www.FreeBSD.org 今天上线了,很漂亮。不知道我们什么时候能让中文版跟上……
易帜了!易帜了!
经过测试发现,lighttpd的性能要比Apache好。虽然还不是很熟悉,但是这一步迟早要迈出去的。我觉得一个技术人员的生命终结的标志就是开始毫无理由地拒绝尝试新事物。