Re: Network stack/ethernet driver issues
Re: Network stack/ethernet driver issues
- Subject: Re: Network stack/ethernet driver issues
- From: email@hidden
- Date: Wed, 9 Apr 2008 18:44:01 -0700 (PDT)
- Importance: Normal
Hi Chuck,
Thanks for the advice. However, there is no option to modify the ring
buffer size in the info.plist file. Also, the AppleYukon2 driver is not
open source (or at least not available for download from the Darwin source
code page). I asked about this on one of the apple dev lists quite some
time ago and was told it had to do with NDA issues with Marvell. For
another project I actually ported the linux sky2 driver to OS X so that I
could hack it for my nefarious purposes (a coreaudio driver to support an
ethernet based audio device which required stuff to happen at primary
interrupt time).
I believe the relevant kernel variable is actually kern.ipc.maxsockbuf
which is set by default to 8388608 in Leopard. In my code I set the size
of the receive socket buffer to 2097152. Making it bigger doesn't help
(since the packets aren't being discarded by the network stack but by the
ethernet device).
As suggested by a previous contributor to this thread, I will file a bug
report and post the problem report # to this list.
thanks
-rimas
> Try editing the info.plist file for the Yukon driver under OSX and
> increase the ring buffer sizes. After making the change you will have
> to execute:
>
> sudo touch /System/Library/Extensions
>
> and reboot. This will force the system to recache all drivers on boot.
>
> Alternately, if the driver doesn't allow modification of the ring
> buffer sizes from the info.plist text file, you could download the
> source (available as part of darwin) and create larger buffers inside
> the driver. Recompiling it and installing it is left as an exercise
> for the reader (ask back here if you get stuck).
>
> Lastly, make sure the net.inet.udp.* values are set to appropriate
> values. Run 'sysctl -A' to see what they are under both OSX and Linux.
> Feel free to try the values from Linux as your OSX values.
>
> There's room to tune here. Don't give up so easily. Please recall that
> OSX is, out-of-the-box, tuned for a regular user.
>
> cr
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden