summaryrefslogtreecommitdiff
path: root/libpackagelistparser/packagelistparser_test.cpp
diff options
context:
space:
mode:
authorJosh Gao <jmgao@google.com>2019-09-12 00:03:42 +0800
committerJosh Gao <jmgao@google.com>2019-09-17 14:48:16 +0800
commit1025b228bab33e82f2743b6316b16e85ac2b41d6 (patch)
tree898853bebae64cd17cf7797bc75ecf8d03489f1e /libpackagelistparser/packagelistparser_test.cpp
parent983f76b3c632b29ca6ff858d986378a9028493c2 (diff)
adb: fragment host linux USB writes when needed.
We've seen USB writes failing due to inability to allocate contiguous chunks of memory in the kernel on devices, but it looks like the same problem can occur on the host, as well. It's a mild performance regression (90->80 MB/s on a blueline) to split the writes always, so attempt the full write first, and fall back to splitting it up if that fails with ENOMEM. Once we switch over the the asynchronous transport API, we'll be able to submit multiple writes cheaply, like on devices, so we won't need to retry at that point. Bug: http://b/140985544 Test: test_device.py Change-Id: I1517c348375b829dfff6796c4e9d394802b02d5b
Diffstat (limited to 'libpackagelistparser/packagelistparser_test.cpp')
0 files changed, 0 insertions, 0 deletions