From owner-freebsd-java Mon Feb 23 15:22:31 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA10153 for freebsd-java-outgoing; Mon, 23 Feb 1998 15:22:31 -0800 (PST) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from internetdevices.com (idi-fk-gw.abhiweb.com [205.138.236.250]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA10001; Mon, 23 Feb 1998 15:22:14 -0800 (PST) (envelope-from iyer@internetdevices.com) Received: from internetdevices.com (localhost [127.0.0.1]) by internetdevices.com (8.8.7/8.8.7) with ESMTP id PAA26573; Mon, 23 Feb 1998 15:20:39 -0800 (PST) Message-ID: <34F20247.DCFAF718@internetdevices.com> Date: Mon, 23 Feb 1998 15:12:07 -0800 From: Iyer Mahadevan X-Mailer: Mozilla 4.04 [en] (X11; I; SunOS 5.4 sun4m) MIME-Version: 1.0 To: iyer@internetdevices.com, java@FreeBSD.ORG, freebsd-java@FreeBSD.ORG, java-port@FreeBSD.ORG, saurabh@internetdevices.com Subject: IO Performace problems using Java Sockets on FreeBSD Content-Type: multipart/mixed; boundary="------------8960BCFB47364B9B484D575E" Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org This is a multi-part message in MIME format. --------------8960BCFB47364B9B484D575E Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Iyer Mahadevan wrote: > There were some problems with the formatting on my previous mail. > So I am sending the mail again > > I set up en echo server that echoes the request back to the client. > I found that there were serious performance problems when data was being > written to the socket and read at the other end > > R1 = Time request read by server - Time request sent by client > R2 = Time reply read by client - Time reply sent by server > Total = Time received reply - Time connected to server > > 133 MH 64 MB > FreeBSD 2.2-STABLE > ----------------- > > Server Client R1 R2 Total > > C C 194 2 200 > Java C - - 400 > Java Java 191 199 400 > > =========================== > > 70 MH 64 MB > SunOS Release 5.4 > -------------- > > Server Client R1 R2 Total > > C C 41 49 98 > Java C - - 103 > Java Java 44 46 111 > > =========================== > > Note: > > 1. I took 5 samples for each case > 2. Both client and server were running on the same machine (used > localhost to connect) > > Questions > > When compared to the Solaris numbers ........ > > 1. Do you understand why the socket I/O is twice as expensive on FreeBSD > for(C Server - C Client) > 2. Do you understand why the socket I/O is 4 times as expensive on > FreeBSD for (Java Server - C Client) > > PS : Let me know if you need any code, any generic Java/C socket code > should do --------------8960BCFB47364B9B484D575E Content-Type: message/rfc822 Content-Transfer-Encoding: 7bit Content-Disposition: inline Received: from internetdevices.com (localhost [127.0.0.1]) by internetdevices.com (8.8.7/8.8.7) with ESMTP id PAA26309 for ; Mon, 23 Feb 1998 15:15:31 -0800 (PST) Sender: iyer Message-ID: <34F20112.69495478@internetdevices.com> Date: Mon, 23 Feb 1998 15:06:59 -0800 From: Iyer Mahadevan X-Mailer: Mozilla 4.04 [en] (X11; I; SunOS 5.4 sun4m) MIME-Version: 1.0 To: iyer@internetdevices.com Subject: Socket IO Performance Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit There were some problems with the formatting on my previous mail. So I am sending the mail again I noticed some serious performance problems with Java Socket I/O. I set up en echo server that echoes the request back to the client. I found that there were serious performance problems when data was being written to the socket and read at the other end R1 = Time request read by server - Time request sent by client R2 = Time reply read by client - Time reply sent by server Total = Time received reply - Time connected to server 133 MH 64 MB FreeBSD 2.2-STABLE ----------------- Server Client R1 R2 Total C C 194 2 200 Java C - - 400 Java Java 191 199 400 =========================== 70 MH 64 MB SunOS Release 5.4 -------------- Server Client R1 R2 Total C C 41 49 98 Java C - - 103 Java Java 44 46 111 =========================== Note: 1. I took 5 samples for each case 2. Both client and server were running on the same machine (used localhost to connect) Questions When compared to the Solaris numbers ........ 1. Do you understand why the socket I/O is twice as expensive on FreeBSD for(C Server - C Client) 2. Do you understand why the socket I/O is 4 times as expensive on FreeBSD for (Java Server - C Client) PS : Let me know if you need any code, any generic Java/C socket code should do --------------8960BCFB47364B9B484D575E-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message