Zero copy data transfer from Linuxulator to FreeBSD?

Lundberg, Johannes johannes at brilliantservice.co.jp
Sat Apr 2 15:15:51 UTC 2016


Hi Hans

I created a unix socket and increased send buffer to 1 MB to avoid partial
transfers (not sure how much of a benefit there is of that though).
It seems to running very nicely. Not stalls or anything like a couple of
years ago.


On Sat, Apr 2, 2016 at 2:22 AM, Hans Petter Selasky <hps at selasky.org> wrote:

> On 04/01/16 17:18, Lundberg, Johannes wrote:
>
>> Hi Luigi
>>
>> Since this is an embedded device running on battery every bit counts.
>> However, this is kind of a temporary solution so I'm considering accepting
>> it..
>>
>> At any rate, I am generally curious what mechanism there are for
>> transferring data between Linux and native process in FreeBSD..
>>
>>
> Hi,
>
> libusb has only one copy to/from userspace. libusb v1.0 and v0.1 has some
> allocation during operation, while libusb v2.0 API doesn't.
>
> There was an optimisation done recently about IOCTLs allocating memory for
> the data argument. Maybe that is what is causing the problem you saw?
>
> Refer to SYS_IOCTL_SMALL_SIZE in sys/kern/ .
>
> --HPS
>
>

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
秘密保持について:この電子メールは、名宛人に送信したものであり、秘匿特権の対象となる情報を含んでいます。
もし、名宛人以外の方が受信された場合、このメールの破棄、およびこのメールに関する一切の開示、
複写、配布、その他の利用、または記載内容に基づくいかなる行動もされないようお願い申し上げます。
---
CONFIDENTIALITY NOTE: The information in this email is confidential
and intended solely for the addressee.
Disclosure, copying, distribution or any other action of use of this
email by person other than intended recipient, is prohibited.
If you are not the intended recipient and have received this email in
error, please destroy the original message.


More information about the freebsd-hackers mailing list