• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

system/core


Commit MetaInfo

Revisionb28857eee628de9ee6bbae63d745727c5bc81988 (tree)
Zeit2019-05-21 09:43:30
AutorJosh Gao <jmgao@goog...>
Commiterandroid-build-merger

Log Message

Merge "adbd: reduce queue depths." into qt-dev
am: 7eeed22871

Change-Id: I83c6590a8c3693200bb37a77edd8782fb77d414c

Ändern Zusammenfassung

Diff

--- a/adb/daemon/usb.cpp
+++ b/adb/daemon/usb.cpp
@@ -58,10 +58,12 @@ using android::base::StringPrintf;
5858 static std::optional<bool> gFfsAioSupported;
5959
6060 // 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;
6264 static constexpr size_t kUsbReadSize = 4 * PAGE_SIZE;
6365
64-static constexpr size_t kUsbWriteQueueDepth = 32;
66+static constexpr size_t kUsbWriteQueueDepth = 8;
6567 static constexpr size_t kUsbWriteSize = 4 * PAGE_SIZE;
6668
6769 static const char* to_string(enum usb_functionfs_event_type type) {