RE: Setting fds_limit.

2017-06-26 Thread Chou, Peter
+ THROTTLE_FD_HEADROOM so that the fds_throttle is not forced lower again later in check_fd_limit(). Thanks, Peter -Original Message- From: Chao Xu [mailto:ok...@apache.org] Sent: Saturday, June 24, 2017 5:43 AM To: dev@trafficserver.apache.org Subject: Re: Setting fds_limit. Hi Peter, The

Re: Setting fds_limit.

2017-06-24 Thread Chao Xu
Hi Peter, The `fds_limit` is hard limit of fds. The 192 fds are reserved for ats internal use (epoll fd , EThread signal, etc ...). The throttle is soft limit of fds and (fds_limit - 192) is the max value of throttle. We can not and must not change the hard limit since it is set by operating syst

Setting fds_limit.

2017-06-23 Thread Chou, Peter
Hi, In adj_system_settings() in proxy/Main.cc, we have (paraphrasing here) -- if throttle > (current - head_room) then cur = max = throttle setrlimit()... Would it make more sense to set -- cur = max = throttle + head_room Otherwise, our users see the warning, try to compensate, an