免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: aaaaaa
打印 上一主题 下一主题

[proxy] Apache Traffic Server 3.2.0 正式版,附srpm包 [复制链接]

论坛徽章:
0
161 [报告]
发表于 2011-12-15 15:17 |只看该作者
回复 163# aaaaaa


谢谢
请问在默认状态下需要修改哪几个重要参数

论坛徽章:
0
162 [报告]
发表于 2011-12-15 16:13 |只看该作者
这个,TS的内存占用跟配置的缓存大小关系差别好大啊。测得3.0.2

默认的256M的cache,内存占用刚启动的时候才5,6十M。

现在配置成:

/dev/sda3  // 900G
/dev/sdb   // 1T

内存直接升到3.3g,以为是ram_cache的问题,可是把ram_cache固定为20M,还是这么大。

难道是维护的cache的DIR结构需要这么大么,这有点夸张吧。。

论坛徽章:
0
163 [报告]
发表于 2011-12-16 11:49 |只看该作者
目前cache的dir信息是10字节,配置默认平均文件大小是8K:
1.9T/8K*10Byte=2.4G
所以说,大硬盘会消耗你系统内存的。如果你的平均大小改了,会显著的改善内存的大小,因此,可以看看你的平均Object大小,如果你发现是16K,就可以降低一半的内存使用。

ram cache的启用,会造成一部分内存无法释放回系统,我们测试结果最多会多用30-40%,这个是TS和操作系统以及libc内存管理的一个问题,我们正在找一个合适的方案来搞定这个问题。预计这个月差不多搞定。


FYI

论坛徽章:
0
164 [报告]
发表于 2011-12-16 17:03 |只看该作者
本帖最后由 yayu_myself 于 2011-12-16 17:04 编辑

回复 166# aaaaaa


    您这么一说,我想起来了,cache初始化是由这么一段:

    (d->len - (d->start - d->skip)) / cache_config_min_average_object_size

   没想到去详细计算,


ram cache还有这么一个问题呀,你这一描述,感觉问题好深的样子,哈哈。。

论坛徽章:
0
165 [报告]
发表于 2011-12-16 18:29 |只看该作者
是啊,问题挺纠结的,是libc的老问题啦,ramcache由于长期占用内存,造成问题更纠结。

论坛徽章:
0
166 [报告]
发表于 2011-12-16 19:30 |只看该作者
回复 168# aaaaaa


    嗯,我还是好好学习代码。。

论坛徽章:
0
167 [报告]
发表于 2011-12-19 14:19 |只看该作者
请问添加新硬盘时,可以使用裸盘(没有分区,格式化)吗

论坛徽章:
0
168 [报告]
发表于 2011-12-19 15:00 |只看该作者
本帖最后由 xierui54 于 2011-12-19 15:01 编辑

在3.0.2版的etc配置文件中没有找到TrafficServer管理员指南中提到的“filter.config”这个文件,请问这个文件中需要添加的一些选项应该在哪里添加

论坛徽章:
0
169 [报告]
发表于 2011-12-20 10:10 |只看该作者
我测试Prefetch模块,发现Prefetch模块会发生段错误,
ab -n 1 -c 1 -X 192.168.16.198:8080 -d http://club.baobao.sohu.com/r-mmbb-3954004-0-29-900.html
访问上面的页面,每次都会发生。在traffic server官网,没有查到这个问题
配置方面:在records.config中使能Prefetch,在Prefetch.config中配置child,


#0  0x08124f17 in VIO::reenable (this=0x0) at ../iocore/eventsystem/P_VIO.h:123
#1  0x08147fe3 in KeepAliveConn::append (this=0xab9aef20, rdr=0x9c91b794) at Prefetch.cc:1984
#2  0x08145fd7 in KeepAliveConnTable::append (this=0xb2393608, ip=16777343, buf=0x9c91b780, reader=0x9c91b794) at Prefetch.cc:2039
#3  0x0814679b in KeepAliveLockHandler::handleEvent (this=0xb23e0b30, event=2, data=0x8ab2f60) at Prefetch.cc:2168
#4  0x08104ba5 in Continuation::handleEvent (this=0xb23e0b30, event=2, data=0x8ab2f60)
    at ../iocore/eventsystem/I_Continuation.h:146
