#4174 Search out of memory: CPU2GPU1 with index flat (#4178)

* Fix gpu resource issue

Signed-off-by: sahuang <xiaohai.xu@zilliz.com>

* fix_ut

Signed-off-by: shengjun.li <shengjun.li@zilliz.com>

Co-authored-by: shengjun.li <shengjun.li@zilliz.com>
pull/4212/head
Xiaohai Xu 2020-11-05 13:57:50 +08:00 committed by GitHub
parent 124d914bb5
commit 99245c0c63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View File

@ -9,6 +9,7 @@ Please mark all change in change log and use the issue from GitHub
- \#3906 Change DeleteTask state when it is loaded to avoid server crash.
- \#4012 Milvus hangs when continually creating and dropping partitions.
- \#4075 Improve performance for create large amount of partitions
- \#4174 Search out of memory: CPU2GPU1 with index flat
## Feature
- \#3773 Support IVF_PQ to run on FPGA.

View File

@ -165,7 +165,7 @@ TaskTable::PickToLoad(uint64_t limit) {
} else if (table_[index]->state == TaskTableItemState::LOADED) {
cross = true;
++loaded_count;
if (loaded_count > 2)
if (loaded_count >= 1)
return std::vector<uint64_t>();
} else if (table_[index]->state == TaskTableItemState::START) {
auto task = table_[index]->task;

View File

@ -24,7 +24,7 @@
namespace milvus {
namespace scheduler {
constexpr uint64_t max_once_load = 2;
constexpr uint64_t max_once_load = 1;
/************ ResourceBaseTest ************/
class ResourceBaseTest : public testing::Test {