memcached udp datagram size and noreply option support
Tomash Brechko
tomash.brechko at gmail.com
Sun May 4 07:09:26 UTC 2008
On Sun, May 04, 2008 at 01:50:26 +0100, Erik Ljungstrom wrote:
> The MTU is normally set on your network interfaces (and possibly
> subsequent network devices depending on your setup) rather than in
> individual applications. How you do it obviously depends on what OS
> you're running. On Linux, *BSD and Solaris you'd typically do:
> ifconfig [interface] mtu [value] where value is the maximum number of
> bytes which can be sent in one go through that interface. So the
> default 1500 means that packets will be fragmented if they exceed 1500
> bytes.
Later I recalled that the MTU value is hardcoded into memcached
source. This is because memcached has to output an UDP header, and
thus has to know how big the packet is. I don't have the source at
hand now, grep something like '\b14[0-9][0-9]\b'. I.e., you'll have
to change that value too...
--
Tomash Brechko
More information about the memcached
mailing list