Re: Question on low execl() performance (2.0.x kernels)

Richard B. Johnson (root@analogic.com)
Thu, 3 Apr 1997 18:07:48 -0500 (EST)


On Thu, 3 Apr 1997, Stephen Costaras wrote:

> I hope I have the right mail-list for this. If not please kindly re-direct
> me. Due to the nature of the question I couldn't think of anywhere else
> where people might know the answer. (tried the newsgroups already).
>
> I for the past couple months I've been noticing a sluggish response with Apache
> on my main server. This only started happening when I started getting 150,000
> or so hits/day. Knowing that a Tyan S1668 Dual PPro w/ 128mb ram should easily
> be able to handle several times that ammount I started searching for a problem.
>
> With the help of the Linux/Byte Benchmark suite for unix systems I think I've
> pin-pointed a problem with my exec() function. Here are stats from my system:
>
>
> BYTE UNIX Benchmarks (Version 3.11)
> System -- Linux news 2.0.29 #5 Mon Mar 31 04:11:03 CST 1997 i686 unknown
> Start Benchmark Run: Mon Mar 31 05:16:13 CST 1997
> 2 interactive users.
> [stuff snipped]
> System Call Overhead Test 36162.8 lps (10 secs, 6 samples)
> Pipe Throughput Test 59084.2 lps (10 secs, 6 samples)
> Pipe-based Context Switching Test 24296.4 lps (10 secs, 6 samples)
> Process Creation Test 1789.7 lps (10 secs, 6 samples)
> Execl Throughput Test 235.4 lps (9 secs, 6 samples)
> [stuff snipped]

[SNIPPED]
Remove the call to sync() in init. See if this fixes it. If init has to
handle the child termination, it throws in an unwanted sync() which can
really mess up performance.

Cheers,
Dick Johnson
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Richard B. Johnson
Project Engineer
Analogic Corporation
Voice : (508) 977-3000 ext. 3754
Fax : (508) 532-6097
Modem : (508) 977-6870
Ftp : ftp@boneserver.analogic.com
Email : rjohnson@analogic.com, johnson@analogic.com
Penguin : Linux version 2.1.31 on an i586 machine (66.15 BogoMips).
Warning : I read unsolicited mail for $350.00 per hour. Supply billing address.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-