mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
MS-476 1. enable default value
Former-commit-id: 1692514a0749b7fdaaf66679c07903398efd3b7e
This commit is contained in:
parent
ee303a525a
commit
b24882563d
@ -42,6 +42,9 @@ StartSchedulerService() {
|
||||
auto pinned_memory = resconf.GetInt64Value(server::CONFIG_RESOURCE_PIN_MEMORY);
|
||||
auto temp_memory = resconf.GetInt64Value(server::CONFIG_RESOURCE_TEMP_MEMORY);
|
||||
auto resource_num = resconf.GetInt64Value(server::CONFIG_RESOURCE_NUM);
|
||||
if (pinned_memory == 0) pinned_memory = 300;
|
||||
if (temp_memory == 0) temp_memory = 300;
|
||||
if (resource_num == 0) resource_num = 2;
|
||||
pinned_memory = 1024 * 1024 * pinned_memory;
|
||||
temp_memory = 1024 * 1024 * temp_memory;
|
||||
knowhere::FaissGpuResourceMgr::GetInstance().InitDevice(device_id, pinned_memory, temp_memory, resource_num);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user