Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Jun 2001 11:37:41 -0700 (PDT)
From:      Mikko Tyolajarvi <mikko@dynas.se>
To:        dleimbac@MPI-Softtech.Com
Cc:        questions@freebsd.org
Subject:   Re: Kernel options for faster loopback?
Message-ID:  <200106291837.f5TIbf714026@explorer.rsa.com>
References:  <20010629114724.A1074@mpi-plusplus.mpi-softtech.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In local.freebsd.questions you write:

>Anyone know of anyway for me to speed up loopback performance on FreeBSD?

>My times are awful for ping 127.0.0.1 in comparison to basically every other
>OS I have tried.

Are you sure you're not falling into the "meaningless microbenchmark" trap?

Unless you are actually planing to write an application that sends
ICMP echo requests through the loopback interface, may I suggest that
you test what you are going to do instead.

Ping times are not necessarily the same as loopback "performance," if
for example you are really interested in throughput, or roundtrip
times for some client-server app (c.f. X server).

I get times around 35 microseconds, much of which may well be system
call overhead (a couple of gettimeofday(), select(), sendmsg(),
recvmsg()).

>Is there some IPV6 overhead I can reduce?

If you build your kernel without "options INET6" all IPv6 code should
be #ifdeffed out.

  $.02,
  /Mikko

P.S. I tried ping on AIX, HP-UX and Solaris, all of which excluded
     any decimals on the number of milliseconds, thus ending up
     as "0".  Very fast indeed :-)
-- 
 Mikko Työläjärvi_______________________________________mikko@rsasecurity.com
 RSA Security

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200106291837.f5TIbf714026>