[
https://issues.apache.org/jira/browse/TS-2168?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13761075#comment-13761075
]
Yunkai Zhang edited comment on TS-2168 at 9/7/13 5:20 PM:
----------------------------------------------------------
1) Yes, that is what I mean (make enable_reclaim to 1 in both RecordsConfig.cc
and records.config).
2) I had put a note in records.config for a long time, but you didn't read it
carefully:
{code}
##############################################################################
#
# Configuration for Reclaimable InkFreeList memory pool
#
# NOTE: The following options are meaningfull only when Traffic Server is
# compiled with the following option to configure:
#
# --enable-reclaimable-freelist
#
##############################################################################
CONFIG proxy.config.allocator.enable_reclaim INT 1
# The value of reclaim_factor should be in the 0.0 to 1.0 range. Allocators
# use it to calculate size of unused memory, which is used to determine when
# to reclaim memory. The larger the value, the more aggressive reclaims.
CONFIG proxy.config.allocator.reclaim_factor FLOAT 0.300000
# Allocator will reclaim memory only when it continuously satisfy the reclaim
# condition for max_overage continuous checks.
CONFIG proxy.config.allocator.max_overage INT 3
# For debugging, enable debug_filter, which is a bit-map with these fields:
# bit 0: reclaim memory in ink_freelist_new
# bit 1: allocate memory from partial-free Chunks(if exist) or OS
CONFIG proxy.config.allocator.debug_filter INT 0
{code}
was (Author: yunkai):
1) Yes, that is what I mean (make enable_reclaim to 1 in both
RecordsConfig.cc and records.config).
2) I had put a note in records.config for a long time, but you didn't read it
carefully.
> Confusion about proxy.config.allocator.enable_reclaim setting
> -------------------------------------------------------------
>
> Key: TS-2168
> URL: https://issues.apache.org/jira/browse/TS-2168
> Project: Traffic Server
> Issue Type: Bug
> Components: Configuration
> Reporter: David Carlin
> Assignee: Leif Hedstrom
> Fix For: 4.1.0
>
> Attachments:
> 0001-TS-2168-Use-if-condition-to-control-reclaimable-free.patch
>
>
> The default records.config in 4.0.1 says the following which is contradictory:
> {noformat}
> # The value of enable_reclaim should be 0 or 1. Default 1, reclaim enabled.
> CONFIG proxy.config.allocator.enable_reclaim INT 0
> {noformat}
> mgmt/RecordsConfig.cc shows the following:
> {RECT_CONFIG, "proxy.config.allocator.enable_reclaim", RECD_INT, "1",
> RECU_NULL, RR_NULL, RECC_NULL, "[0-1]", RECA_NULL}
> So the default is 1, but records.config changes it to 0.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira