system/core
Revision | b28857eee628de9ee6bbae63d745727c5bc81988 (tree) |
---|---|
Zeit | 2019-05-21 09:43:30 |
Autor | Josh Gao <jmgao@goog...> |
Commiter | android-build-merger |
Merge "adbd: reduce queue depths." into qt-dev
am: 7eeed22871
Change-Id: I83c6590a8c3693200bb37a77edd8782fb77d414c
@@ -58,10 +58,12 @@ using android::base::StringPrintf; | ||
58 | 58 | static std::optional<bool> gFfsAioSupported; |
59 | 59 | |
60 | 60 | // Not all USB controllers support operations larger than 16k, so don't go above that. |
61 | -static constexpr size_t kUsbReadQueueDepth = 32; | |
61 | +// Also, each submitted operation does an allocation in the kernel of that size, so we want to | |
62 | +// minimize our queue depth while still maintaining a deep enough queue to keep the USB stack fed. | |
63 | +static constexpr size_t kUsbReadQueueDepth = 8; | |
62 | 64 | static constexpr size_t kUsbReadSize = 4 * PAGE_SIZE; |
63 | 65 | |
64 | -static constexpr size_t kUsbWriteQueueDepth = 32; | |
66 | +static constexpr size_t kUsbWriteQueueDepth = 8; | |
65 | 67 | static constexpr size_t kUsbWriteSize = 4 * PAGE_SIZE; |
66 | 68 | |
67 | 69 | static const char* to_string(enum usb_functionfs_event_type type) { |