tensorflow / serving

A flexible, high-performance serving system for machine learning models
https://www.tensorflow.org/serving
Apache License 2.0
6.16k stars 2.19k forks source link

Building tensorflow serving with TCMalloc #2183

Open jeongukjae opened 1 year ago

jeongukjae commented 1 year ago

Feature Request

Describe the problem the feature is intended to solve

Recently I found that building tensorflow serving with tcmalloc and set soft limit can mitigating these kind of memory issue: https://github.com/tensorflow/serving/issues/2142 , https://github.com/tensorflow/serving/issues/1664. Also, I could get slightly better performances.

Here's what I did.

Describe the solution

How about providing tensorflow serving compiled with tcmalloc? I know I can use jemalloc instead, but jemalloc has so much configurations, while tcmalloc doesn't. It is easy to use and has great performance.

singhniraj08 commented 12 months ago

@jeongukjae,

Thank you for filing this feature request. We will discuss this feature implementation internally and update this thread. Thanks.