| To: | "Igor A. Valcov" <viaprog@xxxxxxxxx> |
|---|---|
| Subject: | Re: XFS filesystem performance drop in kernels 2.6.16+ |
| From: | Andrew Morton <akpm@xxxxxxxx> |
| Date: | Fri, 10 Nov 2006 22:52:57 -0800 |
| Cc: | linux-kernel@xxxxxxxxxxxxxxx, xfs@xxxxxxxxxxx |
| In-reply-to: | <bde600590611100516u7b8ca1bfs74d3cc8b78eb3520@xxxxxxxxxxxxxx> |
| References: | <bde600590611090930g3ab97aq3c76d7bca4ec267f@xxxxxxxxxxxxxx> <4553F3C6.2030807@xxxxxxxxxxx> <Pine.LNX.4.61.0611101259490.6068@xxxxxxxxxxxxxxx> <bde600590611100516u7b8ca1bfs74d3cc8b78eb3520@xxxxxxxxxxxxxx> |
| Sender: | xfs-bounce@xxxxxxxxxxx |
On Fri, 10 Nov 2006 16:16:27 +0300
"Igor A. Valcov" <viaprog@xxxxxxxxx> wrote:
> Below is a simplified version of the test program,
Boy, I hope not. The results of this test program are of very little interest.
> for (i = 0; i < 262144; i++) {
> /* Write data to a big file */
> write (nFiles [0], buf, __BYTES);
>
> /* Write data to small files */
> for (f = 1; f < __FILES; f++)
> write (nFiles [f], &f, sizeof (f));
> }
This sits in a loop doing write(fd, buf, 4). This is wildly inefficient -
you'd get a 10x throughput benefit and maybe 100x reduction in CPU cost
simply by switching to fwrite().
I suspect something went wrong here.
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: XFS update for 2.6.19, Timothy Shimmin |
|---|---|
| Next by Date: | XFS Update for 2.6.19 - take 2, Timothy Shimmin |
| Previous by Thread: | Re: XFS filesystem performance drop in kernels 2.6.16+, Eric Sandeen |
| Next by Thread: | Re: XFS filesystem performance drop in kernels 2.6.16+, Jan Engelhardt |
| Indexes: | [Date] [Thread] [Top] [All Lists] |