-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android cannot create mmap'ed file in /tmp, so only use it if 'zerocopy' set #116
Comments
From jef.poskanzer on December 13, 2013 08:43:40 There's some similar code in issue 100 's patches. There's also similar code to be found in old versions of iperf_api.c. The first mmap version was 324, so this will get you the final malloc version: |
From jef.poskanzer on December 13, 2013 08:47:20 Actually, on second glance what the patch in issue 100 does is use /cache instead of /tmp on Android. If that makes it possible to continue using mmap in all cases then that is the simpler change and we don't need to resurrect the malloc code. |
From frode.isaksen on December 13, 2013 08:54:37 We would like to use a single binary for both Android and Linux, so having a conditional compile flag for Android is not that good.. |
From jef.poskanzer on December 13, 2013 09:36:37 Not needing to build a separate Android binary is a good goal, but --zerocopy functioning on Android is even better. Maybe there's some way to do a runtime test of whether to use /tmp or /cache. |
From frode.isaksen on December 17, 2013 05:13:29 OK - if using /tmp fails, I will try using /cache. Is this OK or ?? |
From bltierney@es.net on December 18, 2013 13:43:43 Labels: Milestone-3.1a1 |
From frode.isaksen on January 17, 2014 01:07:59 Included you will find a patch that will try different locations for the temporary mmap'ed file. I have added /cache for Android, but you can easily add other locations as well. Attachment: android-fix2.diff |
From frode.isaksen on November 27, 2013 07:11:25
Android cannot create mmap'ed file in /tmp, so only use it if 'zerocopy' set. If not 'zerocopy', use malloc'ed buffer instead of mmap'ed buffer.
Patch attached.
Attachment: android-fix.diff
Original issue: http://code.google.com/p/iperf/issues/detail?id=116
The text was updated successfully, but these errors were encountered: