Kernel mode programming
Xin LI
delphij at frontfree.net
Tue Jan 18 06:54:42 PST 2005
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/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc:
=?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?=
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20050118/b3616733/attachment.bin
More information about the freebsd-hackers
mailing list