Saturday, 17 March 2012

Kernel-mode and user-mode web servers

A web server can be either implemented into the OS kernel, or in user amplitude (like added approved applications).

An in-kernel web server (like TUX on GNU/Linux or Microsoft IIS on Windows) will usually assignment faster, because, as allotment of the system, it can anon use all the accouterments assets it needs, such as non-paged memory, CPU time-slices, arrangement adapters, or buffers.

Web servers that run in user-mode accept to ask the arrangement the permission to use added anamnesis or added CPU resources. Not alone do these requests to the atom booty time, but they are not consistently annoyed because the arrangement affluence assets for its own acceptance and has the albatross to allotment accouterments assets with all the added active applications.

Also, applications cannot admission the system's centralized buffers, which causes abortive absorber copies that actualize addition affliction for user-mode web servers. As a consequence, the alone way for a user-mode web server to bout kernel-mode achievement is to accession the affection of its cipher to abundant college standards, agnate to that of the cipher acclimated in web servers that run in the kernel. This is a cogent affair beneath Windows, area the user-mode aerial is about six times greater than that beneath Linux.2

No comments:

Post a Comment