#5  0x0830a9f5 in EThread::process_event (this=0xb7396008, e=0x8ab2f60, calling_code=2) at UnixEThread.cc:140
#6  0x0830add5 in EThread::execute (this=0xb739600 at UnixEThread.cc:217
#7  0x0830900e in spawn_thread_internal (a=0x895eed at Thread.cc:88
#8  0x00165cc9 in start_thread (arg=0xb6f91b70) at pthread_create.c:304
#9  0x0066f69e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

#0  0x08124f17 in VIO::reenable (this=0x0) at ../iocore/eventsystem/P_VIO.h:123
#1  0x08147fe3 in KeepAliveConn::append (this=0xa5736888, rdr=0x8d0b2f4) at Prefetch.cc:1984
#2  0x08145fd7 in KeepAliveConnTable::append (this=0xb2393608, ip=16777343, buf=0x8d0b2e0, reader=0x8d0b2f4) at Prefetch.cc:2039
#3  0x08141db3 in PrefetchUrlBlaster::udpUrlBlaster (this=0x8abd3e0, event=3300, data=0x0) at Prefetch.cc:885
#4  0x0813e4ea in PrefetchUrlBlaster::init (this=0x8abd3e0, list_head=0xabc59ac0, u_proto=TCP_BLAST) at Prefetch.h:280
#5  0x08147806 in BlasterUrlList::invokeUrlBlaster (this=0xa7c22260) at Prefetch.h:287
#6  0x08141ac8 in BlasterUrlList::handleEvent (this=0xa7c22260, event=3302, data=0xabc59ac0) at Prefetch.cc:803
#7  0x08143c89 in PrefetchBlaster::handleEvent (this=0xa5739920, event=2, data=0x0) at Prefetch.cc:1420
#8  0x08144f42 in PrefetchBlaster::invokeBlaster (this=0xa5739920) at Prefetch.cc:1769
#9  0x08143e22 in PrefetchBlaster::handleEvent (this=0xa5739920, event=1102, data=0xb23cdca0) at Prefetch.cc:1448
#10 0x08104ba5 in Continuation::handleEvent (this=0xa5739920, event=1102, data=0xb23cdca0)
    at ../iocore/eventsystem/I_Continuation.h:146
#11 0x082c1abf in CacheVC::callcont (this=0xb23cdca0, event=1102) at P_CacheInternal.h:629
#12 0x082c1487 in CacheVC:penReadStartHead (this=0xb23cdca0, event=3900, e=0x0) at CacheRead.cc:1115
#13 0x08104ba5 in Continuation::handleEvent (this=0xb23cdca0, event=3900, data=0x0) at ../iocore/eventsystem/I_Continuation.h:146
#14 0x082c1431 in CacheVC:penReadStartHead (this=0xb23cdca0, event=2, e=0x8ab48a0) at CacheRead.cc:1112
#15 0x08104ba5 in Continuation::handleEvent (this=0xb23cdca0, event=2, data=0x8ab48a0)
    at ../iocore/eventsystem/I_Continuation.h:146
#16 0x0830a9f5 in EThread::process_event (this=0xb7295008, e=0x8ab48a0, calling_code=2) at UnixEThread.cc:140
#17 0x0830add5 in EThread::execute (this=0xb729500 at UnixEThread.cc:217
#18 0x0830900e in spawn_thread_internal (a=0x895dd00) at Thread.cc:88
#19 0x00165cc9 in start_thread (arg=0xb6e90b70) at pthread_create.c:304
#20 0x0066f69e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130


论坛徽章:
0
170 [报告]
发表于 2011-12-20 13:49 |只看该作者
本帖最后由 yunfeichen119 于 2011-12-21 11:46 编辑

可以回复了。。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP