diff --git a/python/dllib/src/bigdl/dllib/utils/zoo_engine.py b/python/dllib/src/bigdl/dllib/utils/zoo_engine.py
index <HASH>..<HASH> 100644
--- a/python/dllib/src/bigdl/dllib/utils/zoo_engine.py
+++ b/python/dllib/src/bigdl/dllib/utils/zoo_engine.py
@@ -101,6 +101,11 @@ def __prepare_analytics_zoo_env():
             if package not in sys.path:
                 sys.path.insert(0, package)
 
+    os.environ["KMP_BLOCKTIME"] = "0"
+    os.environ["KMP_AFFINITY"] = "granularity=fine,verbose,compact,1,0"
+    os.environ["KMP_SETTINGS"] = "1"
+    os.environ["OMP_NUM_THREADS"] = "1"
+
 
 def get_analytics_zoo_classpath():
     """
change tensorflow runtime to tf <I> with mkl (#<I>)

* support mkl tensorflow



* change version



* change tensorflow runtime to tf <I> with mkl



* move load tensorflow binary to zoo core



* remove useless code



* fix bug