摘要:
原文引用地址:https://www.ibm.com/developerworks/cn/linux/l-linux-slab-allocator/动态内存管理内存管理的目标是提供一种方法,为实现各种目的而在各个用户之间实现内存共享。内存管理方法应该实现以下两个功能:最小化管理内存所需的时间最大化用于一般应用的可用内存(最小化管理开销)内存管理实际上是一种关于权衡的零和游戏。您可以开发一种使用少量内存进行管理的算法,但是要花费更多时间来管理可用内存。也可以开发一个算法来有效地管理内存,但却要使用更多的内存。最终,特定应用程序的需求将促使对这种权衡作出选择。每个内存管理器都使用了一种基于堆的分配 阅读全文
posted @ 2012-04-21 14:57
noneisnull
阅读(1161)
评论(0)
推荐(0)
摘要:
英文地址:http://www.codeproject.com/Articles/9099/The-30-Minute-Regex-Tutorial对应的测试工具(作者未开放源码):/Files/inteliot/ExpressoSetup2C_1.zip中文参考:http://www.cnblogs.com/deerchao/archive/2006/08/24/zhengzhe30fengzhongjiaocheng.html 阅读全文
posted @ 2012-04-21 10:25
noneisnull
阅读(185)
评论(0)
推荐(0)
摘要:
基于libev,参考nginx的Iserver原型架构,已经完成了底层通讯部分,采用的是master-worker架构,主进程负责子进程的孵化和状态监控,由子进程进行select作业。整个系统已经能跑起来了,暂未作性能测试。现在遇到的问题是:由于采用多进程,未能处理好变量共享问题,导致系统log次序混乱。。。正在研究方案中:1)共享内存互斥锁:性能代价太高2)缓冲消息队列,由server统一经行处理,尚未知效果如何。。。我们需要的内存管理技术,也许 slab 真是我们想参考的技术:http://www.cnblogs.com/inteliot/archive/2012/04/21/246149 阅读全文
posted @ 2012-04-21 10:14
noneisnull
阅读(1588)
评论(0)
推荐(2)
摘要:
很不错的方案,值得参考,如果能在nginx源码级别,尽兴模块定制,我想可能效果更好:)引用地址http://amix.dk/blog/post/19414#Fast-polling-using-C-memcached-nginx-and-libeventIn this post I'll show you how to implementreally fastpolling using C andlibevent,memcachedandnginx. The performance of the server is over 2400 request pr. second on a n 阅读全文
posted @ 2012-04-21 10:04
noneisnull
阅读(1720)
评论(0)
推荐(0)
摘要:
nginx 属于Preforking Multiprocessing Architecture,详细细节,下面讲的很清楚了引用地址:http://www.fmc-modeling.org/category/projects/apache/amp/4_3Multitasking_server.htmlSubsections4.3.1 Inetd: A common multitasking architecture4.3.2 Overview -- Apache Multitasking Architectures4.3.3 The Preforking Multiprocessing Arch 阅读全文
posted @ 2012-04-21 09:55
noneisnull
阅读(1943)
评论(0)
推荐(0)

浙公网安备 33010602011771号