From owner-freebsd-performance@FreeBSD.ORG Mon Sep 19 03:37:44 2005 Return-Path: X-Original-To: freebsd-performance@FreeBSD.org Delivered-To: freebsd-performance@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6871016A41F; Mon, 19 Sep 2005 03:37:44 +0000 (GMT) (envelope-from delphij@frontfree.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [210.51.165.229]) by mx1.FreeBSD.org (Postfix) with ESMTP id 431CA43D48; Mon, 19 Sep 2005 03:37:43 +0000 (GMT) (envelope-from delphij@frontfree.net) Received: from beastie.frontfree.net (unknown [211.71.95.7]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTP id EE576EB08D7; Mon, 19 Sep 2005 11:37:37 +0800 (CST) Received: from localhost (localhost.frontfree.net [127.0.0.1]) by beastie.frontfree.net (Postfix) with ESMTP id DCD5413159E; Mon, 19 Sep 2005 11:37:33 +0800 (CST) Received: from beastie.frontfree.net ([127.0.0.1]) by localhost (beastie.frontfree.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 84846-16; Mon, 19 Sep 2005 11:37:24 +0800 (CST) Received: from [10.217.12.235] (sina152-194.staff.sina.com.cn [61.135.152.194]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by beastie.frontfree.net (Postfix) with ESMTP id 214D3130C42; Mon, 19 Sep 2005 11:37:24 +0800 (CST) From: Xin LI To: freebsd-arch@FreeBSD.org Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-MlGidjHbWMxS/2Zg/9Vh" Organization: The FreeBSD Simplified Chinese Project Date: Mon, 19 Sep 2005 11:37:22 +0800 Message-Id: <1127101042.788.30.camel@spirit> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 FreeBSD GNOME Team Port X-Virus-Scanned: amavisd-new at frontfree.net Cc: freebsd-performance@FreeBSD.org Subject: Combine more operation within one system call: to do it, or not to do it? X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Sep 2005 03:37:44 -0000 --=-MlGidjHbWMxS/2Zg/9Vh Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Dear folks, It seems that Microsoft has recently revised several of their APIs. One example is their ConnectEx(), as found in documentation [1]. The implementation is not so complex that it just combines more operation within one system call, however, this can reduce some unnecessary context switches as it's now possible to do more things within one system call. (For instance, when you connect to a server, you usually want to send some data as request). Shall we do something similar? Or do we already done something similar? [1] http://msdn.microsoft.com/library/default.asp?url=3D/library/en-us/winsock/= winsock/connectex_2.asp Cheers, --=20 Xin LI http://www.delphij.net/ --=-MlGidjHbWMxS/2Zg/9Vh Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDLjJy/cVsHxFZiIoRAssxAKCD3rV/yiXY//MqGAMqNT6NjCpe0wCeMQ1V qlRLNc56p9nQwrCPLiBG7/E= =ZTQ/ -----END PGP SIGNATURE----- --=-MlGidjHbWMxS/2Zg/9Vh--