From owner-freebsd-questions Sun Dec 16 11: 8:15 2001 Delivered-To: freebsd-questions@freebsd.org Received: from protactinium.btinternet.com (protactinium.btinternet.com [194.73.73.176]) by hub.freebsd.org (Postfix) with ESMTP id 7D5AF37B41B for ; Sun, 16 Dec 2001 11:08:08 -0800 (PST) Received: from host213-123-128-172.in-addr.btopenworld.com ([213.123.128.172] helo=there) by rhenium with smtp (Exim 3.22 #8) id 16Fg4w-00017w-00; Sun, 16 Dec 2001 18:32:02 +0000 Content-Type: text/plain; charset="iso-8859-1" From: Dominic Marks To: Roy Sigurd Karlsbakk Subject: Re: in-kernel web server??? Date: Sun, 16 Dec 2001 18:32:18 +0000 X-Mailer: KMail [version 1.3.2] Cc: References: In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sunday 16 December 2001 6:24 pm, Roy Sigurd Karlsbakk wrote: > > > I've been trying to setup a pretty weird system with Linux and > > > the in-kernel web server Tux. This gives me quite good I/O, and > > > with zero-copy memory operation, this is FAST! > > > > How fast? > > on a athlon 1133mhz w/ 1GB ram and two drives in RAID-0, I can do > ~50 megs per sec from disk to nic, reading 200 files simultanous > with a pervers readahead and 4 megs stripe/chunk size, maxing out > the PCI bus by reading from disk to memory, and then to the nic... > > > Problem: Linux caching/buffering sucks, and by reading lots of > > > large files at once (some 200 files, each 3-4GB), the system > > > slows down to a mere 1MB/sec after 30-40 seconds. Have you experimented with FTP and NFS copy speeds for comparison? > > > Are there any Tux/khttpd-like (in-kernel) web servers for > > > FreeBSD? > > > > Services should be in the userland, putting them in the kernel is > > just stupid. > > It depends. I can NOT use apache, as it doesn't have any zero-copy > operation. AFAIK FreeBSD does not support zero copy. There are some patches floating around but I have no knowledge about them. >That means, data is read from disk, put into > kernel-space memory, copied to user-space memory, and then handled > by Apache. Tux/khttpd just reads it from disk and copies it to the > nic using the sendfile() call. Similar results have been shown with > mmap() on Linux. I really don't know the BSD world, but I'm > thinking seriously about converting. > roy -- Dominic To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message