Skip to content

Commit fbeb464

Browse files
committed
docs: Mitigate memory fragmentation
Reported in #516.
1 parent 635df6a commit fbeb464

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,16 @@ Messages in `dmesg` like this means bugs in the USB driver. Updating kernel migh
7272
[ 509.238580] xhci_hcd 0000:03:00.0: Assuming host is dying, halting host.
7373
```
7474

75+
`failed to submit transfer: LIBUSB_ERROR_IO` followed by `dmesg` messages
76+
```
77+
[ 1417.271120] kinect2_bridge: page allocation failure: order:7, mode:0x40d0
78+
...
79+
[ 1417.271230] [<ffffffff815e8f93>] proc_do_submiturb+0x5c3/0xbc0
80+
[ 1417.271235] [<ffffffff815ea088>] usbdev_do_ioctl+0xaf8/0xfb0
81+
82+
```
83+
means USB buffer allocation fails due to memory fragmentation. Reserve memory `sudo sysctl -w vm.min_free_kbytes=65536` or more (always less than 5% of total memory) to mitigate this.
84+
7585
Windows 7 does not have great USB 3.0 drivers. In our testing the above known working devices will stop working after running for a while. However, the official Kinect v2 SDK does not support Windows 7 at all, so there is still hope for Windows 7 users. Windows 8.1 and 10 have improved USB 3.0 drivers.
7686

7787
Disabling USB selective suspend/autosuspend might be helpful to ameliorate transfer problems.

0 commit comments

Comments
 (0)