Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Nov 2004 14:16:51 +1100 (EST)
From:      Luke <lukem@cse.unsw.EDU.AU>
To:        Aaron Glenn <aaron.glenn@gmail.com>
Cc:        "lukem.freebsd@cse.unsw.edu.au" <lukem.freebsd@cse.unsw.edu.au>
Subject:   Re: I've ran out of ideas
Message-ID:  <Pine.LNX.4.61.0411191411400.11282@wagner.orchestra.cse.unsw.EDU.AU>
In-Reply-To: <18f6019404111817533b93cbba@mail.gmail.com>
References:  <20041118101026.55888.qmail@web14121.mail.yahoo.com>  <20041118105543.10295.qmail@web41208.mail.yahoo.com>  <18f6019404111809224fb97c06@mail.gmail.com>  <Pine.LNX.4.61.0411191006310.5596@wagner.orchestra.cse.unsw.EDU.AU> <18f6019404111817533b93cbba@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 18 Nov 2004, Aaron Glenn wrote:
>> I would theorise that your web server is probably only issuing fairly
>> small disk reads, so your network performance is being bound by the disk.
>
> That was my first hunch; hence creating a separate partition with
> obscene blocksizes (-:

Increasing the block size of the disk need not imply that the application 
is issuing larger reads.

>> To test this theory, you could:
>>
>> * create an mfs partition and serve off it to see what kind of performance
>>    you can get
>> * see if you can tweak the web server to use larger reads and writes.
>>
>> In your original message you said that increasing the disk block size
>> improved performance, which would also indicate that you are being limited
>> by disk performance.
>
> I doubt increasing it even more would help. Law of diminishing returns
> and all that; then again I'm no expert. Thoughts?

I have not suggested that you increase the blocksize further. Please read 
the above points again.

As Sean pointed out, if your web server supports sendfile then that would 
be a good option.

Your recent post which showed poor performance from /dev/zero does bring 
the theory that your disk is the bottleneck into question, however you may 
still find it is worth trying the above suggestions.

-- 
Luke



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.61.0411191411400.11282>