commit | 5a804b923e2faa4bf9f02b238b94abceb3b6d0fa | [log] [tgz] |
---|---|---|
author | Jerry Zhang <zhangjerry@google.com> | Thu Dec 15 17:07:38 2016 -0800 |
committer | Jerry Zhang <zhangjerry@google.com> | Tue Jan 10 16:49:31 2017 -0800 |
tree | 860efeba67f9dd4ca3da994776cadf2e2e667648 | |
parent | 0da9804f128e1ab1ae21f9840ba7096ecce746ea [diff] |
Use FUNCTIONFS_ENDPOINT_ALLOC_BUFFER ioctl to improve performance. The ioctl preallocates kernel buffers for the read/write syscalls, reducing memory fragmentation and allowing for larger buffers, as well as removing the kmalloc overhead. Test: Manual Change-Id: I9f5fef1b1625c1a2cda374541d8042f7e0ba78f5