在 2012年12月15日星期六,Leif Hedstrom (JIRA) 写道: > > [ > https://issues.apache.org/jira/browse/TS-1006?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13532466#comment-13532466] > > Leif Hedstrom commented on TS-1006: > ----------------------------------- > > At a minimum, make the default "max_mem" be 0, which means never, ever, > try to use this new reclaim code. Having a configure option would be cool > too. I don't want a new config, with some
Make the default max_mem to be 0, is a good idea. I'll give next version soon. arbitrary default (what did you expect to set max_mem to?), which the user > misconfigures or don't configure at all, and we get bizarre behavior. > > > memory management, cut down memory waste ? > > ------------------------------------------ > > > > Key: TS-1006 > > URL: https://issues.apache.org/jira/browse/TS-1006 > > Project: Traffic Server > > Issue Type: Improvement > > Components: Core > > Affects Versions: 3.1.1 > > Reporter: Zhao Yongming > > Assignee: Bin Chen > > Fix For: 3.3.2 > > > > Attachments: > 0001-Allocator-optimize-InkFreeList-memory-pool.patch, > 0002-Allocator-make-InkFreeList-memory-pool-configurable.patch, > Memory-Usage-After-Introduced-New-Allocator.png, memusage.ods, memusage.ods > > > > > > when we review the memory usage in the production, there is something > abnormal, ie, looks like TS take much memory than index data + common > system waste, and here is some memory dump result by set > "proxy.config.dump_mem_info_frequency" > > 1, the one on a not so busy forwarding system: > > physics memory: 32G > > RAM cache: 22G > > DISK: 6140 GB > > average_object_size 64000 > > {code} > > allocated | in-use | type size | free list name > > > --------------------|--------------------|------------|---------------------------------- > > 671088640 | 37748736 | 2097152 | > memory/ioBufAllocator[14] > > 2248146944 | 2135949312 | 1048576 | > memory/ioBufAllocator[13] > > 1711276032 | 1705508864 | 524288 | > memory/ioBufAllocator[12] > > 1669332992 | 1667760128 | 262144 | > memory/ioBufAllocator[11] > > 2214592512 | 2211840000 | 131072 | > memory/ioBufAllocator[10] > > 2325741568 | 2323775488 | 65536 | > memory/ioBufAllocator[9] > > 2091909120 | 2089123840 | 32768 | > memory/ioBufAllocator[8] > > 1956642816 | 1956478976 | 16384 | > memory/ioBufAllocator[7] > > 2094530560 | 2094071808 | 8192 | > memory/ioBufAllocator[6] > > 356515840 | 355540992 | 4096 | > memory/ioBufAllocator[5] > > 1048576 | 14336 | 2048 | > memory/ioBufAllocator[4] > > 131072 | 0 | 1024 | > memory/ioBufAllocator[3] > > 65536 | 0 | 512 | > memory/ioBufAllocator[2] > > 32768 | 0 | 256 | > memory/ioBufAllocator[1] > > 16384 | -- Yunkai Zhang Work at Taobao