Re: Why khttpd is a bad idea

Marek Habersack (grendel@vip.net.pl)
Sun, 20 Jun 1999 16:34:20 +0200


--cWoXeonUoKmBZSoM
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable

* Chris Smith said:
> Dan Hollis wrote:
> > Exactly. In-kernel http is lower memory profile, simpler, and faster.
> > All are major issues in embedded systems.
>=20
> Hate to burst this bubble, but what is the use of a completely static web
> server on an embedded device? None. If you can't use dynamic pages then
> you can't report status, and if you can't handle some kind of CGI or
Wrong. You can use Java applets to report status - that's what 3Com's
devices do.

> whatever else, then you can't do dynamic configuration. Which means you'=
ll
Oh, you can. If you're talking about configuration of the WWW interface -
cookies are there for you, if you're talking about the configuration of the
device itself, internal variables etc. are modified and stored on the flash
media. Where's the need for dynamic pages?

> need a CGI-capable web server running in user space anyway to do useful w=
ork
Why?

> in an embedded device. Thus, no memory savings. The extra memory for
> in-kernel khttpd might even matter on an embedded device, so I doubt it
> would get used anyway.
I think it would get used - memory savings would be quite significant, as
well as the time saved on context switches and the like.

> Sure, you might be able to make things marginally faster -- just remember
> there is a cost there, too. There's a reason that all processes don't run
> at privelege 0, and that's because it makes the system less reliable.
You are talking about an environment where there are a lots of user-space
processes, many people connect to the server, many other servers talk to it
etc. - none of this is true with an embedded system. And if you have a
kernel with most of the services the given embedded system needs, asssuming
they are well written, you won't have the problems you just envisioned. And
try to stuff a full-blown httpd with CGI, FastCGI and whatsnot into a gas
distributor with an embedded OS (and don't laugh, such things with Linux
inside work in the Netherlands :)).

marek

--cWoXeonUoKmBZSoM
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia

iQCVAwUBN2z77J1EuNB7BOoNAQHbrQP/UE7KlVjiYDTuRdUNMwUgVHG+jnH21mzv
Lw6WUKWdHHJua0B2TIoL4WzF1kWVRn+OopYuQ9M/UjLDIb907ehBBGK5ijX6Do6v
z+Of4CRqBOyZhpQhjpgdnKvGLQ6pvbOAO127PjM5qGMzxG/mk4L/+j0BBNX6pCEk
HuDyi6nx9/w=
=faVx
-----END PGP SIGNATURE-----

--cWoXeonUoKmBZSoM--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/