From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 18 14:54:42 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8B37316A4CE for ; Tue, 18 Jan 2005 14:54:42 +0000 (GMT) Received: from mail.freebsd.org.cn (dns3.freebsd.org.cn [61.129.66.75]) by mx1.FreeBSD.org (Postfix) with SMTP id EAE0643D49 for ; Tue, 18 Jan 2005 14:54:21 +0000 (GMT) (envelope-from delphij@frontfree.net) Received: (qmail 83322 invoked by uid 0); 18 Jan 2005 14:46:12 -0000 Received: from unknown (HELO beastie.frontfree.net) (219.239.99.7) by mail.freebsd.org.cn with SMTP; 18 Jan 2005 14:46:12 -0000 Received: from localhost (localhost.frontfree.net [127.0.0.1]) by beastie.frontfree.net (Postfix) with ESMTP id 1B2F41321FF; Tue, 18 Jan 2005 22:53:54 +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 52832-14; Tue, 18 Jan 2005 22:53:43 +0800 (CST) Received: from localhost.localdomain (unknown [61.49.187.140]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by beastie.frontfree.net (Postfix) with ESMTP id 9EE8F13202C; Tue, 18 Jan 2005 22:53:42 +0800 (CST) From: Xin LI To: - Felix - In-Reply-To: <002201c4fd4a$c5a81230$0700a8c0@felix> References: <002201c4fd4a$c5a81230$0700a8c0@felix> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-JaWoyVnXvxLlDmOdxopF" Organization: The FreeBSD Simplified Chinese Project Date: Tue, 18 Jan 2005 22:52:26 +0800 Message-Id: <1106059946.896.5.camel@spirit> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3 FreeBSD GNOME Team Port X-Virus-Scanned: by amavisd-new at frontfree.net cc: freebsd-hackers@freebsd.org Subject: Re: Kernel mode programming X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: delphij@delphij.net List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Jan 2005 14:54:42 -0000 --=-JaWoyVnXvxLlDmOdxopF Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Of course it's possible to take everything into kernel, but that might not a good idea since you can also easily crash the whole system and pose serious security issues because kernel trust everything that is considered to be a part of it. FreeBSD has provided many interfaces that may help out your problem. You may want to take a look at kqueue(2), sendfile(2), accept_filter(9), etc., and consider switching your application model from one to another. Another thing you may have interest is the ktrace/kdump mechanism, as well as ktr that can reveal what exactly the problem is. Please don't hesitate to submit your patch / suggestion to PR system or appropriate maillist if you think there is some *REAL* problem, as that will help the development.=20 =E5=9C=A8 2005-01-18=E4=BA=8C=E7=9A=84 11:45 +0100=EF=BC=8C- Felix -=E5=86= =99=E9=81=93=EF=BC=9A > Hi everyone, >=20 > Doing lot of syscalls interrupts in a soft seems to take quite a long tim= e, and seriously slow performances. As far as you can't reduce the syscall = amount, is there any way to run apps in kernel mode, in order to call sysfo= nctions directly ? Perhaps by re-writing softs in kernel modules ?=20 >=20 > thanks for your time. Cheers, --=20 Xin LI http://www.delphij.net/ --=-JaWoyVnXvxLlDmOdxopF Content-Type: application/pgp-signature; name=signature.asc Content-Description: =?UTF-8?Q?=E8=BF=99=E6=98=AF=E4=BF=A1=E4=BB=B6=E7=9A=84=E6=95=B0?= =?UTF-8?Q?=E5=AD=97=E7=AD=BE=E5=90=8D=E9=83=A8?= =?UTF-8?Q?=E5=88=86?= -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBB7SKq/cVsHxFZiIoRAlIMAJ9LlZ8LLskPpUHRPkV8Yj560gXlhwCfU53H TurJ86gJwa2apPijiEbo7O8= =zl8Z -----END PGP SIGNATURE----- --=-JaWoyVnXvxLlDmOdxopF--