From: Rodrigo B. (a. morcego) <rod...@co...> - 2000-12-05 23:39:00
|
On Tue, Dec 05, 2000 at 02:56:18PM -0800, Mooneer Salem wrote: > [sent to user-mode-linux-devel as well] >=20 > I'm messing with the network code at the moment. I noticed that > the virtual ethernet driver makes a TCP connection to localhost. > How much less overhead would be incurred if this was changed to > use Unix sockets instead (e.g. like /tmp/mysql.sock for MySQL)? >=20 > Right now I made a few hacks to both the user-mode utilities and > the test11 kernel to use Unix sockets instead of TCP/IP. > Basically the kernel opens /tmp/tapx for each virtual ethernet device > it detects, instead of opening a connection to localhost. The user-mode > utilities make sockets on /tmp/tapx and use those instead of TCP/IP. This > should cut down on overhead. Once I see how stable or unstable it > is I'll make the diffs and send them to Jeff and/or the list. Well, I may be wrong, but I think UNIX Socket handling is actualy slower then network socket handling (expecialy when conserning the lo interface). Have you benckmarked it ? []s --=20 Rodrigo Barbosa (morcego) - rod...@co... Conectiva R&D Team - http://distro.conectiva.com.br "Quis custodiet custodes?" - http://www.conectiva.com |