Date: Tue, 18 Jan 2005 22:52:26 +0800 From: Xin LI <delphij@frontfree.net> To: - Felix - <Felix.Schalck@gmx.net> Cc: freebsd-hackers@freebsd.org Subject: Re: Kernel mode programming Message-ID: <1106059946.896.5.camel@spirit> In-Reply-To: <002201c4fd4a$c5a81230$0700a8c0@felix> References: <002201c4fd4a$c5a81230$0700a8c0@felix>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] 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. 在 2005-01-18二的 11:45 +0100,- Felix -写道: > Hi everyone, > > Doing lot of syscalls interrupts in a soft seems to take quite a long time, 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 sysfonctions directly ? Perhaps by re-writing softs in kernel modules ? > > thanks for your time. Cheers, -- Xin LI <delphij delphij net> http://www.delphij.net/ [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBB7SKq/cVsHxFZiIoRAlIMAJ9LlZ8LLskPpUHRPkV8Yj560gXlhwCfU53H TurJ86gJwa2apPijiEbo7O8= =zl8Z -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1106059946.896.5.camel>
